diff options
| -rw-r--r-- | README.md | 5 |
1 files changed, 3 insertions, 2 deletions
| @@ -25,9 +25,10 @@ Usage | |||
| 25 | -- io.stdout is the default if you don't specify one | 25 | -- io.stdout is the default if you don't specify one |
| 26 | term.clear() -- clears the screen | 26 | term.clear() -- clears the screen |
| 27 | term.cleareol() -- clears from the cursor to the end of the line | 27 | term.cleareol() -- clears from the cursor to the end of the line |
| 28 | term.cursor.goto(1, 1) | 28 | --term.cursor.goto(1, 1) -- It will fail in Lua >= 5.2 because goto is a reserved word. |
| 29 | term.cursor['goto'](1, 1) -- This will work on Lua >= 5.2, please use jump instead | ||
| 29 | term.cursor.jump(1, 1) -- jump is just an alias for goto | 30 | term.cursor.jump(1, 1) -- jump is just an alias for goto |
| 30 | term.cursor.goto(io.stdout, 1, 1) | 31 | term.cursor.jump(io.stdout, 1, 1) |
| 31 | term.cursor.goup(1) | 32 | term.cursor.goup(1) |
| 32 | term.cursor.godown(1) | 33 | term.cursor.godown(1) |
| 33 | term.cursor.goright(1) | 34 | term.cursor.goright(1) |
