ansi
Utility functions for generating ANSI escape codes for terminal control and styling.
Functions
Section titled “Functions”| Return | Name | Description |
|---|---|---|
std::string | cursor inline | |
std::string | move_up inline | |
std::string | move_down inline | |
std::string | move_right inline | |
std::string | move_left inline | |
std::string | hide_cursor inline | |
std::string | show_cursor inline | |
std::string | clear_screen inline | |
std::string | clear_line inline | |
std::string | clear_line_to_end inline | |
std::string | clear_line_to_start inline | |
std::string | clear_scrollback inline | |
std::string | scroll_up inline | |
std::string | scroll_down inline | |
std::string | fg_black inline | |
std::string | fg_red inline | |
std::string | fg_green inline | |
std::string | fg_yellow inline | |
std::string | fg_blue inline | |
std::string | fg_magenta inline | |
std::string | fg_cyan inline | |
std::string | fg_white inline | |
std::string | fg_bright_black inline | |
std::string | fg_bright_red inline | |
std::string | fg_bright_green inline | |
std::string | fg_bright_yellow inline | |
std::string | fg_bright_blue inline | |
std::string | fg_bright_magenta inline | |
std::string | fg_bright_cyan inline | |
std::string | fg_bright_white inline | |
std::string | bg_black inline | |
std::string | bg_red inline | |
std::string | bg_green inline | |
std::string | bg_yellow inline | |
std::string | bg_blue inline | |
std::string | bg_magenta inline | |
std::string | bg_cyan inline | |
std::string | bg_white inline | |
std::string | bg_bright_black inline | |
std::string | bg_bright_red inline | |
std::string | bg_bright_green inline | |
std::string | bg_bright_yellow inline | |
std::string | bg_bright_blue inline | |
std::string | bg_bright_magenta inline | |
std::string | bg_bright_cyan inline | |
std::string | bg_bright_white inline | |
std::string | fg_8bit inline | |
std::string | bg_8bit inline | |
std::string | fg_rgb inline | |
std::string | bg_rgb inline | |
std::string | bold inline | |
std::string | underline inline | |
std::string | inverse inline | |
std::string | reset inline | |
std::string | reset_all inline |
cursor
Section titled “cursor”inline
inline std::string cursor(int row, int col)move_up
Section titled “move_up”inline
inline std::string move_up(int n)move_down
Section titled “move_down”inline
inline std::string move_down(int n)move_right
Section titled “move_right”inline
inline std::string move_right(int n)move_left
Section titled “move_left”inline
inline std::string move_left(int n)hide_cursor
Section titled “hide_cursor”inline
inline std::string hide_cursor()show_cursor
Section titled “show_cursor”inline
inline std::string show_cursor()clear_screen
Section titled “clear_screen”inline
inline std::string clear_screen()clear_line
Section titled “clear_line”inline
inline std::string clear_line()clear_line_to_end
Section titled “clear_line_to_end”inline
inline std::string clear_line_to_end()clear_line_to_start
Section titled “clear_line_to_start”inline
inline std::string clear_line_to_start()clear_scrollback
Section titled “clear_scrollback”inline
inline std::string clear_scrollback()scroll_up
Section titled “scroll_up”inline
inline std::string scroll_up(int n)scroll_down
Section titled “scroll_down”inline
inline std::string scroll_down(int n)fg_black
Section titled “fg_black”inline
inline std::string fg_black()fg_red
Section titled “fg_red”inline
inline std::string fg_red()fg_green
Section titled “fg_green”inline
inline std::string fg_green()fg_yellow
Section titled “fg_yellow”inline
inline std::string fg_yellow()fg_blue
Section titled “fg_blue”inline
inline std::string fg_blue()fg_magenta
Section titled “fg_magenta”inline
inline std::string fg_magenta()fg_cyan
Section titled “fg_cyan”inline
inline std::string fg_cyan()fg_white
Section titled “fg_white”inline
inline std::string fg_white()fg_bright_black
Section titled “fg_bright_black”inline
inline std::string fg_bright_black()fg_bright_red
Section titled “fg_bright_red”inline
inline std::string fg_bright_red()fg_bright_green
Section titled “fg_bright_green”inline
inline std::string fg_bright_green()fg_bright_yellow
Section titled “fg_bright_yellow”inline
inline std::string fg_bright_yellow()fg_bright_blue
Section titled “fg_bright_blue”inline
inline std::string fg_bright_blue()fg_bright_magenta
Section titled “fg_bright_magenta”inline
inline std::string fg_bright_magenta()fg_bright_cyan
Section titled “fg_bright_cyan”inline
inline std::string fg_bright_cyan()fg_bright_white
Section titled “fg_bright_white”inline
inline std::string fg_bright_white()bg_black
Section titled “bg_black”inline
inline std::string bg_black()bg_red
Section titled “bg_red”inline
inline std::string bg_red()bg_green
Section titled “bg_green”inline
inline std::string bg_green()bg_yellow
Section titled “bg_yellow”inline
inline std::string bg_yellow()bg_blue
Section titled “bg_blue”inline
inline std::string bg_blue()bg_magenta
Section titled “bg_magenta”inline
inline std::string bg_magenta()bg_cyan
Section titled “bg_cyan”inline
inline std::string bg_cyan()bg_white
Section titled “bg_white”inline
inline std::string bg_white()bg_bright_black
Section titled “bg_bright_black”inline
inline std::string bg_bright_black()bg_bright_red
Section titled “bg_bright_red”inline
inline std::string bg_bright_red()bg_bright_green
Section titled “bg_bright_green”inline
inline std::string bg_bright_green()bg_bright_yellow
Section titled “bg_bright_yellow”inline
inline std::string bg_bright_yellow()bg_bright_blue
Section titled “bg_bright_blue”inline
inline std::string bg_bright_blue()bg_bright_magenta
Section titled “bg_bright_magenta”inline
inline std::string bg_bright_magenta()bg_bright_cyan
Section titled “bg_bright_cyan”inline
inline std::string bg_bright_cyan()bg_bright_white
Section titled “bg_bright_white”inline
inline std::string bg_bright_white()fg_8bit
Section titled “fg_8bit”inline
inline std::string fg_8bit(int n)bg_8bit
Section titled “bg_8bit”inline
inline std::string bg_8bit(int n)fg_rgb
Section titled “fg_rgb”inline
inline std::string fg_rgb(int r, int g, int b)bg_rgb
Section titled “bg_rgb”inline
inline std::string bg_rgb(int r, int g, int b)inline
inline std::string bold()underline
Section titled “underline”inline
inline std::string underline()inverse
Section titled “inverse”inline
inline std::string inverse()inline
inline std::string reset()reset_all
Section titled “reset_all”inline
inline std::string reset_all()