1 |
|
2 |
|
3 |
|
4 | #-----------------------------------------------------------------------------------------------------------
|
5 | # Effects On
|
6 | #...........................................................................................................
|
7 | @blink = "\x1b[5m"
|
8 | @bold = "\x1b[1m"
|
9 | @reverse = "\x1b[7m"
|
10 | @underline = "\x1b[4m"
|
11 |
|
12 | #-----------------------------------------------------------------------------------------------------------
|
13 | # Effects Off
|
14 | #...........................................................................................................
|
15 | @no_blink = "\x1b[25m"
|
16 | @no_bold = "\x1b[22m"
|
17 | @no_reverse = "\x1b[27m"
|
18 | @no_underline = "\x1b[24m"
|
19 | @reset = "\x1b[0m"
|
20 |
|
21 | #-----------------------------------------------------------------------------------------------------------
|
22 | # Colors
|
23 | #...........................................................................................................
|
24 | @colors =
|
25 | black: "\x1b[38;05;16m"
|
26 | blue: "\x1b[38;05;20m"
|
27 | cyan: "\x1b[38;05;45m"
|
28 | gold: "\x1b[38;05;220m"
|
29 | green: "\x1b[38;05;28m"
|
30 | grey: "\x1b[38;05;240m"
|
31 | olive: "\x1b[38;05;100m"
|
32 | orange: "\x1b[38;05;214m"
|
33 | plum: "\x1b[38;05;183m"
|
34 | red: "\x1b[38;05;124m"
|
35 |
|
36 | #-----------------------------------------------------------------------------------------------------------
|
37 | # Moves etc
|
38 | #...........................................................................................................
|
39 | @cr = "\x1b[1G" # Carriage Return; move to first column
|
40 | @clear_line_right = "\x1b[0K" # Clear to end of line
|
41 | @clear_line_left = "\x1b[1K" # Clear to start of line
|
42 | @clear_line = "\x1b[2K" # Clear all line content
|
43 | @clear_below = "\x1b[0J" # Clear to the bottom
|
44 | @clear_above = "\x1b[1J" # Clear to the top (including current line)
|
45 | @clear = "\x1b[2J" # Clear entire screen
|
46 |
|
47 |
|
48 |
|
49 |
|