aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Hoelz <rob@hoelz.ro>2012-09-15 00:40:09 +0200
committerRob Hoelz <rob@hoelz.ro>2012-09-15 00:40:09 +0200
commit68a8f1005aabc69ec5bc979fa7d7873c3c2a6a1b (patch)
treeb3667856f2a5914e67bfc96ec8fa509ff5787855
parente3cad60d767ebbcdb265068f7ea94d7977597181 (diff)
downloadlua-term-68a8f1005aabc69ec5bc979fa7d7873c3c2a6a1b.tar.gz
lua-term-68a8f1005aabc69ec5bc979fa7d7873c3c2a6a1b.tar.bz2
lua-term-68a8f1005aabc69ec5bc979fa7d7873c3c2a6a1b.zip
Add examples for new functions to README
-rw-r--r--README.md13
1 files changed, 13 insertions, 0 deletions
diff --git a/README.md b/README.md
index 9b67a96..6a60906 100644
--- a/README.md
+++ b/README.md
@@ -20,4 +20,17 @@ Usage
20 print(color.red 'hello') 20 print(color.red 'hello')
21 print(color.red .. 'hello' .. color.reset) 21 print(color.red .. 'hello' .. color.reset)
22 print(color.red, 'hello', color.reset) 22 print(color.red, 'hello', color.reset)
23
24 -- The following functions take an optional IO handle (like io.stdout);
25 -- io.stdout is the default if you don't specify one
26 term.clear() -- clears the screen
27 term.cleareol() -- clears from the cursor to the end of the line
28 term.cursor.goto(1, 1)
29 term.cursor.goto(io.stdout, 1, 1)
30 term.cursor.goup(1)
31 term.cursor.godown(1)
32 term.cursor.goright(1)
33 term.cursor.goleft(1)
34 term.cursor.save() -- save position
35 term.cursor.restore() -- restore position
23``` 36```