omw  0.1.1
Namespaces | Functions
omw::ansiesc::csi Namespace Reference

CSI (Control Sequence Introducer) More...

Namespaces

 sgr
 SGR (Select Graphic Rendition)
 

Functions

omw::string seq (char cs, const omw::string &arg="")
 
omw::string seq (char cs, int arg)
 
omw::string seq (char cs, int arg0, int arg1)
 

Variables

Control Sequence Types
constexpr char CUU = 'A'
 
constexpr char CUD = 'B'
 
constexpr char CUF = 'C'
 
constexpr char CUB = 'D'
 
constexpr char CUP = 'H'
 
constexpr char ED = 'J'
 
constexpr char EL = 'K'
 
constexpr char SU = 'S'
 
constexpr char SD = 'T'
 
constexpr char HVP = 'f'
 
constexpr char SGR = 'm'
 
Control Sequence Type Aliases
constexpr char cursorUp = CUU
 
constexpr char cursorDown = CUD
 
constexpr char cursorFwd = CUF
 
constexpr char cursorBack = CUB
 
constexpr char cursorPos = CUP
 
constexpr char eraseDisplay = ED
 
constexpr char eraseLine = EL
 
constexpr char scrollUp = SU
 
constexpr char scrollDown = SD
 
Arguments
constexpr int fromCurToEnd = 0
 
constexpr int fromCurToBegin = 1
 
constexpr int entire = 2
 
constexpr int entireAndScrlBk = 3
 

Detailed Description

CSI (Control Sequence Introducer)

Function Documentation

◆ seq() [1/3]

omw::string omw::ansiesc::csi::seq ( char  cs,
const omw::string arg = "" 
)
inline
Parameters
csControl sequence type
argThe argument(s) of the sequence

Builds an CSI escape sequence: ESC [ <arg> <cs>.

◆ seq() [2/3]

omw::string omw::ansiesc::csi::seq ( char  cs,
int  arg 
)
inline
Parameters
csControl sequence type
argThe argument of the sequence

Builds an CSI escape sequence with one argument: ESC [ <arg> <cs>.

◆ seq() [3/3]

omw::string omw::ansiesc::csi::seq ( char  cs,
int  arg0,
int  arg1 
)
inline
Parameters
csControl sequence type
arg0The 1st argument of the sequence
arg1The 2nd argument of the sequence

Builds an CSI escape sequence with two argument: ESC [ <arg0> ; <arg1> <cs>.