-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcolors.h
53 lines (52 loc) · 1.8 KB
/
colors.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* colors.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: jjacobso <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/01/26 17:43:48 by jjacobso #+# #+# */
/* Updated: 2019/01/26 17:47:45 by jjacobso ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef COLORS_H
# define COLORS_H
/*
** @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
** TEXT COLORS
**
** Example:
** ft_printf(BOLD RED BLINK"Hello, "CYN"%s!", "world"RESET)
** And another one:
** ft_printf(BOLD COLOR("32") "Bold green" RESET)
** More console codes info (ru):
** http://www.opennet.ru/base/dev/console_ctl.txt.html
*/
# define BLK "\e[30m"
# define RED "\e[31m"
# define GRN "\e[32m"
# define YEL "\e[33m"
# define BLU "\e[34m"
# define PPL "\e[35m"
# define CYN "\e[36m"
# define GRY "\e[37m"
/*
** BACKGROUND COLORS
*/
# define BBLK "\e[40m"
# define BRED "\e[41m"
# define BGRN "\e[42m"
# define BYEL "\e[43m"
# define BBLU "\e[44m"
# define BPPL "\e[45m"
# define BCYN "\e[46m"
# define BGRY "\e[47m"
/*
** OTHER TEXT SETTINGS
*/
# define RESET "\e[0m"
# define BOLD "\e[1m"
# define BLINK "\e[5m"
# define REVERSE "\e[7m"
# define COLOR(X) "\e["X"m"
#endif