The Witchcraft Compiler Collection
WCC
Main Page
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Macros
wsh
include
colors.h
Go to the documentation of this file.
1
// Bold + color
2
#define RED "\033[1;31m"
3
#define CYAN "\033[1;36m"
4
#define GREEN "\033[1;32m"
5
#define BLUE "\033[1;34m"
6
#define BLACK "\033[1;30m"
7
#define BROWN "\033[1;33m"
8
#define MAGENTA "\033[1;35m"
9
#define GRAY "\033[1;37m"
10
#define DARKGRAY "\033[1;30m"
11
#define YELLOW "\033[1;33m"
12
13
// Normal text
14
#define NORMAL "\033[0m"
/* flush the previous properties */
15
16
17
#define CLEAR "\033[2J"
18
19
20
21
/*
22
such as printf("\033[8;5Hhello"); // Move to (8, 5) and output hello
23
24
other commands:
25
26
printf("\033[XA"); // Move up X lines;
27
printf("\033[XB"); // Move down X lines;
28
printf("\033[XC"); // Move right X column;
29
printf("\033[XD"); // Move left X column;
30
printf("\033[2J"); // Clear screen
31
*/
32
Generated on Fri Aug 12 2016 17:38:31 for The Witchcraft Compiler Collection by
1.8.6