diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2008-05-09 17:33:49 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2008-05-09 17:33:49 +0000 |
commit | c811a18d44c4720572504065bc1b83371b8998b2 (patch) | |
tree | 201687655489fbbfd782e4807ce5bcf7d775c97e /Doc/Zsh/prompt.yo | |
parent | f7246fb559da77ac718b610132cdfb6ea07dc686 (diff) | |
download | zsh-c811a18d44c4720572504065bc1b83371b8998b2.tar.gz zsh-c811a18d44c4720572504065bc1b83371b8998b2.tar.xz zsh-c811a18d44c4720572504065bc1b83371b8998b2.zip |
24986: prompt escapes for colours
Diffstat (limited to 'Doc/Zsh/prompt.yo')
-rw-r--r-- | Doc/Zsh/prompt.yo | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Doc/Zsh/prompt.yo b/Doc/Zsh/prompt.yo index 29761140e..8aaa4d4f4 100644 --- a/Doc/Zsh/prompt.yo +++ b/Doc/Zsh/prompt.yo @@ -183,6 +183,20 @@ Start (stop) underline mode. item(tt(%S) LPAR()tt(%s)RPAR())( Start (stop) standout mode. ) +item(tt(%F) LPAR()tt(%f)RPAR())( +Start (stop) using a different foreground colour, if supported +by the terminal. The colour may be specified two ways: either +as a numeric argument, as normal, or by a sequence in braces +following the tt(%F), for example tt(%F{red}). In the latter case +the values allowed are as described for the tt(fg) tt(zle_highlight) +attribute; +ifzman(see em(Character Highlighting) in zmanref(zshzle))\ +ifnzman(noderef(Character Highlighting)). +) +item(tt(%K) LPAR()tt(%k)RPAR())( +Start (stop) using a different bacKground colour. The syntax is +identical to that for tt(%F) and tt(%f). +) item(tt(%{)...tt(%}))( Include a string as a literal escape sequence. The string within the braces should not change the cursor |