ParamKit
A small library helping to parse commandline parameters (for Windows).
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Macros
term_colors.h File Reference

Definitions of the colors used on the terminal. More...

#include <iostream>
#include <windows.h>

Go to the source code of this file.

Macros

#define BLACK   0
 
#define DARK_BLUE   1
 
#define DARK_GREEN   2
 
#define DARK_CYAN   3
 
#define DARK_RED   4
 
#define DARK_MAGENTA   5
 
#define BROWN   6
 
#define SILVER   7
 
#define GRAY   8
 
#define BLUE   9
 
#define LIME   0xA
 
#define CYAN   0xB
 
#define RED   0xC
 
#define MAGENTA   0xD
 
#define YELLOW   0xE
 
#define WHITE   0xF
 
#define MAKE_COLOR(fg_color, bg_color)   (fg_color | (bg_color << 4))
 
#define GET_BG_COLOR(color)   (color >> 4)
 
#define YELLOW_ON_BLACK   MAKE_COLOR(YELLOW, BLACK)
 
#define RED_ON_BLACK   MAKE_COLOR(RED, BLACK)
 

Detailed Description

Definitions of the colors used on the terminal.

Definition in file term_colors.h.

Macro Definition Documentation

◆ BLACK

#define BLACK   0

Definition at line 11 of file term_colors.h.

◆ BLUE

#define BLUE   9

Definition at line 20 of file term_colors.h.

◆ BROWN

#define BROWN   6

Definition at line 17 of file term_colors.h.

◆ CYAN

#define CYAN   0xB

Definition at line 22 of file term_colors.h.

◆ DARK_BLUE

#define DARK_BLUE   1

Definition at line 12 of file term_colors.h.

◆ DARK_CYAN

#define DARK_CYAN   3

Definition at line 14 of file term_colors.h.

◆ DARK_GREEN

#define DARK_GREEN   2

Definition at line 13 of file term_colors.h.

◆ DARK_MAGENTA

#define DARK_MAGENTA   5

Definition at line 16 of file term_colors.h.

◆ DARK_RED

#define DARK_RED   4

Definition at line 15 of file term_colors.h.

◆ GET_BG_COLOR

#define GET_BG_COLOR (   color)    (color >> 4)

Definition at line 29 of file term_colors.h.

◆ GRAY

#define GRAY   8

Definition at line 19 of file term_colors.h.

◆ LIME

#define LIME   0xA

Definition at line 21 of file term_colors.h.

◆ MAGENTA

#define MAGENTA   0xD

Definition at line 24 of file term_colors.h.

◆ MAKE_COLOR

#define MAKE_COLOR (   fg_color,
  bg_color 
)    (fg_color | (bg_color << 4))

Definition at line 28 of file term_colors.h.

◆ RED

#define RED   0xC

Definition at line 23 of file term_colors.h.

◆ RED_ON_BLACK

#define RED_ON_BLACK   MAKE_COLOR(RED, BLACK)

Definition at line 32 of file term_colors.h.

◆ SILVER

#define SILVER   7

Definition at line 18 of file term_colors.h.

◆ WHITE

#define WHITE   0xF

Definition at line 26 of file term_colors.h.

◆ YELLOW

#define YELLOW   0xE

Definition at line 25 of file term_colors.h.

◆ YELLOW_ON_BLACK

#define YELLOW_ON_BLACK   MAKE_COLOR(YELLOW, BLACK)

Definition at line 31 of file term_colors.h.