diff options
| -rw-r--r-- | README.md | 5 |
1 files changed, 5 insertions, 0 deletions
| @@ -26,6 +26,7 @@ Usage | |||
| 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) |
| 29 | term.cursor.jump(1, 1) -- jump is just an alias for goto | ||
| 29 | term.cursor.goto(io.stdout, 1, 1) | 30 | term.cursor.goto(io.stdout, 1, 1) |
| 30 | term.cursor.goup(1) | 31 | term.cursor.goup(1) |
| 31 | term.cursor.godown(1) | 32 | term.cursor.godown(1) |
| @@ -117,6 +118,10 @@ print(colors.red, 'hello', colors.reset) | |||
| 117 | 118 | ||
| 118 | Place the cursor at (`x`, `y`). | 119 | Place the cursor at (`x`, `y`). |
| 119 | 120 | ||
| 121 | ### `term.cursor.jump([opt_file], x, y)` | ||
| 122 | |||
| 123 | An alias for `term.cursor.goto`. | ||
| 124 | |||
| 120 | ### `term.cursor.goup([opt_file], nlines)` | 125 | ### `term.cursor.goup([opt_file], nlines)` |
| 121 | 126 | ||
| 122 | Moves the cursor up `nlines` lines. | 127 | Moves the cursor up `nlines` lines. |
