aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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```