ICARUS OS (Intelligent Cooperative Architecture for Real-time Unified Systems) 0.1.0
Preemptive Real-Time Operating System for ARM Cortex-M7
Loading...
Searching...
No Matches
ANSI Escape Codes

Terminal control sequences for cursor and color manipulation. More...

Macros

#define ANSI_GOTO(row, col)   (void)printf("\033[%d;%dH", (row), (col))
 Move cursor to specified row and column (1-indexed)
 
#define ANSI_SHOW_CURSOR()   (void)printf("\033[?25h")
 Show terminal cursor.
 
#define ANSI_HIDE_CURSOR()   (void)printf("\033[?25l")
 Hide terminal cursor.
 
#define ANSI_RESET   "\033[0m"
 Reset all text attributes.
 
#define ANSI_BOLD   "\033[1m"
 Bold text attribute.
 
#define ANSI_DIM   "\033[2m"
 Dim text attribute.
 
#define ANSI_GREEN   "\033[32m"
 Green foreground color.
 
#define ANSI_YELLOW   "\033[33m"
 Yellow foreground color.
 
#define ANSI_MAGENTA   "\033[35m"
 Magenta foreground color.
 
#define ANSI_CYAN   "\033[36m"
 Cyan foreground color.
 
#define ANSI_WHITE   "\033[37m"
 White foreground color.
 
#define ANSI_BG_GREEN   "\033[42m"
 Green background color.
 
#define ANSI_BG_MAGENTA   "\033[45m"
 Magenta background color.
 

Detailed Description

Terminal control sequences for cursor and color manipulation.

Macro Definition Documentation

◆ ANSI_BG_GREEN

#define ANSI_BG_GREEN   "\033[42m"

Green background color.

Definition at line 82 of file display.c.

◆ ANSI_BG_MAGENTA

#define ANSI_BG_MAGENTA   "\033[45m"

Magenta background color.

Definition at line 85 of file display.c.

◆ ANSI_BOLD

#define ANSI_BOLD   "\033[1m"

Bold text attribute.

Definition at line 61 of file display.c.

◆ ANSI_CYAN

#define ANSI_CYAN   "\033[36m"

Cyan foreground color.

Definition at line 76 of file display.c.

◆ ANSI_DIM

#define ANSI_DIM   "\033[2m"

Dim text attribute.

Definition at line 64 of file display.c.

◆ ANSI_GOTO

#define ANSI_GOTO (   row,
  col 
)    (void)printf("\033[%d;%dH", (row), (col))

Move cursor to specified row and column (1-indexed)

Definition at line 49 of file display.c.

◆ ANSI_GREEN

#define ANSI_GREEN   "\033[32m"

Green foreground color.

Definition at line 67 of file display.c.

◆ ANSI_HIDE_CURSOR

#define ANSI_HIDE_CURSOR ( )    (void)printf("\033[?25l")

Hide terminal cursor.

Definition at line 55 of file display.c.

◆ ANSI_MAGENTA

#define ANSI_MAGENTA   "\033[35m"

Magenta foreground color.

Definition at line 73 of file display.c.

◆ ANSI_RESET

#define ANSI_RESET   "\033[0m"

Reset all text attributes.

Definition at line 58 of file display.c.

◆ ANSI_SHOW_CURSOR

#define ANSI_SHOW_CURSOR ( )    (void)printf("\033[?25h")

Show terminal cursor.

Definition at line 52 of file display.c.

◆ ANSI_WHITE

#define ANSI_WHITE   "\033[37m"

White foreground color.

Definition at line 79 of file display.c.

◆ ANSI_YELLOW

#define ANSI_YELLOW   "\033[33m"

Yellow foreground color.

Definition at line 70 of file display.c.