306 ANSI_COLOR_BLACK = 30,
315 ANSI_COLOR_BLACK_BG = 40,
318 ANSI_COLOR_YELLOW_BG,
320 ANSI_COLOR_MAGENTA_BG,
324 ANSI_COLOR_B8_BLACK = 50,
325 ANSI_COLOR_B8_DARK_BLUE ,
326 ANSI_COLOR_B8_DARK_PURPLE ,
327 ANSI_COLOR_B8_DARK_GREEN ,
328 ANSI_COLOR_B8_BROWN ,
329 ANSI_COLOR_B8_DARK_GREY ,
330 ANSI_COLOR_B8_LIGHT_GREY ,
331 ANSI_COLOR_B8_WHITE ,
333 ANSI_COLOR_B8_ORANGE ,
334 ANSI_COLOR_B8_YELLOW ,
335 ANSI_COLOR_B8_GREEN ,
337 ANSI_COLOR_B8_LAVENDER ,
339 ANSI_COLOR_B8_LIGHT_PEACH ,
341 ANSI_COLOR_B8_BLACK_BG = 70,
342 ANSI_COLOR_B8_DARK_BLUE_BG ,
343 ANSI_COLOR_B8_DARK_PURPLE_BG ,
344 ANSI_COLOR_B8_DARK_GREEN_BG ,
345 ANSI_COLOR_B8_BROWN_BG ,
346 ANSI_COLOR_B8_DARK_GREY_BG ,
347 ANSI_COLOR_B8_LIGHT_GREY_BG ,
348 ANSI_COLOR_B8_WHITE_BG ,
349 ANSI_COLOR_B8_RED_BG ,
350 ANSI_COLOR_B8_ORANGE_BG ,
351 ANSI_COLOR_B8_YELLOW_BG ,
352 ANSI_COLOR_B8_GREEN_BG ,
353 ANSI_COLOR_B8_BLUE_BG ,
354 ANSI_COLOR_B8_LAVENDER_BG ,
355 ANSI_COLOR_B8_PINK_BG ,
356 ANSI_COLOR_B8_LIGHT_PEACH_BG ,
359 ANSI_COLOR_BRIGHT_BLACK = 90,
360 ANSI_COLOR_BRIGHT_RED ,
361 ANSI_COLOR_BRIGHT_GREEN ,
362 ANSI_COLOR_BRIGHT_YELLOW ,
363 ANSI_COLOR_BRIGHT_BLUE ,
364 ANSI_COLOR_BRIGHT_MAGENTA ,
365 ANSI_COLOR_BRIGHT_CYAN ,
366 ANSI_COLOR_BRIGHT_WHITE ,
368 ANSI_COLOR_BRIGHT_BLACK_BG = 100,
369 ANSI_COLOR_BRIGHT_RED_BG ,
370 ANSI_COLOR_BRIGHT_GREEN_BG ,
371 ANSI_COLOR_BRIGHT_YELLOW_BG ,
372 ANSI_COLOR_BRIGHT_BLUE_BG ,
373 ANSI_COLOR_BRIGHT_MAGENTA_BG ,
374 ANSI_COLOR_BRIGHT_CYAN_BG ,
375 ANSI_COLOR_BRIGHT_WHITE_BG
389 void ResetSetColor(){
391 _fg = ANSI_COLOR_WHITE;
395 void ResetMoveCursor(){
405 inline void ResetAll(){
412 _fg = ANSI_COLOR_WHITE;
Definition esc_decoder.h:422
Definition esc_decoder.cpp:24
AnsiColor
Enumeration for ANSI color codes.
Definition esc_decoder.h:303
void EscMoveCursor(FILE *fp, s32 x_, s32 y_)
Moves the cursor to a specific position.
Definition esc_decoder.cpp:279
EscapePAL
Enumeration for selecting a palette in the terminal.
Definition esc_decoder.h:260
@ PAL_2
Palette 2.
Definition esc_decoder.h:263
@ PAL_1
Palette 1.
Definition esc_decoder.h:262
@ PAL_3
Palette 3.
Definition esc_decoder.h:264
@ PAL_0
Palette 0.
Definition esc_decoder.h:261
EscapeSeqOpe
Enumeration for escape sequence operations.
Definition esc_decoder.h:274
@ ESO_CLEAR_LINE_FROM_CURSOR_RIGHT
Clears the line from the cursor to the right.
Definition esc_decoder.h:287
@ ESO_DISABLE_SHADOW
Disables the shadow effect.
Definition esc_decoder.h:291
@ ESO_SEL_PAL
Selects a palette.
Definition esc_decoder.h:282
@ ESO_UP
Moves the cursor up.
Definition esc_decoder.h:276
@ ESO_SET_Z
Sets the z value.
Definition esc_decoder.h:292
@ ESO_CLEAR_ENTIRE_LINE
Clears the entire line.
Definition esc_decoder.h:289
@ ESO_LEFT
Moves the cursor left.
Definition esc_decoder.h:279
@ ESO_SET_COLOR
Sets the foreground and background color.
Definition esc_decoder.h:283
@ ESO_DEL
Deletes a character.
Definition esc_decoder.h:280
@ ESO_DOWN
Moves the cursor down.
Definition esc_decoder.h:277
@ ESO_CLEAR_SCREEN_FROM_CURSOR_DOWN
Clears the screen from the cursor down.
Definition esc_decoder.h:284
@ ESO_ENABLE_SHADOW
Enables the shadow effect.
Definition esc_decoder.h:290
@ ESO_ONE_CHAR
Processes a single character.
Definition esc_decoder.h:275
@ ESO_CLEAR_ENTIRE_SCREEN
Clears the entire screen.
Definition esc_decoder.h:286
@ ESO_MOVE_CURSOR
Moves the cursor to a specified position.
Definition esc_decoder.h:281
@ ESO_NONE
No operation.
Definition esc_decoder.h:293
@ ESO_CLEAR_SCREEN_FROM_CURSOR_UP
Clears the screen from the cursor up.
Definition esc_decoder.h:285
@ ESO_RIGHT
Moves the cursor right.
Definition esc_decoder.h:278
@ ESO_CLEAR_LINE_FROM_CURSOR_LEFT
Clears the line from the cursor to the left.
Definition esc_decoder.h:288
void EscClearEntireScreen(FILE *fp)
Clears the entire screen.
Definition esc_decoder.cpp:274
Definition esc_decoder.h:378