Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: draw prompt on the correct line after window change
- X-seq: zsh-workers 44534
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Roman Perepelitsa <roman.perepelitsa@xxxxxxxxx>
- Subject: Re: PATCH: draw prompt on the correct line after window change
- Date: Mon, 15 Jul 2019 14:24:43 -0700
- Cc: Zsh hackers list <zsh-workers@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=iiGQ4Z1W1jGbYU6fepvkY5JIVicBBZ2EXlTE3RbGktM=; b=D/XDC6Yfs0HfR01hsqg/Hiw4NVCPf6wtDkqszHSPbO/kDFMnuUbrSnmvCZ8e7MGnR2 31ECcUj4ci+OtQKtIU/30cTnx6EJSiSRZY9prGFC7h04V17drLstFklV5JvQx4DASyO0 Ywj81Hhvawjgx5wZPIXFhp9pZooJCqn0UwlWlaTfhFNWbptJynqzCETL9omaUv5v/Rj3 GDn/GcRT1DeZkFtavXX/xzQzz81eRg6BwbSM23CgC89M0EXIqMSDR3Ymtqofdxfj9Te7 hNArEzdFfVBnmEtSCr6TIsUmaD1f2sx2EjHaMB2gsCpW1S3sqciMFsOXTVGAERU7yiVB cRmA==
- In-reply-to: <CAN=4vMp+E7esA48bEtRs-+Rmm9ng7i+FayGVqcLZqyjwVkayAw@mail.gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <CAN=4vMp+E7esA48bEtRs-+Rmm9ng7i+FayGVqcLZqyjwVkayAw@mail.gmail.com>
On Mon, Jul 15, 2019 at 10:21 AM Roman Perepelitsa
<roman.perepelitsa@xxxxxxxxx> wrote:
>
> I've tested this code only on GNOME Terminal. Before I go testing on a
> dozen different terminals I'd like to get some feedback. Anything I'm
> missing? Anything tricky to look out for?
The most significant problem with window resizing is not the terminal
itself, but window/session managers that try to do "live update" of
the window contents as the cursor is rapidly dragged around. These
tend to send a stream of WINCH signals which we have had to do various
tricks to manage. I would be concerned that attempting to write a
control sequence to the terminal and read back the response in the
midst of a flood of such signals would fail as often as it succeeds.
If this is already limited/controlled by the mechanisms in place,
great.
> The patch is attached to the email. You can also see it in
> https://github.com/zsh-users/zsh/compare/master...romkatv:fix-winchanged.
Thanks for the link, it's the only way I was able to see this on a
mobile device. Please inline patches, or attach them as text/plain
(not text/x-something), without base64 encoding if possible.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author