OLD | NEW |
1 # Moterm example application | 1 # Moterm example application |
2 | 2 |
3 `moterm_example_app` is an example application that embeds | 3 `moterm_example_app` is an example application that embeds |
4 [Moterm](../../apps/moterm), uses it to provide a prompt, and allows it to be | 4 [Moterm](../../apps/moterm), uses it to provide a prompt, and allows it to be |
5 connected to other applications (which should implement the | 5 connected to other applications (which should implement the |
6 `mojo.terminal.TerminalClient` interface). | 6 `mojo.terminal.TerminalClient` interface). |
7 | 7 |
8 ## Running | 8 ## Running |
9 | 9 |
10 On Linux, run it in the usual way, e.g.: | 10 On Linux, run it in the usual way, e.g.: |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 | 43 |
44 > function add(x, y) { return x + y; } | 44 > function add(x, y) { return x + y; } |
45 undefined | 45 undefined |
46 > add("hello ", 123) | 46 > add("hello ", 123) |
47 "hello 123" | 47 "hello 123" |
48 | 48 |
49 ## See also | 49 ## See also |
50 | 50 |
51 * [//apps/moterm](../../apps/moterm) | 51 * [//apps/moterm](../../apps/moterm) |
52 * [//examples/dart/netcat](../dart/netcat) | 52 * [//examples/dart/netcat](../dart/netcat) |
53 * [//examples/js/repl.js](../dart/js/repl.js) | 53 * [//examples/js/repl.js](../js/repl.js) |
OLD | NEW |