Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PATCH: query terminal properties on ZLE startup



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