Opal::Terminal::Screen
Screen control and ANSI terminal escape codes.
Constants
CLEAR_ALL = "\e[2J"
Clearing
CLEAR_DOWN = "\e[0J"
CLEAR_LINE = "\e[2K"
CLEAR_LINE_LEFT = "\e[1K"
CLEAR_LINE_RIGHT = "\e[0K"
CSI = "\e["
CURSOR_HOME = "\e[H"
DISABLE_MOUSE = "\e[?1006l\e[?1002l\e[?1000l"
ENABLE_MOUSE = "\e[?1000h\e[?1002h\e[?1006h"
Mouse tracking (SGR mode 1006 with button event 1002 and normal tracking 1000)
ENTER_ALT_BUFFER = "\e[?1049h"
Screen buffer controls
ESC = "\e"
EXIT_ALT_BUFFER = "\e[?1049l"
HIDE_CURSOR = "\e[?25l"
Cursor visibility
RESET_FORMAT = "\e[0m"
SHOW_CURSOR = "\e[?25h"
Class methods
Returns an escape code to move the cursor backward n columns.
Returns an escape code to move the cursor forward n columns.
Returns an escape code to position the cursor at (row, col) (1-indexed).