Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
zle reset-prompt with prompt that is COLUMNS wide eats line above promptâs first line
- X-seq: zsh-users 15649
- From: Nikolai Weibull <now@xxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: zle reset-prompt with prompt that is COLUMNS wide eats line above promptâs first line
- Date: Fri, 10 Dec 2010 11:40:11 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; bh=+D5a+ICpe1F219bFPT9hFqIG1xpYc8fqrEttM0TYBYo=; b=HT7sCBZWfi0gZKI+gODQYCjhQ84kotlCZJDlIyQr19ECNwLJFkh+ucI8f5JQMf/f8O 1kWcE6cRDFHmLcKUmeCCrto6rl97rp2kBQdhd4ewGlj+If6Y337+YB5PuKgPdg04o/6L 3aOua1zA4G6uOvuqb2+ZcQAm0pdesp1qscKmw=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type:content-transfer-encoding; b=VDBu96rVuWWXA2/7TzvICh+cZc+plC0WO4x1c/OtlIkvfoYY6P52q3NsTc4rGEJjJW 2tWs91A86EdD2Er1wrN2GHQ+EieGE7PCcoEkFLIqHaN+yJVlttOIrWkOIygQLoM2F6GB IZiH3bh0N6u+DTjEAEuSVq2SlCO2qLUub3h1o=
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- Sender: nikolai.weibull@xxxxxxxxx
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?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author