-
Notifications
You must be signed in to change notification settings - Fork 0
/
esc256.outlang
53 lines (45 loc) · 1.14 KB
/
esc256.outlang
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
extension "txt"
styletemplate "\x1b[$stylem$text\x1b[m"
color "00;38;05;$style"
colormap
"blue" "75"
"darkblue" "33"
"gray" "242"
"green" "70"
"orange" "208"
"purple" "171"
"red" "196"
"white" "255"
"yellow" "226"
default "255"
end
####################
# Code color help
#####################
# 256 code color control template:
# Code : \033[AA;FF;BBm
# AA (attributes) : 00|01|03|04|05|07|22|23|24|25|27
# FF (foreground) : 38;05;color
# BB (background) : 48;05;color
# color : 000-255
# Attributes meaning
# 00 Reset
# 01 Bold
# 03 Italic
# 04 Underline
# 05 Blink (doesn't work when a background is set)
# 07 Reverse (swap foreground and background)
# 22 No Bold
# 23 No Italic
# 24 No Underline
# 25 No Blink
# 27 No Reverse
# Any of AA,FF,BB may be omited.
# Reset code (default color/attribute): \033[m
# Examples:
# -> Hello world in color 226 (=> yellow):
# echo -e "\033[38;05;226mHello, World"
# -> Hello world in bold blanking yellow:
# echo -e "\033[01;05;38;05;226mHello, World"
# -> Hello world in bold yellow with a red background:
# echo -e "\033[01;38;05;226;48;05;196mHello, World"