Zsh Mailing List Archive
Messages sorted by:
Re: How is it guaranteed that zle is active during sched call?
- X-seq: zsh-users 21866
- From: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- To: Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
- Subject: Re: How is it guaranteed that zle is active during sched call?
- Date: Sun, 11 Sep 2016 22:08:22 +0200
- Cc: Zsh Users <zsh-users@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=LHI8jztoKibbHdF6Uq0adrFY2OnfwkavDJc23xk+GlI=; b=XdCSGvB8AeBaEv5NXbmPi7eYc0nIEP7MYDgdh5VdQORBLkxzT1Dpe2lHon2iIerHYC 9++OaeNZw/x5sdpMMntiIgUgldTjcMM5U18SNtx95fTD2B2NMm3Z9q/b2TpIjTXiiX/k JwjAJRqPG6Um8aWeEHHISLRm7PR01E4ngoSnQ5kXJo8rThrioIsfLfoy0TUWN4C0SfT9 L7hVVfCTD8aLrmg5iougDX4Uw+z8tTX2wH9iRv0kEXtjOsJJAuW5CKdIgE9c7Oktptih 5C7+P8JZ0GVxwD/UKndkBAiHQ6e2gIgQii18NtrNXoBPNaFtOI0Sh5N9KNuttoTHOLPp Puxw==
- In-reply-to: <firstname.lastname@example.org>
- List-help: <mailto:email@example.com>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:firstname.lastname@example.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CAKc7PVCGT=gwWMCx+wGaZtQMsrXa_HnLneUSmz=EZ9ZSe5RjtQ@mail.gmail.com> <email@example.com>
On 11 September 2016 at 20:06, Peter Stephenson
> It's not guaranteed that zle will be active during a sched call.
> Sched is generally handled as part of the pre-prompt functions; there is
> no intended linkage between this and zle. Any interaction is not
> thought out (to my knowledge --- and sched is an old function that
> hasn't been tinkered with for a long time, I think).
That for a moment sounded scary as if sched wouldn't be considered
important. I just finished initial version of a Zconvey plugin. It
integrates multiple Zsh sessions and will serve as a base for other
plugin that will make all this semi-graphical. I use sched to pull a
flock-guarded text file, to see if there are commands to run. You said
Zle isn't thought to be working with Sched but the miraculous ioctl(
0, TIOCSTI, c ); saved me totally, everything works, I can update
command line from Sched:
Maybe Sched could be revisited a little and pulled up to work with
Zle, .kill-buffer at least?
Messages sorted by: