Cursor Control

ConsoleCodes.CursorModule
Cursor

Module for controlling the console cursor using console escape codes.

ConsoleCodes.Cursor.upFunction
Cursor.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.downFunction
Cursor.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.rightFunction
Cursor.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.leftFunction
Cursor.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.down1Function
Cursor.down1(y)

Move the console cursor down by y, to the start of the line.

Invalid for y ≤ 0.

ConsoleCodes.Cursor.up1Function
Cursor.up1(y)

Move the consle cursor up by y, to the start of the line.

Invalid for y ≤ 0.

ConsoleCodes.Cursor.saveFunction
Cursor.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.