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.

Return Value

void

at line 35
void showCursor()

Show the cursor.

Return Value

void

at line 51
void restoreCursor()

Restore the cursor if it was hidden.

Return Value

void

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

Move the cursor.

Parameters

int $x
int $y

Return Value

void

at line 87
void moveCursorToColumn(int $column)

Move the cursor to the given column.

Parameters

int $column

Return Value

void

at line 99
void moveCursorUp(int $lines)

Move the cursor up by the given number of lines.

Parameters

int $lines

Return Value

void

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.

Return Value

void