blob: 21b9bbb65ca1f4bb1503330d2f5930f7e1bfd49b (
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
|
; ansi.neb
; functions and such for colors in the terminal
(func wrap (color-code :string)
(concat "\033[" color-code "m"))
(def reset (wrap "0"))
; COLORS
(def black-on (wrap "30"))
(func black (str :string)
(concat black-on str reset))
(def bright-black-on (wrap "90"))
(func bright-black (str :string)
(concat bright-black-on str reset))
(def red-on (wrap "31"))
(func red (str :string)
(concat red str reset))
(def bright-red-on (wrap "91"))
(func bright-red (str :string)
(concat bright-red-on str reset))
(def green-on (wrap "32"))
(func green (str :string)
(concat green-on str reset))
(def bright-green-on (wrap "92"))
(func bright-green (str :string)
(concat bright-green-on str reset))
(def yellow-on (wrap "33"))
(func yellow (str :string)
(concat yellow-on str reset))
(def bright-yellow-on (wrap "93"))
(func bright-yellow (str :string)
(concat bright-yellow-on str reset))
(def blue-on (wrap "34"))
(func blue (str :string)
(concat blue-on str reset))
(def bright-blue-on (wrap "94"))
(func bright-blue (str :string)
(concat bright-blue-on str reset))
(def magenta-on (wrap "35"))
(func magenta (str :string)
(concat magenta-on str reset))
(def bright-magenta-on (wrap "95"))
(func bright-magenta (str :string)
(concat bright-magenta-on str reset))
(def cyan-on (wrap "36"))
(func cyan (str :string)
(concat cyan-on str reset))
(def bright-cyan-on (wrap "96"))
(func bright-cyan (str :string)
(concat bright-cyan-on str reset))
(def white-on (wrap "37"))
(func white (str :string)
(concat white-on str reset))
(def bright-white-on (wrap "97"))
(func bright-white (str :string)
(concat bright-white-on str reset))
; STYLES
(def bold-on (wrap "1"))
(func bold (str :string)
(concat bold-on str reset))
(def faint-on (wrap "2"))
(func faint (str :string)
(concat faint-on str reset))
(def italic-on (wrap "3"))
(func italic (str :string)
(concat italic-on str reset))
(def underline-on (wrap "4"))
(func underline (str :string)
(concat underline-on str reset))
(def blink-on (wrap "5"))
(func blink (str :string)
(concat blink-on str reset))
(def reverse-on (wrap "7"))
(func reverse (str :string)
(concat reverse-on str reset))
|