about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBart Schaefer <barts@users.sourceforge.net>2005-04-24 18:39:51 +0000
committerBart Schaefer <barts@users.sourceforge.net>2005-04-24 18:39:51 +0000
commit50734b7acaab0a3f03adf57a7738168d2a246c8c (patch)
tree33c1967b85f2dff30f796bd12f4036b9b215f1fb
parent38d2734e0a3f3935f99c0aa1b439abc060e0974a (diff)
downloadzsh-50734b7acaab0a3f03adf57a7738168d2a246c8c.tar.gz
zsh-50734b7acaab0a3f03adf57a7738168d2a246c8c.tar.xz
zsh-50734b7acaab0a3f03adf57a7738168d2a246c8c.zip
Adopt a suggestion from Oliver
-rw-r--r--Functions/Prompts/prompt_bart_setup5
1 files changed, 4 insertions, 1 deletions
diff --git a/Functions/Prompts/prompt_bart_setup b/Functions/Prompts/prompt_bart_setup
index 36ec6f7ac..2f0e44f43 100644
--- a/Functions/Prompts/prompt_bart_setup
+++ b/Functions/Prompts/prompt_bart_setup
@@ -80,7 +80,10 @@ prompt_bart_precmd () {
 
     # Reset the truncation widths for upcoming computations
     ((PSCOL == 1)) || { PSCOL=1 ; prompt_bart_ps1 }
-    [[ -o promptcr ]] || IFS='[;' read -s -d R escape\?$'\e[6n' lineno PSCOL
+    if [[ -o promptcr ]]
+    then print -nP "${(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
     ((colno = COLUMNS-PSCOL))