aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorJosh W <josher19@users.sf.net>2012-04-10 13:59:13 +0800
committerBen Noordhuis <info@bnoordhuis.nl>2012-04-18 15:21:51 +0200
commit20143b359c78577861309302fb56e11ddfd7f2db (patch)
tree388740d6c78e4b1796033fbb127ad6fcfb1d2490 /doc
parent079b81358bf464b621146a90eeee9cd5d6631c56 (diff)
downloadandroid-node-v8-20143b359c78577861309302fb56e11ddfd7f2db.tar.gz
android-node-v8-20143b359c78577861309302fb56e11ddfd7f2db.tar.bz2
android-node-v8-20143b359c78577861309302fb56e11ddfd7f2db.zip
doc: add some headers to make it more legible
Diffstat (limited to 'doc')
-rw-r--r--doc/api/readline.markdown4
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/api/readline.markdown b/doc/api/readline.markdown
index 5afc7eb79e..0fe7303d01 100644
--- a/doc/api/readline.markdown
+++ b/doc/api/readline.markdown
@@ -124,6 +124,8 @@ Writes to `output` stream.
This will also resume the `input` stream if it has been paused.
+## Events
+
### Event: 'line'
`function (line) {}`
@@ -236,6 +238,8 @@ Example of listening for `SIGCONT`:
});
+## Example: Tiny CLI
+
Here's an example of how to use all these together to craft a tiny command
line interface: