zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-workers@zsh.org
Subject: Re: BUG?: Konsole: ZLE_RPROMPT_INDENT swallows last PS1 character
Date: Sat, 22 Nov 2014 15:07:28 -0800	[thread overview]
Message-ID: <141122150728.ZM15851@torch.brasslantern.com> (raw)
In-Reply-To: <37510A22-C2EF-4B40-A929-5992F0AE143D@yandex.ru>

On Nov 22, 10:49pm, kp-pav@yandex.ru wrote:
}
} Anybody knows whether this is zsh or konsole bug and how to fix it?
} Fish has no such problem, so I would assume zsh.

Fish, as I understand it, does full-screen terminal management.  Zsh does
only the minimum to manage the lines occupied by the input buffer, and
leaves the rest of the display alone.

This means that zsh may be affected by terminal auto-scrolling (or lack
thereof) at the ends of lines or in the lower right corner, in ways that
a program designed to track the entire screen is not.  This is not a bug,
it's a deliberate design decision, and if what you want is fish then you
should use fish.

The fix is to NOT set ZLE_RPROMPT_INDENT=0.  The variable exists so you
can use it to override zsh if it guesses wrong about where it's safe to
put the rprompt; it seems that for konsole it had guessed correctly.


  reply	other threads:[~2014-11-22 23:07 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-22 19:49 Павлов Николай Александрович
2014-11-22 23:07 ` Bart Schaefer [this message]
2014-11-23  3:29   ` Bart Schaefer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=141122150728.ZM15851@torch.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).