wolfadex/elm-ansi/3.0.0

NOTE: the latest version is 3.0.1

Ansi.Cursor

Allows you to move the cursor around the screen

Movement

moveUpBy : Int -> String

Move the cursor up N lines

moveDownBy : Int -> String

Move the cursor down N lines

moveForwardBy : 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 : 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 : Int -> String

Move the cursor forward N lines.

moveBackwardLines : Int -> String

Move the cursor backward N lines.

{ row : Int
, column : Int
}
-> String

Move the cursor to the specified row and column

moveToColumn : Int -> String

Move the cursor to the specified column

savePosition : String

Save the cursor's position

Move the cursor back to the last saved position

Visibility

hide : String

Hide the cursor

show : String

Show the cursor if it was hidden