Viet-Trung Luu | 7ba2beb | 2015-09-10 14:26:52 -0700 | [diff] [blame] | 1 | # Moterm |
| 2 | |
| 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 |
| 5 | not useful as a standalone application (embedded by something, like a window |
| 6 | manager, that is not aware of how to control it). |
| 7 | |
| 8 | For an example of an embedder that's useful as a standalone application, see the |
| 9 | [Moterm example application](../../examples/moterm_example_app). |
| 10 | |
| 11 | ## Details |
| 12 | |
| 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 |
| 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 |
| 17 | `mojo.terminal.TerminalClient` interface. |
| 18 | |
| 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 |
| 21 | files and file descriptors to them). |
| 22 | |
| 23 | ## See also |
| 24 | |
| 25 | * [//examples/moterm_example_app](../../examples/moterm_example_app) |
Viet-Trung Luu | 08e339a | 2015-10-10 01:03:09 -0700 | [diff] [blame] | 26 | * [//mojo/services/files/interfaces](../../mojo/services/files/interfaces) |
Viet-Trung Luu | 0f4f3ba | 2015-10-10 01:08:40 -0700 | [diff] [blame] | 27 | * [//mojo/services/terminal/interfaces](../../mojo/services/terminal/interfaces) |