wolfadex / elm-ansi / Ansi.Cursor

Allows you to move the cursor around the screen

Movement

moveUpBy : Basics.Int -> String

Move the cursor up N lines

moveDownBy : Basics.Int -> String

Move the cursor down N lines

moveForwardBy : Basics.Int -> String

Move the cursor forward N columns. In an LTR language this is to the right and in an RTL language it's to the left.

moveBackwardBy : Basics.Int -> String

Move the cursor forward N columns. In an LTR language this is to the left and in an RTL language it's to the right.

moveForwardLines : Basics.Int -> String

Move the cursor forward N lines.

moveBackwardLines : Basics.Int -> String

Move the cursor backward N lines.

moveTo : { row : Basics.Int, column : Basics.Int } -> String

Move the cursor to the specified row and column

moveToColumn : Basics.Int -> String

Move the cursor to the specified column

savePosition : String

Save the cursor's position

restorePosition : String

Move the cursor back to the last saved position

Visibility

hide : String

Hide the cursor

show : String

Show the cursor if it was hidden