zsh-workers
 help / color / mirror / code / Atom feed
From: Borsenkow Andrej <Andrej.Borsenkow@mow.siemens.ru>
To: Zsh hackers list <zsh-workers@sunsite.dk>
Subject: Re: PATCH: more selection
Date: Tue, 14 May 2002 13:48:40 +0400 (MSD)	[thread overview]
Message-ID: <Pine.SV4.4.44.0205141343240.14721-100000@itsrm2.mow.siemens.ru> (raw)
In-Reply-To: <21560.1021303981@csr.com>

On Mon, 13 May 2002, Peter Stephenson wrote:

> This patch is more advanced warning of future pain than anything else,
> in case anyone wants to scream at the very idea.
>
> The following patch adds an fd-watching facility to zle.  You tell zle
> (via zle -F) to select on an fd and give it a function handler.  When data
> is available for reading on that handle (only reading, at the moment),
> the handler will be called, and zle will sail on without returning.
> This allows you to handle input from other sources while the shell is
> inactive waiting for terminal input.  It's all handled synchronously
> within zle, so it should be free of the hazards of asynchronous input.
>

Is it posible to extend it to set timeouts while waiting for input? This
could be used to update prompts as example (often asked question - how to
get time in prompt).

My only concern is that if there is any chance handler will block you can
just as well kill your shell - there is no way to give shell input
anymore.

-andrej


  reply	other threads:[~2002-05-14  9:48 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-13 15:33 Peter Stephenson
2002-05-14  9:48 ` Borsenkow Andrej [this message]
2002-05-14 10:04   ` Peter Stephenson
2002-05-14 11:37 ` Peter Stephenson
2002-05-21 11:21 ` Peter Stephenson
2002-05-21 12:48   ` Oliver Kiddle
2002-05-21 13:11     ` Peter Stephenson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.SV4.4.44.0205141343240.14721-100000@itsrm2.mow.siemens.ru \
    --to=andrej.borsenkow@mow.siemens.ru \
    --cc=zsh-workers@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).