Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: query terminal properties on ZLE startup
- X-seq: zsh-workers 53401
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Oliver Kiddle <opk@xxxxxxx>
- Cc: Roman Perepelitsa <roman.perepelitsa@xxxxxxxxx>, zsh-workers@xxxxxxx
- Subject: Re: PATCH: query terminal properties on ZLE startup
- Date: Mon, 3 Mar 2025 13:52:19 -0800
- Archived-at: <https://zsh.org/workers/53401>
- In-reply-to: <34349-1741036030.024371@cbbt.z2rh.FRwQ>
- List-id: <zsh-workers.zsh.org>
- References: <42572-1740099942.836692@_3BM.v5Iz.JqiS> <F07C8421-2663-440A-82AD-0748D39511B1@kba.biglobe.ne.jp> <CAH+w=7a9hye-2BxQUjkHw-=zFo5T7vXjVwQRnKnKEoZ3W0-_ug@mail.gmail.com> <40483-1740433325.086036@2QZo.3hhS.-9FG> <CAH+w=7Zf3vL6BYg0t61uskLmDD_gOwE7XhuwxB9SSwv+z0qOKw@mail.gmail.com> <69272-1740474756.308875@TCCj.PrGv.2vsI> <CAH+w=7ZJNRy2zV7t4wRhzcnW1jn2LgRKbMByCOrtbr9VVM2emw@mail.gmail.com> <5355-1740527169.384113@fufd.0HLy.otw9> <CAN=4vMpHQyTmXBScGZDn+OTc=cDWKSt7vJ_2+hmTe1zViQyU8w@mail.gmail.com> <73847-1740613975.581764@cI3H.WJge.amo7> <CAN=4vMrvw_sz65Q5hnCi+e0FLzpMhcY7LCxkMBVNXTc9F4hBGg@mail.gmail.com> <34349-1741036030.024371@cbbt.z2rh.FRwQ>
On Mon, Mar 3, 2025 at 1:07 PM Oliver Kiddle <opk@xxxxxxx> wrote:
>
> If someone comes up with a good name for a query timeout variable I can
> write a patch for that (0 can be used for infinite). Should it be in the
> .zle namespace?
querywait?
I guess I'd put it in the .term namespace to make explicit connection
to the query-* values in .term.extensions?
> > Another issue to watch for is buffered input that is sent to the TTY
>
> I mentioned this in the original post. Quoting myself from there:
>
> | I guess we could
> | try ungetc(). Type-ahead does get run through the sequence parser.
I don't think ungetc() would help -- it just puts things back in the
stdio buffer space, which will get discarded when the "exit" happens.
But didn't we change zsh I/O to intentionally stop reading at newlines
to prevent this sort of thing?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author