From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10063 invoked by alias); 5 Nov 2015 11:16:04 -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: 37065 Received: (qmail 22329 invoked from network); 5 Nov 2015 11:16:02 -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=-0.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, MISSING_HEADERS,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s2048; t=1446721744; bh=/wZu4dC1aBLd7m+bcGL8426g/EZYMX6mNrC3nJRmqx0=; h=From:cc:Subject:In-reply-to:References:Date:From:Subject; b=ORxQH208o/zSVjWagovZOs7jw8w0SCb/Y/tm4mu2yB34tIrvCakc49aePXscmMe0T/9fAHKT/sIm4XqefHZdhTSGuN3LSXqw7FVvJuNAOeg2h7HS3L32dAdv/xSXfzXJ/f1VwFAV/aivGAy7ffcapCu8/4aAF5cQBvszSMPxZyOaUlDX4nohfpkDxvNIJlhp4lTOLBEp3Mc9inFW5PGAd+2mTrgRSNOBEz9VpKmJdNzHYd98Wn2X49U90cZh8MZoyqPua2G7XyB3IS8pNR/XTEWL45ZN+wgVCWtrGwkO/330doBaCGDgyyeqwhrtXJF4RejLHKSgrrcUdHthK5XuAQ== X-Yahoo-Newman-Id: 623327.3663.bm@smtp136.mail.ir2.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: T_NoDL8VM1kT38.1kae.WT6LCNwnEhd7_2s3WDxdnf6w1Ab jZ13TUXH4n0nq1AMmyFg0f8XpPJCpHAr9WdcyAAlZxc7vud0WgFc0amInjmG 12WL18kwiyPa47c6KX8F0ikAIAkApp_k_66BDgQ9QQdZDl.PqIHwkIw3jrwt K_37KKxQ3dIhoGlO6JUGTtmGvjdsgyGMorYRS8_FzA9y1fG_YQW6t3cZDWVC HWDSllPT5JghFoR42281.3GFW9oU9MQ9w9mdwdhI_1Wqe5n.0pEwsnkfj0AO 7aMhp5_VTyKmJg81R3.9royRhy18DX7XDUwsLc7ldhwxZS0T7shztHy5T63A _jOBTKzV7o_RFPLCdd04Co5yP2KZ6WkfvROLyt2y6ZcZLGESBns0MsxYN3V5 k_gOPjX0sdUcbTq1nfL5KwEmH5QiLwiE5x4s27GcvhLnlS.KFe5_hgoMVtcK zydyV8cnZJme8BDXwHM1iMMcCYV4zDq7am2fl4O9_XkKSSMmSyhUV4Nbazgs heVq7I3u4OZk1QTJzQ.TRvm4uRROlSA-- X-Yahoo-SMTP: opAkk_CswBAce_kJ3nIPlH80cJI- From: Oliver Kiddle cc: zsh-workers@zsh.org Subject: Re: edit-command-line, vim, and pasting In-reply-to: <151103093149.ZM18895@torch.brasslantern.com> References: <151101103921.ZM16163@torch.brasslantern.com> <18028.1446462993@thecus.kiddle.eu> <151103093149.ZM18895@torch.brasslantern.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <29491.1446721743.1@thecus.kiddle.eu> Date: Thu, 05 Nov 2015 12:09:03 +0100 Message-ID: <29492.1446721743@thecus.kiddle.eu> Bart wrote: > Ideally there'd be some mechanism ala the STTY parameter / ttyctl that > resets this state every time an external command gets control of the > terminal. It needs to send both an end sequence before the external command gets control and a start sequence once that external command has finished. I don't think it'd be great to spew out the sequences every time an external command is run. That could add up to quite a few escape sequences being generated for completion - and to no real purpose. I'm not aware of any signals or other mechanisms to detect commands reading from the terminal after they've been executed and even if there was, it wouldn't actually help for many reasons. edit-command-line already does this: exec