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

Re: Running commands in a zpty worker



On Tue, Aug 11, 2015 at 7:06 AM, Bart Schaefer wrote:
>
> Incidentally you might try using ZLE handler functions for this instead
> of signals.  You'd need a FIFO for the zpty command to write to and the
> ZLE handler to listen on.

Oh, that is really cool! Thanks for the patch, it works great.

> Just be careful to remove the handler before the slave side of the pty
> is closed (e.g., worker exits) or you may end up with a runaway handler.

Any tips on how I should go about doing this, can it be done with zle -D?



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