diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2008-02-15 23:59:05 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2008-02-15 23:59:05 +0000 |
commit | 7da98c51246f245cde16cddb9b418afcfb3b3574 (patch) | |
tree | f51933a73efe9bce68907df66827f23f413569bc /Doc/Zsh/prompt.yo | |
parent | ac0756270c583430fa036403ac4a726716e1c967 (diff) | |
download | zsh-7da98c51246f245cde16cddb9b418afcfb3b3574.tar.gz zsh-7da98c51246f245cde16cddb9b418afcfb3b3574.tar.xz zsh-7da98c51246f245cde16cddb9b418afcfb3b3574.zip |
24556: %G in prompt for glitch characters
Diffstat (limited to 'Doc/Zsh/prompt.yo')
-rw-r--r-- | Doc/Zsh/prompt.yo | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Doc/Zsh/prompt.yo b/Doc/Zsh/prompt.yo index 456a0bc0e..66e2b9015 100644 --- a/Doc/Zsh/prompt.yo +++ b/Doc/Zsh/prompt.yo @@ -188,6 +188,18 @@ Include a string as a literal escape sequence. The string within the braces should not change the cursor position. Brace pairs can nest. ) +item(tt(%G))( +Within a tt(%{)...tt(%}) sequence, include a `glitch': that is, assume +that a single character width will be output. This is useful when +outputting characters that otherwise cannot be correctly handled by the +shell, such as the alternate character set on some terminals. +The characters in question can be included within a tt(%{)...tt(%}) +sequence together with the appropriate number of tt(%G) sequences to +indicate the correct width. An integer between the `tt(%)' and `tt(G)' +indicates a character width other than one. Hence tt(%{)var(seq)tt(%2G%}) +outputs var(seq) and assumes it takes up the width of two standard +characters. +) enditem() sect(Conditional Substrings in Prompts) |