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

Re: sched waits for next prompt. Does it have to?



Rob Hooft wrote:
> Isn't it possible to call the periodicals from an ALARM function?  If
> not now, then it should be relatively easy to add such functionality?
> That would enable one to make "sched" behave like "at" using a smart
> ALARM handler and "TMOUT=60".

The original purpose of TMOUT is to automatically log out an idle shell.  This
means that the alarm is only set when a new prompt is printed, and and this
alarm is cancelled after each accept-line zle command.  TRAPALRM can be used
to do things periodially while you are editing in the zle buffer but it has no
effect while you are executing an external command.

Cheers,

   Zoltan



Messages sorted by: Reverse Date, Date, Thread, Author