CBuild wiki
This file provides utilities to construct ANSII escape codes.
License: GPL-3.0-or-later.
This only provides strings for escape codes and some macro to build that strings
ANSII escape starter.
CSI - Control Sequence Introducer.
SGR - Select Graphic Rendition, meta-function to generate proper code.
Set cursor to specific coordinates.
Set cursor to specific column in current line
Move cursor in specific direction for specified number of steps.
direction direction One of
CBUILD_TERM_[UP|DOWN|RIGHT|LEFT].unsigned int
num_steps Number of steps, should be
either literal or define.Get current position of a cursor.
Clean specific part of terminal
clear mode mode One of
CBUILD_TERM_[CURSOR_TO_END|CURSOR_TO_BEGIN|FULL|FULL_SCROLLBACK].Clean specific part of terminal
clear mode mode One of
CBUILD_TERM_[CURSOR_TO_END|CURSOR_TO_BEGIN|FULL].Reset all styling
Disable italic
Disable underline
Enable blinking text
Disable blinking text
Enable swapping of background and foreground color
Disable reverse mode
Enable crossed-out text rendering
Disable crossed-out rendering
Disable overline
Set foreground color based on 16 color palette.
Color color One of CBUILD_TERM_Set background color based on 16 color palette.
Color color One of CBUILD_TERM_Set foreground color in terms of 8-bit palette
Set background color in terms of 8-bit palette
Set underline color in terms of 8-bit palette
Set foreground color to to some RGB888 color
Set background color to to some RGB888 color
Set underline color to to some RGB888 color