IDA SDK
Macros | Functions
Color escape characters

Detailed Description

Initiate/Terminate a color tag.

Macros

#define COLOR_ON   '\1'
 Escape character (ON). More...
 
#define COLOR_OFF   '\2'
 Escape character (OFF). More...
 
#define COLOR_ESC   '\3'
 Escape character (Quote next character). More...
 
#define COLOR_INV   '\4'
 Escape character (Inverse foreground and background colors). More...
 
#define SCOLOR_ON   "\1"
 Escape character (ON)
 
#define SCOLOR_OFF   "\2"
 Escape character (OFF)
 
#define SCOLOR_ESC   "\3"
 Escape character (Quote next character)
 
#define SCOLOR_INV   "\4"
 Escape character (Inverse colors)
 

Functions

bool requires_color_esc (char c)
 Is the given char a color escape character?
 

Macro Definition Documentation

#define COLOR_ON   '\1'

Escape character (ON).

Followed by a color code (color_t).

#define COLOR_OFF   '\2'

Escape character (OFF).

Followed by a color code (color_t).

#define COLOR_ESC   '\3'

Escape character (Quote next character).

This is needed to output '\1' and '\2' characters.

#define COLOR_INV   '\4'

Escape character (Inverse foreground and background colors).

This escape character has no corresponding COLOR_OFF. Its action continues until the next COLOR_INV or end of line.