zsh-workers
 help / color / mirror / code / Atom feed
* BUG?: Konsole: ZLE_RPROMPT_INDENT swallows last PS1 character
@ 2014-11-22 19:49 Павлов Николай Александрович
  2014-11-22 23:07 ` Bart Schaefer
  0 siblings, 1 reply; 3+ messages in thread
From: Павлов Николай Александрович @ 2014-11-22 19:49 UTC (permalink / raw)
  To: zsh-workers

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Consider the following command

    PS1='%% ' RPS1='#' ZLE_RPROMPT_INDENT=0 zsh -f

. I would expect this result in

    !% _          #!

(where '!' are terminal emulator boundaries and '_' is cursor position). Unfortunately this does work in fbterm, rxvt-unicode and xterm, but in konsole this produces the following:

    !%_           #!

(note that there is no space after per cent character). Same thing happens with any other trailing character. Anybody knows whether this is zsh or konsole bug and how to fix it? Fish has no such problem, so I would assume zsh.

Using zsh-5.0.7, konsole-4.12.5.
-----BEGIN PGP SIGNATURE-----
Version: APG v1.1.1

iQJNBAEBCgA3BQJUcOi5MBwfMDI7PjIgHTg6PjswOSAQOzU6QTA9NEA+MjhHIDxr
cC1wYXZAeWFuZGV4LnJ1PgAKCRBu+P2/AXZZIuG/EACEkge6Xw4Rij7ThKCBa4Nl
AOnHYl9UIz8HLtjKzqineJcj1mwrs2ZwDxxiIdxghRj27Jg3vBDtaZFTc2g2vM8s
H/WjZgWX/JkQIx27OV6m2ObIfXSt3LsAh46z0VnaVM7k1soEvoFLFTt0/QuBWIbE
MMQ5/OUc/mqsP3HN1wjhiLb4pxcIWMlhH5Sx8uDqngL3WbhtGWJZraIsyEZ7/kD3
27+0H6d5nl1TqQYMsvQ+zkDRBhJglhRXLFel082JVHPIIl03xeVG5tgztagGOxW5
tDm2d0sGt2mbi/hzROyMjji9ghRx5T6WOQAXWyn4R9rN1R/bq0Uau+B5wvNmCtWi
pw9qpNoiqOHV7nC4CHp9lF4cSIGlKrMk05qaJ2UPc0FV9SPpXviGHBcB/ZD79zYl
9BNAXsazZI1z5lOWPB2Pa/yKx7aviUQADFyrHUvNHtB8MKEqce8fbtEtRF3Ghg17
PkfEMXeRV5BO4FGprlbvkUjMEXpXVTcRTge80JIcRyJlFFKR+5VlfKRLRuJPA4qw
tnM4ku/dN3RdIlc7SMPF05yqBYWt/pAP4voiCD9zA8xh4cQS2mAmC19su5Qvl95p
RkQU0rYHrw8LNCLUvinmipejAHs3H3qoN78uqmDZUasTnCuGoLVnu4t19jhb4cVu
j/Io1CPfgVh3RxBS530Kuw==
=/5bl
-----END PGP SIGNATURE-----


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

* Re: BUG?: Konsole: ZLE_RPROMPT_INDENT swallows last PS1 character
  2014-11-22 19:49 BUG?: Konsole: ZLE_RPROMPT_INDENT swallows last PS1 character Павлов Николай Александрович
@ 2014-11-22 23:07 ` Bart Schaefer
  2014-11-23  3:29   ` Bart Schaefer
  0 siblings, 1 reply; 3+ messages in thread
From: Bart Schaefer @ 2014-11-22 23:07 UTC (permalink / raw)
  To: zsh-workers

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.


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

* Re: BUG?: Konsole: ZLE_RPROMPT_INDENT swallows last PS1 character
  2014-11-22 23:07 ` Bart Schaefer
@ 2014-11-23  3:29   ` Bart Schaefer
  0 siblings, 0 replies; 3+ messages in thread
From: Bart Schaefer @ 2014-11-23  3:29 UTC (permalink / raw)
  To: zsh-workers

On Nov 22,  3:07pm, Bart Schaefer wrote:
}
} it's a deliberate design decision, and if what you want is fish then you
} should use fish.

Sorry, that was unnecessarily snippy.


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

end of thread, other threads:[~2014-11-23  3:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-22 19:49 BUG?: Konsole: ZLE_RPROMPT_INDENT swallows last PS1 character Павлов Николай Александрович
2014-11-22 23:07 ` Bart Schaefer
2014-11-23  3:29   ` Bart Schaefer

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).