zsh-workers
 help / color / mirror / code / Atom feed
* Resize bug in 5.2 ?
@ 2017-09-14  7:49 ` Jonas Minnberg
  2017-09-15 13:05   ` Peter Stephenson
  0 siblings, 1 reply; 2+ messages in thread
From: Jonas Minnberg @ 2017-09-14  7:49 UTC (permalink / raw)
  To: zsh-workers

[-- Attachment #1: Type: text/plain, Size: 541 bytes --]

I had an issue where resizing zsh would sometimes cause garbage characters
to be sent, at least if there was an "active" prompt set up (showed up
mostly with Powerline).

I later noticed that the bug seems to have been fixed for 5.3, it's just
unfortunate that 5.2 is still the default version installed on OSX.

I just wonder if someone could confirm that there was such a bug? And if
there is a workaround for terminal emulator implementations?

Some more detail here: https://github.com/powerline/powerline/issues/1831

-- Jonas Minnberg

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

* Re: Resize bug in 5.2 ?
  2017-09-14  7:49 ` Resize bug in 5.2 ? Jonas Minnberg
@ 2017-09-15 13:05   ` Peter Stephenson
  0 siblings, 0 replies; 2+ messages in thread
From: Peter Stephenson @ 2017-09-15 13:05 UTC (permalink / raw)
  To: Jonas Minnberg, zsh-workers

On Thu, 14 Sep 2017 07:49:56 +0000
Jonas Minnberg <sasq64@gmail.com> wrote:
> I had an issue where resizing zsh would sometimes cause garbage characters
> to be sent, at least if there was an "active" prompt set up (showed up
> mostly with Powerline).
> 
> I later noticed that the bug seems to have been fixed for 5.3, it's just
> unfortunate that 5.2 is still the default version installed on OSX.
> 
> I just wonder if someone could confirm that there was such a bug? And if
> there is a workaround for terminal emulator implementations?

If it's this bug:

http://www.zsh.org/mla/workers/2016/msg00711.html

(officially mailing list entry number 38190) then it was fixed by this.

2016-03-20  Barton E. Schaefer  <schaefer@zsh.org>

	* 38191: Src/Zle/zle_main.c: in reexpandprompt(), do not free global
	pointers until after promptexpand() in case they are referenced from
	signal handlers, and do additional re-entrancy checks in case of
	window size changes during promptexpand().

which is git commit 21202e7b95.

If so, you can probably work around it by simplfying the prompt
appropriately or not using signal handlers.

That's the nearest I could see.

pws


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

end of thread, other threads:[~2017-09-15 13:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <CGME20170914075052epcas2p26843153ea0b1d1198259864e830f38ac@epcas2p2.samsung.com>
2017-09-14  7:49 ` Resize bug in 5.2 ? Jonas Minnberg
2017-09-15 13:05   ` Peter Stephenson

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