MySQL 8.3.0
Source Code Documentation
vt100.cc File Reference
#include "mysql/harness/vt100.h"
#include <string>
#include <vector>

Namespaces

namespace  Vt100
 

Macros

#define ESC   "\x1b"
 

Functions

std::string HARNESS_EXPORT Vt100::reset ()
 get 'reset attributes' ESC sequence. More...
 
template<Vt100::value_type N>
static std::string Vt100::not_num_to_string (Vt100::value_type n)
 
static std::string Vt100::csi (Csi c, const std::string &s)
 
static std::string Vt100::csi (Csi c)
 
template<Vt100::value_type DEF>
static std::string Vt100::csi_default (Csi c, Vt100::value_type n)
 
template<Vt100::value_type DEF, size_t N>
static std::string Vt100::csi_default (Csi c, const std::array< Vt100::value_type, N > &fields)
 
std::string HARNESS_EXPORT Vt100::cursor_up (Vt100::value_type n=1)
 get 'cursor up' ESC sequence. More...
 
std::string HARNESS_EXPORT Vt100::cursor_down (Vt100::value_type n=1)
 get 'cursor down' ESC sequence. More...
 
std::string HARNESS_EXPORT Vt100::cursor_forward (Vt100::value_type n=1)
 get 'cursor forward' ESC sequence. More...
 
std::string HARNESS_EXPORT Vt100::cursor_back (Vt100::value_type n=1)
 get 'cursor back' ESC sequence. More...
 
std::string HARNESS_EXPORT Vt100::cursor_next_line (Vt100::value_type n=1)
 get 'cursor next line' ESC sequence. More...
 
std::string HARNESS_EXPORT Vt100::cursor_prev_line (Vt100::value_type n=1)
 get 'cursor previous line' ESC sequence. More...
 
std::string HARNESS_EXPORT Vt100::cursor_abs_col (Vt100::value_type col=1)
 get 'set cursor absolute position' ESC sequence. More...
 
std::string HARNESS_EXPORT Vt100::cursor_abs_row (Vt100::value_type row=1)
 get 'set cursor absolute row' ESC sequence. More...
 
std::string HARNESS_EXPORT Vt100::cursor_abs_pos (Vt100::value_type row=1, Vt100::value_type col=1)
 get 'set cursor to absolute row' ESC sequence. More...
 
std::string HARNESS_EXPORT Vt100::erase_in_display (Vt100::Erase n=Vt100::Erase::LeftAndCur)
 get 'erase in display' ESC sequence. More...
 
std::string HARNESS_EXPORT Vt100::erase_in_line (Vt100::Erase n=Vt100::Erase::LeftAndCur)
 get 'erase in line' ESC sequence. More...
 
std::string HARNESS_EXPORT Vt100::scroll_up (Vt100::value_type n=1)
 get 'scroll up' ESC sequence. More...
 
std::string HARNESS_EXPORT Vt100::scroll_down (Vt100::value_type n=1)
 get 'scroll down' ESC sequence. More...
 
std::string HARNESS_EXPORT Vt100::save_cursor_pos ()
 get 'save cursor position' ESC sequence. More...
 
std::string HARNESS_EXPORT Vt100::restore_cursor_pos ()
 get 'restore cursor position' ESC sequence. More...
 
std::string HARNESS_EXPORT Vt100::window_title (const std::string &title)
 get 'set window title' ESC sequence. More...
 
static std::string Vt100::render (Vt100::value_type n)
 VT100, 7-bit colors. More...
 
template<Vt100::value_type DEF, size_t N>
static std::string Vt100::render (const std::array< Vt100::value_type, N > &fields)
 
std::string HARNESS_EXPORT Vt100::render (Render r)
 get 'text rendering attributes' ESC sequence. More...
 
std::string HARNESS_EXPORT Vt100::foreground (Color c)
 get 'change foreground color' ESC sequence. More...
 
std::string HARNESS_EXPORT Vt100::foreground (const Rgb &rgb)
 get 'change foreground color' ESC sequence. More...
 
std::string HARNESS_EXPORT Vt100::foreground (uint8_t ndx)
 get 'change foreground color ESC' sequence. More...
 
std::string HARNESS_EXPORT Vt100::background (Color c)
 get 'change background color' ESC sequence. More...
 
std::string HARNESS_EXPORT Vt100::background (const Rgb &rgb)
 get 'change background color' ESC sequence. More...
 
std::string HARNESS_EXPORT Vt100::background (uint8_t ndx)
 get 'change background color' ESC sequence. More...
 

Variables

constexpr const char Vt100::BEL {0x07}
 
constexpr const char Vt100::CSI [] {ESC "["}
 
constexpr const char Vt100::OSC [] {ESC "]"}
 

Macro Definition Documentation

◆ ESC

#define ESC   "\x1b"