OLD | NEW |
1 # Moterm | 1 # Moterm |
2 | 2 |
3 `moterm` is an application that provides an embeddable view, which provides a | 3 `moterm` is an application that provides an embeddable view, which provides a |
4 VT100-style terminal that its embedder can connect to other applications. It is | 4 VT100-style terminal that its embedder can connect to other applications. It is |
5 not useful as a standalone application (embedded by something, like a window | 5 not useful as a standalone application (embedded by something, like a window |
6 manager, that is not aware of how to control it). | 6 manager, that is not aware of how to control it). |
7 | 7 |
8 For an example of an embedder that's useful as a standalone application, see the | 8 For an example of an embedder that's useful as a standalone application, see the |
9 [Moterm example application](../../examples/moterm_example_app). | 9 [Moterm example application](../../examples/moterm_example_app). |
10 | 10 |
11 ## Details | 11 ## Details |
12 | 12 |
13 `moterm` exposes the `mojo.terminal.Terminal` interface to its embedder. Via | 13 `moterm` exposes the `mojo.terminal.Terminal` interface to its embedder. Via |
14 this interface, its embedder may connect to the terminal directly (for direct | 14 this interface, its embedder may connect to the terminal directly (for direct |
15 input/output with the terminal) or request that the terminal connect to another | 15 input/output with the terminal) or request that the terminal connect to another |
16 application. In the latter case, that application should implement the | 16 application. In the latter case, that application should implement the |
17 `mojo.terminal.TerminalClient` interface. | 17 `mojo.terminal.TerminalClient` interface. |
18 | 18 |
19 Output to/input from the terminal is done via a `mojo.files.File` that behaves | 19 Output to/input from the terminal is done via a `mojo.files.File` that behaves |
20 "like a terminal" (in much the same way as in Unix one has terminal device | 20 "like a terminal" (in much the same way as in Unix one has terminal device |
21 files and file descriptors to them). | 21 files and file descriptors to them). |
22 | 22 |
23 ## See also | 23 ## See also |
24 | 24 |
25 * [//examples/moterm_example_app](../../examples/moterm_example_app) | 25 * [//examples/moterm_example_app](../../examples/moterm_example_app) |
26 * [//mojo/services/files/public/interfaces](../../mojo/services/files/public/int
erfaces) | 26 * [//mojo/services/files/interfaces](../../mojo/services/files/interfaces) |
27 * [//mojo/services/terminal/public/interfaces](../../mojo/services/terminal/publ
ic/interfaces) | 27 * [//mojo/services/terminal/public/interfaces](../../mojo/services/terminal/publ
ic/interfaces) |
OLD | NEW |