Cursor
trait Cursor
Properties
| static protected bool | $cursorHidden | Indicates if the cursor has been hidden. |
Methods
void
hideCursor()
Hide the cursor.
void
showCursor()
Show the cursor.
void
restoreCursor()
Restore the cursor if it was hidden.
void
moveCursor(int $x, int $y = 0)
Move the cursor.
void
moveCursorToColumn(int $column)
Move the cursor to the given column.
void
moveCursorUp(int $lines)
Move the cursor up by the given number of lines.
static void
resetCursor()
Reset cursor state to defaults.
Details
at line 19
void
hideCursor()
Hide the cursor.
at line 35
void
showCursor()
Show the cursor.
at line 51
void
restoreCursor()
Restore the cursor if it was hidden.
at line 61
void
moveCursor(int $x, int $y = 0)
Move the cursor.
at line 87
void
moveCursorToColumn(int $column)
Move the cursor to the given column.
at line 99
void
moveCursorUp(int $lines)
Move the cursor up by the given number of lines.
at line 114
static void
resetCursor()
Reset cursor state to defaults.
Clears worker-wide cursor visibility tracking; concurrent prompts may restore cursor state differently depending on timing.