Raxol.Terminal.Commands.CSIHandlers.Basic (Raxol v0.5.0)

View Source

Handlers for basic CSI commands.

Summary

Functions

Handles basic CSI commands.

Cursor Position (CUP) Moves cursor to specified position.

Device Attributes (DA) Reports device attributes.

Restore Cursor (DECRC) Restores previously saved cursor position and attributes.

Save Cursor (DECSC) Saves current cursor position and attributes.

Set Cursor Style (DECSCUSR) Sets the cursor style.

Set Left and Right Margins (DECSLRM) Sets the horizontal margins.

Set Top and Bottom Margins (DECSTBM) Sets the scroll region.

Soft Terminal Reset (DECSTR) Resets terminal to initial state.

Device Status Report (DSR) Reports cursor position or device status.

Erase in Display (ED) Clears parts of the screen.

Erase in Line (EL) Clears parts of the current line.

Reset Mode (RM) Resets terminal modes.

Select Graphic Rendition (SGR) Sets text attributes and colors.

Set Mode (SM) Sets terminal modes.

Functions

handle_command(emulator, params, byte)

Handles basic CSI commands.

handle_cup(emulator, params)

Cursor Position (CUP) Moves cursor to specified position.

handle_da(emulator, params)

Device Attributes (DA) Reports device attributes.

handle_decrc(emulator, params)

Restore Cursor (DECRC) Restores previously saved cursor position and attributes.

handle_decsc(emulator, params)

Save Cursor (DECSC) Saves current cursor position and attributes.

handle_decscusr(emulator, params)

Set Cursor Style (DECSCUSR) Sets the cursor style.

handle_decslrm(emulator, params)

Set Left and Right Margins (DECSLRM) Sets the horizontal margins.

handle_decstbm(emulator, params)

Set Top and Bottom Margins (DECSTBM) Sets the scroll region.

handle_decstr(emulator, params)

Soft Terminal Reset (DECSTR) Resets terminal to initial state.

handle_dsr(emulator, params)

Device Status Report (DSR) Reports cursor position or device status.

handle_ed(emulator, params)

Erase in Display (ED) Clears parts of the screen.

handle_el(emulator, params)

Erase in Line (EL) Clears parts of the current line.

handle_rm(emulator, params)

Reset Mode (RM) Resets terminal modes.

handle_sgr(emulator, params)

Select Graphic Rendition (SGR) Sets text attributes and colors.

handle_sm(emulator, params)

Set Mode (SM) Sets terminal modes.