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;27m"
|
27 | green: "\x1b[38;05;34m"
|
28 | cyan: "\x1b[38;05;51m"
|
29 | sepia: "\x1b[38;05;52m"
|
30 | indigo: "\x1b[38;05;54m"
|
31 | steel: "\x1b[38;05;67m"
|
32 | brown: "\x1b[38;05;94m"
|
33 | olive: "\x1b[38;05;100m"
|
34 | lime: "\x1b[38;05;118m"
|
35 | red: "\x1b[38;05;124m"
|
36 | crimson: "\x1b[38;05;161m"
|
37 | plum: "\x1b[38;05;176m"
|
38 | pink: "\x1b[38;05;199m"
|
39 | orange: "\x1b[38;05;208m"
|
40 | gold: "\x1b[38;05;214m"
|
41 | tan: "\x1b[38;05;215m"
|
42 | yellow: "\x1b[38;05;226m"
|
43 | grey: "\x1b[38;05;240m"
|
44 | darkgrey: "\x1b[38;05;234m"
|
45 | white: "\x1b[38;05;255m"
|
46 |
|
47 | # experimental:
|
48 | # colors as defined by http://ethanschoonover.com/solarized
|
49 | BASE03: "\x1b[38;05;234m"
|
50 | BASE02: "\x1b[38;05;235m"
|
51 | BASE01: "\x1b[38;05;240m"
|
52 | BASE00: "\x1b[38;05;241m"
|
53 | BASE0: "\x1b[38;05;244m"
|
54 | BASE1: "\x1b[38;05;245m"
|
55 | BASE2: "\x1b[38;05;254m"
|
56 | BASE3: "\x1b[38;05;230m"
|
57 | YELLOW: "\x1b[38;05;136m"
|
58 | ORANGE: "\x1b[38;05;166m"
|
59 | RED: "\x1b[38;05;124m"
|
60 | MAGENTA: "\x1b[38;05;125m"
|
61 | VIOLET: "\x1b[38;05;61m"
|
62 | BLUE: "\x1b[38;05;33m"
|
63 | CYAN: "\x1b[38;05;37m"
|
64 | GREEN: "\x1b[38;05;64m"
|
65 |
|
66 |
|
67 |
|
68 | #-----------------------------------------------------------------------------------------------------------
|
69 | # Moves etc
|
70 | #...........................................................................................................
|
71 | @cr = "\x1b[1G" # Carriage Return; move to first column
|
72 | @clear_line_right = "\x1b[0K" # Clear to end of line
|
73 | @clear_line_left = "\x1b[1K" # Clear to start of line
|
74 | @clear_line = "\x1b[2K" # Clear all line content
|
75 | @clear_below = "\x1b[0J" # Clear to the bottom
|
76 | @clear_above = "\x1b[1J" # Clear to the top (including current line)
|
77 | @clear = "\x1b[2J" # Clear entire screen
|
78 |
|
79 |
|
80 |
|
81 |
|