... | ... |
@@ -6,15 +6,15 @@ |
6 | 6 |
typeset -Ag FX FG BG |
7 | 7 |
|
8 | 8 |
FX=( |
9 |
- reset "[00m" |
|
10 |
- bold "[01m" no-bold "[22m" |
|
11 |
- italic "[03m" no-italic "[23m" |
|
12 |
- underline "[04m" no-underline "[24m" |
|
13 |
- blink "[05m" no-blink "[25m" |
|
14 |
- reverse "[07m" no-reverse "[27m" |
|
9 |
+ reset "%{[00m%}" |
|
10 |
+ bold "%{[01m%}" no-bold "%{[22m%}" |
|
11 |
+ italic "%{[03m%}" no-italic "%{[23m%}" |
|
12 |
+ underline "%{[04m%}" no-underline "%{[24m%}" |
|
13 |
+ blink "%{[05m%}" no-blink "%{[25m%}" |
|
14 |
+ reverse "%{[07m%}" no-reverse "%{[27m%}" |
|
15 | 15 |
) |
16 | 16 |
|
17 | 17 |
for color in {000..255}; do |
18 |
- FG[$color]="[38;5;${color}m" |
|
19 |
- BG[$color]="[48;5;${color}m" |
|
18 |
+ FG[$color]="%{[38;5;${color}m%}" |
|
19 |
+ BG[$color]="%{[48;5;${color}m%}" |
|
20 | 20 |
done |