escape sequences so rprompt doesn't mess up

main
canthiswait 15 years ago
parent 5b7b5bc9d1
commit 32b8cedb72

@ -6,15 +6,15 @@
typeset -Ag FX FG BG
FX=(
reset ""
bold "" no-bold ""
italic "" no-italic ""
underline "" no-underline ""
blink "" no-blink ""
reverse "" no-reverse ""
reset "%{%}"
bold "%{%}" no-bold "%{%}"
italic "%{%}" no-italic "%{%}"
underline "%{%}" no-underline "%{%}"
blink "%{%}" no-blink "%{%}"
reverse "%{%}" no-reverse "%{%}"
)
for color in {000..255}; do
FG[$color]="[38;5;${color}m"
BG[$color]="[48;5;${color}m"
FG[$color]="%{[38;5;${color}m%}"
BG[$color]="%{[48;5;${color}m%}"
done

Loading…
Cancel
Save