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.

Return Value

void

at line 27
void showCursor()

Show the cursor.

Return Value

void

at line 37
void restoreCursor()

Restore the cursor if it was hidden.

Return Value

void

at line 47
void moveCursor(int $x, int $y = 0)

Move the cursor.

Parameters

int $x
int $y

Return Value

void

at line 69
void moveCursorToColumn(int $column)

Move the cursor to the given column.

Parameters

int $column

Return Value

void

at line 77
void moveCursorUp(int $lines)

Move the cursor up by the given number of lines.

Parameters

int $lines

Return Value

void

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.

Return Value

void