blob: 207ce1286f1f402b27ec332e63d3a4ef480571c5 [file] [log] [blame] [view]
Viet-Trung Luu7ba2beb2015-09-10 14:26:52 -07001# Moterm
2
3`moterm` is an application that provides an embeddable view, which provides a
4VT100-style terminal that its embedder can connect to other applications. It is
5not useful as a standalone application (embedded by something, like a window
6manager, that is not aware of how to control it).
7
8For 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
14this interface, its embedder may connect to the terminal directly (for direct
15input/output with the terminal) or request that the terminal connect to another
16application. In the latter case, that application should implement the
17`mojo.terminal.TerminalClient` interface.
18
19Output 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
21files and file descriptors to them).
22
23## See also
24
25* [//examples/moterm_example_app](../../examples/moterm_example_app)
Viet-Trung Luu08e339a2015-10-10 01:03:09 -070026* [//mojo/services/files/interfaces](../../mojo/services/files/interfaces)
Viet-Trung Luu0f4f3ba2015-10-10 01:08:40 -070027* [//mojo/services/terminal/interfaces](../../mojo/services/terminal/interfaces)