Raxol.Terminal.Emulator.Cursor (Raxol v0.5.0)
View SourceHandles cursor operations for the terminal emulator.
Summary
Functions
Hides the cursor.
Moves the cursor down by the specified number of lines.
Moves the cursor left by the specified number of columns.
Moves the cursor right by the specified number of columns.
Moves the cursor to a specific position.
Moves the cursor up by the specified number of lines.
Restores the previously saved cursor state.
Saves the current cursor state.
Sets the cursor style for the emulator.
Shows the cursor.
Functions
@spec hide(Raxol.Terminal.Emulator.Struct.t()) :: Raxol.Terminal.Emulator.Struct.t()
Hides the cursor.
@spec move_down(Raxol.Terminal.Emulator.Struct.t(), non_neg_integer()) :: Raxol.Terminal.Emulator.Struct.t()
Moves the cursor down by the specified number of lines.
@spec move_left(Raxol.Terminal.Emulator.Struct.t(), non_neg_integer()) :: Raxol.Terminal.Emulator.Struct.t()
Moves the cursor left by the specified number of columns.
@spec move_right(Raxol.Terminal.Emulator.Struct.t(), non_neg_integer()) :: Raxol.Terminal.Emulator.Struct.t()
Moves the cursor right by the specified number of columns.
@spec move_to( Raxol.Terminal.Emulator.Struct.t(), non_neg_integer(), non_neg_integer() ) :: Raxol.Terminal.Emulator.Struct.t()
Moves the cursor to a specific position.
@spec move_up(Raxol.Terminal.Emulator.Struct.t(), non_neg_integer()) :: Raxol.Terminal.Emulator.Struct.t()
Moves the cursor up by the specified number of lines.
@spec restore_state(Raxol.Terminal.Emulator.Struct.t()) :: Raxol.Terminal.Emulator.Struct.t()
Restores the previously saved cursor state.
@spec save_state(Raxol.Terminal.Emulator.Struct.t()) :: Raxol.Terminal.Emulator.Struct.t()
Saves the current cursor state.
@spec set_style(Raxol.Terminal.Emulator.Struct.t(), atom()) :: Raxol.Terminal.Emulator.Struct.t()
Sets the cursor style for the emulator.
@spec show(Raxol.Terminal.Emulator.Struct.t()) :: Raxol.Terminal.Emulator.Struct.t()
Shows the cursor.