mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-11-18 21:14:11 +01:00
Tweak promptcr handling in "bart" prompt theme
This commit is contained in:
parent
3acf90f67e
commit
bee423bc9f
@ -1,3 +1,9 @@
|
||||
2005-05-23 Bart Schaefer <schaefer@zsh.org>
|
||||
|
||||
* unposted: Functions/Prompts/prompt_bart_setup: print whitespace
|
||||
to stderr for promptcr adjustments, because the prompt itself is
|
||||
printed to stderr.
|
||||
|
||||
2005-05-23 Peter Stephenson <pws@csr.com>
|
||||
|
||||
* 21270: Src/system.h: don't use poll() on Apple.
|
||||
|
@ -81,7 +81,7 @@ prompt_bart_precmd () {
|
||||
# Reset the truncation widths for upcoming computations
|
||||
((PSCOL == 1)) || { PSCOL=1 ; prompt_bart_ps1 }
|
||||
if [[ -o promptcr ]]
|
||||
then print -nP "${(l.COLUMNS.. .)}\e[s${(pl.COLUMNS..\b.)}%E\e[u"
|
||||
then print -nPu 2 "${(l.COLUMNS.. .)}\e[s${(pl.COLUMNS..\b.)}%E\e[u"
|
||||
else IFS='[;' read -s -d R escape\?$'\e[6n' lineno PSCOL
|
||||
fi
|
||||
((PSCOL == 1)) || prompt_bart_ps1
|
||||
|
Loading…
Reference in New Issue
Block a user