Commit e8ef1657 authored by canthiswait's avatar canthiswait Committed by Robby Russell
Browse files

escape sequences so rprompt doesn't mess up

parent 02bd8ab5
...@@ -6,15 +6,15 @@ ...@@ -6,15 +6,15 @@
typeset -Ag FX FG BG typeset -Ag FX FG BG
FX=( FX=(
reset "" reset "%{%}"
bold "" no-bold "" bold "%{%}" no-bold "%{%}"
italic "" no-italic "" italic "%{%}" no-italic "%{%}"
underline "" no-underline "" underline "%{%}" no-underline "%{%}"
blink "" no-blink "" blink "%{%}" no-blink "%{%}"
reverse "" no-reverse "" reverse "%{%}" no-reverse "%{%}"
) )
for color in {000..255}; do for color in {000..255}; do
FG[$color]="[38;5;${color}m" FG[$color]="%{[38;5;${color}m%}"
BG[$color]="[48;5;${color}m" BG[$color]="%{[48;5;${color}m%}"
done done
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment