Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Unified Diff: examples/moterm_example_app/README.md

Issue 1390883006: Add/update some README.md's. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | examples/native_run_app/README.md » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: examples/moterm_example_app/README.md
diff --git a/examples/moterm_example_app/README.md b/examples/moterm_example_app/README.md
index 186b4f9f7626a82b539b848b638b53fc2a6bc8b2..b31d0d3960788fff92adb7af7d6971aec4a70ee1 100644
--- a/examples/moterm_example_app/README.md
+++ b/examples/moterm_example_app/README.md
@@ -2,8 +2,8 @@
`moterm_example_app` is an example application that embeds
[Moterm](../../apps/moterm), uses it to provide a prompt, and allows it to be
-connected to other applications (which should implement the
-`mojo.terminal.TerminalClient` interface).
+connected to other applications (which should provide the
+`mojo.terminal.TerminalClient` service).
## Running
@@ -14,8 +14,12 @@ On Linux, run it in the usual way, e.g.:
You'll probably need to click on the window to give it keyboard focus. You may
also want to resize the window (especially horizontally) to make it bigger.
-At the `:)` prompt, you may enter the URL for any application implementing the
-`mojo.terminal.TerminalClient` interface. E.g.:
+At the `:)` prompt, you may enter the URL for any application providing the
+`mojo.terminal.TerminalClient` service.
+
+### Example 1: Dart netcat
+
+An example of a terminal client application written in Dart is `dart_netcat`:
:) mojo:dart_netcat
@@ -35,7 +39,24 @@ entering:
"file". You can press Control-D to return to the `:)` prompt. The unhandled Dart
exception after you press Control-D is definitely a bug.)
-Another example you may try is:
+### Example 2: Running native console applications
+
+The `native_support` service supports running native (Linux) applications. The
+`native_run_app` application provides a terminal client front-end:
+
+ :) mojo:native_run_app
+
+At its `>>>` prompt, you can enter name of a native application. E.g.:
+
+ >>> bash
+ $ echo hello linux
+ hello linux
+ $
+
+### Example 3: JavaScript REPL
+
+A terminal client application (written in JavaScript, using the JavaScript
+content handler) that provides a JavaScript REPL:
:) file:///path/to/src/examples/js/repl.js
@@ -45,9 +66,11 @@ At its `>` prompt, you can enter JavaScript expressions. E.g.:
undefined
> add("hello ", 123)
"hello 123"
+ >
## See also
* [//apps/moterm](../../apps/moterm)
* [//examples/dart/netcat](../dart/netcat)
+* [//examples/native_run_app](../native_run_app)
* [//examples/js/repl.js](../js/repl.js)
« no previous file with comments | « no previous file | examples/native_run_app/README.md » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698