module

Term::Terminfo::Sequences

ANSI escape sequences and control codes

Constants

ACS_BTEE = "v"
ACS_BULLET = "~"
ACS_CKBOARD = "a"
ACS_DEGREE = "f"
ACS_DIAMOND = "`"
ACS_HLINE = "q"
ACS_LLCORNER = "m"
ACS_LRCORNER = "j"
ACS_LTEE = "t"
ACS_PLMINUS = "g"
ACS_PLUS = "n"
ACS_RTEE = "u"
ACS_TTEE = "w"
ACS_ULCORNER = "l"

ACS line drawing characters

ACS_URCORNER = "k"
ACS_VLINE = "x"
BEL = "\a"

Control characters

BS = "\b"
CR = "\r"
CSI = "\e["
ESC = "\e"
FF = "\f"
HT = "\t"
LF = "\n"
VT = "\v"

Instance methods

acs_disable
Source
acs_enable

Line drawing characters (ACS - Alternate Character Set)

Source
alternate_screen_disable
Source
alternate_screen_enable

Terminal modes

Source
bg_color(color : Int32) : String
Source
bg_color_256(color : Int32) : String
Source
bg_color_rgb(r : Int32, g : Int32, b : Int32) : String
Source
bold
Source
bracketed_paste_disable
Source
bracketed_paste_enable
Source
clear_line
Source
clear_line_left
Source
clear_line_right
Source
clear_screen

Screen control sequences

Source
clear_screen_above
Source
clear_screen_below
Source
cursor_back(n = 1) : String
Source
cursor_down(n = 1) : String
Source
cursor_forward(n = 1) : String
Source
cursor_hide
Source
cursor_home
Source
cursor_horizontal_absolute(n = 1) : String
Source
cursor_next_line(n = 1) : String
Source
cursor_position(row = 1, col = 1) : String
Source
cursor_prev_line(n = 1) : String
Source
cursor_restore
Source
cursor_save
Source
cursor_show
Source
cursor_up(n = 1) : String

Cursor control sequences

Source
fg_color(color : Int32) : String

Colors - 8 color mode

Source
fg_color_256(color : Int32) : String

Colors - 256 color mode

Source
fg_color_rgb(r : Int32, g : Int32, b : Int32) : String

Colors - True color (24-bit) mode

Source
hidden
Source
italic
Source
length_without_ansi(text : String) : Int32
Source
mouse_sgr_disable
Source
mouse_sgr_enable
Source
mouse_tracking_disable
Source
mouse_tracking_enable
Source
mouse_tracking_extended_disable
Source
mouse_tracking_extended_enable
Source
no_bold

Reset individual attributes

Source
no_dim
Source
no_hidden
Source
no_italic
Source
no_reverse
Source
no_strikethrough
Source
no_underline
Source
reset

Text attributes

Source
reverse
Source
scroll_down(n = 1) : String
Source
scroll_up(n = 1) : String
Source
strikethrough
Source
strip_ansi(text : String) : String

Utility methods

Source
underline
Source