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 33
void
showCursor()
Show the cursor.
at line 49
void
restoreCursor()
Restore the cursor if it was hidden.
at line 59
void
moveCursor(int $x, int $y = 0)
Move the cursor.
at line 85
void
moveCursorToColumn(int $column)
Move the cursor to the given column.
at line 97
void
moveCursorUp(int $lines)
Move the cursor up by the given number of lines.
at line 113
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.