Class terminal (o2scl)¶
-
class
o2scl
::
terminal
¶ Desc.
Public Functions
-
terminal
()¶
-
bool
is_redirected
()¶ Desc.
-
size_t
str_len
(std::string str)¶ Determine string length, ignoring vt100 terminal sequences.
-
std::string
hrule
(size_t n = 78)¶ Generate a horizontal rule.
-
std::string
cyan_fg
()¶ Switch to cyan foreground.
-
std::string
magenta_fg
()¶ Switch to magenta foreground.
-
std::string
yellow_fg
()¶ Switch to yellow foreground.
-
std::string
red_fg
()¶ Switch to red foreground.
-
std::string
green_fg
()¶ Switch to green foreground.
-
std::string
blue_fg
()¶ Switch to blue foreground.
-
std::string
cyan_bg
()¶ Switch to cyan background.
-
std::string
magenta_bg
()¶ Switch to magenta background.
-
std::string
yellow_bg
()¶ Switch to yellow background.
-
std::string
red_bg
()¶ Switch to red background.
-
std::string
green_bg
()¶ Switch to green background.
-
std::string
blue_bg
()¶ Switch to blue background.
-
std::string
default_fg
()¶ Switch to default foreground.
-
std::string
bold
()¶ Switch to bold foreground.
-
std::string
eight_bit_fg
(short col)¶ Change foreground to an 8-bit color.
-
std::string
eight_bit_bg
(short col)¶ Change background to an 8-bit color.
-
std::string
three_byte_fg
(short red, short green, short blue)¶ Change foreground to an 3-byte color.
-
std::string
three_byte_bg
(short red, short green, short blue)¶ Change background to an 3-byte color.
-
std::string
lowint
()¶ Switch to low-intensity foreground.
-
std::string
underline
()¶ Switch to underline background.
-
std::string
reverse
()¶ Switch to reversed background.
-
std::string
alt_font
()¶ Switch to alternate character set.
-
std::string
normal_font
()¶ Switch from alternate to normal character set.
-
std::string
eight_bit_summ
()¶ Summarize 8-bit colors.
-
std::string
three_byte_summ
()¶ Summarize 3-byte colors.
-
std::string
three_byte_summ_long
()¶ Summarize 3-byte colors (long form)
Protected Attributes
-
bool
redirected
¶ Desc.
-