Cursor Control
ConsoleCodes.Cursor
— ModuleCursor
Module for controlling the console cursor using console escape codes.
ConsoleCodes.Cursor.up
— FunctionCursor.up(y)
Move the console cursor up by y
.
Behavior is undefined for y ≤ 0
but no check is performed. See Cursor.translate
for a safe version of this operation.
ConsoleCodes.Cursor.down
— FunctionCursor.down(y)
Move the console cursor down by y
.
Behavior is undefined for y ≤ 0
but no check is performed. See Cursor.translate
for a safe version of this operation.
ConsoleCodes.Cursor.right
— FunctionCursor.right(x)
Move the cnosle cursor right by x
.
Behavior is undefined for y ≤ 0
but no check is performed. See Cursor.translate
for a safe version of this operation.
ConsoleCodes.Cursor.left
— FunctionCursor.left(x)
Move the console cursor left by x
.
Behavior is undefined for y ≤ 0
but no check is performed. See Cursor.translate
for a safe version of this operation.
ConsoleCodes.Cursor.down1
— FunctionCursor.down1(y)
Move the console cursor down by y
, to the start of the line.
Invalid for y ≤ 0
.
ConsoleCodes.Cursor.up1
— FunctionCursor.up1(y)
Move the consle cursor up by y
, to the start of the line.
Invalid for y ≤ 0
.
ConsoleCodes.Cursor.tocolumn
— FunctionCursor.tocolumn(x)
Move the console cursor to column x
.
ConsoleCodes.Cursor.to
— FunctionCursor.to(x, y)
Move the console cursor to position (x, y)
.
ConsoleCodes.Cursor.save
— FunctionCursor.save()
Save the cursor position. The state is saved to an internal OS register that can be loaded with Cursor.restore
but is otherwise inaccessible.
ConsoleCodes.Cursor.restore
— FunctionCursor.restore()
Restore the cursor position saved with Cursor.save()
.