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 17
void
hideCursor()
Hide the cursor.
at line 27
void
showCursor()
Show the cursor.
at line 37
void
restoreCursor()
Restore the cursor if it was hidden.
at line 47
void
moveCursor(int $x, int $y = 0)
Move the cursor.
at line 69
void
moveCursorToColumn(int $column)
Move the cursor to the given column.
at line 77
void
moveCursorUp(int $lines)
Move the cursor up by the given number of lines.
at line 89
static void
resetCursor()
Reset cursor state to defaults.
Boot or tests only. Clears worker-wide cursor visibility tracking; concurrent prompts may restore cursor state differently depending on timing.