| 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 provide the | 5 connected to other applications (which should provide the |
| 6 `mojo.terminal.TerminalClient` service). | 6 `mojo.terminal.TerminalClient` service). |
| 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.: |
| 11 | 11 |
| 12 $ mojo/devtools/common/mojo_run --enable-multiprocess "mojo:window_manager m
ojo:moterm_example_app" | 12 $ mojo/devtools/common/mojo_run --enable-multiprocess \ |
| 13 "mojo:launcher mojo:moterm_example_app" |
| 13 | 14 |
| 14 You'll probably need to click on the window to give it keyboard focus. You may | 15 You'll probably need to click on the window to give it keyboard focus. You may |
| 15 also want to resize the window (especially horizontally) to make it bigger. | 16 also want to resize the window (especially horizontally) to make it bigger. |
| 16 | 17 |
| 17 At the `:)` prompt, you may enter the URL for any application providing the | 18 At the `:)` prompt, you may enter the URL for any application providing the |
| 18 `mojo.terminal.TerminalClient` service. | 19 `mojo.terminal.TerminalClient` service. |
| 19 | 20 |
| 20 ### Example 1: Dart netcat | 21 ### Example 1: Dart netcat |
| 21 | 22 |
| 22 An example of a terminal client application written in Dart is `dart_netcat`: | 23 An example of a terminal client application written in Dart is `dart_netcat`: |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 > add("hello ", 123) | 68 > add("hello ", 123) |
| 68 "hello 123" | 69 "hello 123" |
| 69 > | 70 > |
| 70 | 71 |
| 71 ## See also | 72 ## See also |
| 72 | 73 |
| 73 * [//apps/moterm](../../apps/moterm) | 74 * [//apps/moterm](../../apps/moterm) |
| 74 * [//examples/dart/netcat](../dart/netcat) | 75 * [//examples/dart/netcat](../dart/netcat) |
| 75 * [//examples/native_run_app](../native_run_app) | 76 * [//examples/native_run_app](../native_run_app) |
| 76 * [//examples/js/repl.js](../js/repl.js) | 77 * [//examples/js/repl.js](../js/repl.js) |
| OLD | NEW |