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 coordinates.
This is intended for using in printf and provide just format string.
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 bold
Disable faint
Disable italic
Disable underline
Disable strikethrough
Enable blinking text
Disable blinking text
Enable swapping of background and foreground color
Disable reverse mode
Disable overline
Set foreground color to default one
Set background color to default one
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 foreground color in terms of 8-bit palette.
This is intended for using in printf and provide just format string.
Set background color in terms of 8-bit palette.
Set background color in terms of 8-bit palette.
This is intended for using in printf and provide just format string.
Set underline color in terms of 8-bit palette.
Set underline color in terms of 8-bit palette.
This is intended for using in printf and provide just format string.
Set foreground color to to some RGB888 color.
Set foreground color to some RGB888 color.
This is intended for using in printf and provide just format string.
Set background color to to some RGB888 color.
Set background color to some RGB888 color.
This is intended for using in printf and provide just format string.
Set underline color to to some RGB888 color.
Set underline color to some RGB888 color.
This is intended for using in printf and provide just format string.