zsh-users
 help / color / mirror / code / Atom feed
* zle reset-prompt with prompt that is COLUMNS wide eats line above prompt’s first line
@ 2010-12-10 10:40 Nikolai Weibull
  2010-12-11  7:57 ` zle reset-prompt with prompt that is COLUMNS wide eats line above prompt's " Bart Schaefer
  0 siblings, 1 reply; 3+ messages in thread
From: Nikolai Weibull @ 2010-12-10 10:40 UTC (permalink / raw)
  To: Zsh Users

Hi!

Running zle reset-prompt with a prompt that is COLUMNS wide eats the
line above prompt’s first line.  Here’s a set-up to try it with:

PS1=${(l:COLUMNS:)}$'\n'
bindkey '^^' reset-prompt

Each time you press CTRL-^ you’ll be eating the line above the first
line of the prompt.  If you change PS1 to ${(l:COLUMNS-1)}$'\n' this
doesn’t happen.

Would it be possible to have prompt that is COLUMNS wide and have this
not happen?


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-01-25 13:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-10 10:40 zle reset-prompt with prompt that is COLUMNS wide eats line above prompt’s first line Nikolai Weibull
2010-12-11  7:57 ` zle reset-prompt with prompt that is COLUMNS wide eats line above prompt's " Bart Schaefer
2011-01-25 13:23   ` Nikolai Weibull

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).