summaryrefslogtreecommitdiff
path: root/colors.h
blob: 0236d35f64585afecbcd9d3f2703b01c55b81a00 (plain)
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
#ifndef COLORS_H
#define COLORS_H

#define __reset                 "0"

#define __bold                  "1"

#define __black                 "30"
#define __red                   "31"
#define __green                 "32"
#define __yellow                "33"
#define __blue                  "34"
#define __magenta               "35"
#define __cyan                  "36"
#define __white                 "37"

#define __on_black              "40"
#define __on_red                "41"
#define __on_green              "42"
#define __on_yellow             "43"
#define __on_blue               "44"
#define __on_magenta            "45"
#define __on_cyan               "46"
#define __on_white              "47"

#define colorize_start(fore)		"\033[" __##fore "m"
#define colorize_start_full(fore, back)	"\033[" __##fore ";" __on_##back "m"
#define colorize_end()			"\033[" __reset "m"

#endif /* COLORS_H */
> 2017-02-10bpf: Use bpf_map_lookup_elem() from the libraryMickaël Salaün6-50/+39 2017-02-10bpf: Use bpf_map_update_elem() from the libraryMickaël Salaün6-91/+99 2017-02-10bpf: Use bpf_load_program() from the libraryMickaël Salaün6-32/+17 2017-02-10bpf: Always test unprivileged programsMickaël Salaün2-6/+64 2017-02-10bpf: Change the include directory for selftestMickaël Salaün1-1/+1 2017-02-10tools: Sync {,tools/}include/uapi/linux/bpf.hMickaël Salaün1-1/+22 2017-02-07Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/netDavid S. Miller