diff options
| -rw-r--r-- | README.md | 13 |
1 files changed, 13 insertions, 0 deletions
| @@ -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 | ``` |
