Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
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: <20160911190648.1f36251a@ntlworld.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CAKc7PVCGT=gwWMCx+wGaZtQMsrXa_HnLneUSmz=EZ9ZSe5RjtQ@mail.gmail.com> <20160911190648.1f36251a@ntlworld.com>
On 11 September 2016 at 20:06, Peter Stephenson
<p.w.stephenson@xxxxxxxxxxxx> wrote:
> 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:
https://asciinema.org/a/ayklrum7g4ut2hpt7mg6j0nzj
Maybe Sched could be revisited a little and pulled up to work with
Zle, .kill-buffer at least?
Best regards,
Sebastian Gniazdowski
Messages sorted by:
Reverse Date,
Date,
Thread,
Author