tree: 766c6fd387bba91ebd6aaa0e121014a6085f1b88 [path history] [tgz]
  1. BUILD.gn
  2. key_util.cc
  3. key_util.h
  4. key_util_unittest.cc
  5. main.cc
  6. moterm_app.cc
  7. moterm_app.h
  8. moterm_driver.cc
  9. moterm_driver.h
  10. moterm_driver_unittest.cc
  11. moterm_model.cc
  12. moterm_model.h
  13. moterm_model_unittest.cc
  14. moterm_view.cc
  15. moterm_view.h
  16. README.md
apps/moterm/README.md

Moterm

moterm is an application that provides an embeddable view, which provides a VT100-style terminal that its embedder can connect to other applications. It is not useful as a standalone application (embedded by something, like a window manager, that is not aware of how to control it).

For an example of an embedder that's useful as a standalone application, see the Moterm example application.

Details

moterm exposes the mojo.terminal.Terminal interface to its embedder. Via this interface, its embedder may connect to the terminal directly (for direct input/output with the terminal) or request that the terminal connect to another application. In the latter case, that application should implement the mojo.terminal.TerminalClient interface.

Output to/input from the terminal is done via a mojo.files.File that behaves “like a terminal” (in much the same way as in Unix one has terminal device files and file descriptors to them).

See also