From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10113 invoked by alias); 11 Aug 2015 13:15:12 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 36099 Received: (qmail 23351 invoked from network); 11 Aug 2015 13:15:11 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H2 autolearn=ham autolearn_force=no version=3.4.0 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 :content-type; bh=TrrSmNimbagCDbYqT1MI+eo/Ky2VgQkDl3IFtWf+Opw=; b=A6CML99e+guOAt3+6dt5/59N5pVmmyySEJOMwLETO8RqQhLFU0lvGsC5u50eelACHl 8EsiQK/TVOxE6ZatLN0E4VGdKpReys0pNz6D7ddjpfxjmy7te+O6lNKkN95+uj1vB4NG ogrz4yZ4CWTMEU2AxOplVfotiph7PR46AnQwOtX/LgsiTAul3CAjo0HjD/Ifw0WWSvGq Kj/iW3zdvMsMb0XrMnad9YHyaQDK9VsGAWgxzbGH3BJdk7n1KMxtiFrI3/PdDBlLpfY0 bUJ2JTekFkYekIsSmxoOhUbS3FIgcQuwyaLPm/Z4AkLkpmSQUASbp0uxIUkTHDHQEU4S E2Qg== X-Received: by 10.202.204.66 with SMTP id c63mr3054870oig.12.1439298910327; Tue, 11 Aug 2015 06:15:10 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <150810210634.ZM26862@torch.brasslantern.com> References: <150803085228.ZM24837@torch.brasslantern.com> <150803135818.ZM24977@torch.brasslantern.com> <150804235400.ZM9958@torch.brasslantern.com> <150805085258.ZM17673@torch.brasslantern.com> <150805115249.ZM7158@torch.brasslantern.com> <150805132014.ZM7746@torch.brasslantern.com> <150805220656.ZM18545@torch.brasslantern.com> <150806085451.ZM402@torch.brasslantern.com> <150806223906.ZM17762@torch.brasslantern.com> <150810123445.ZM1612@torch.brasslantern.com> <150810210634.ZM26862@torch.brasslantern.com> From: Mathias Fredriksson Date: Tue, 11 Aug 2015 16:14:30 +0300 Message-ID: Subject: Re: Running commands in a zpty worker To: zsh-workers@zsh.org Content-Type: text/plain; charset=UTF-8 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?