From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: zsh-users-return-23629-ml=inbox.vuxu.org@zsh.org X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.1 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id e7e15d86 for ; Fri, 14 Sep 2018 13:13:38 +0000 (UTC) Received: (qmail 4243 invoked by alias); 14 Sep 2018 13:13:24 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: List-Unsubscribe: X-Seq: 23629 Received: (qmail 2085 invoked by uid 1010); 14 Sep 2018 13:13:24 -0000 X-Qmail-Scanner-Diagnostics: from know-smtprelay-omc-3.server.virginmedia.net by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(80.0.253.67):SA:0(-1.9/5.0):. Processed in 4.665651 secs); 14 Sep 2018 13:13:24 -0000 X-Envelope-From: dave@dawoodfall.net X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | X-Originating-IP: [82.40.94.2] X-Authenticated-User: X-Spam: 0 X-Authority: v=2.3 cv=QvlwI26d c=1 sm=1 tr=0 a=EH02hVpzcg1gP5HQFHlsKw==:117 a=EH02hVpzcg1gP5HQFHlsKw==:17 a=IkcTkHD0fZMA:10 a=mV9VRH-2AAAA:8 a=6sS4_46NZ1UUb_Fm008A:9 a=QEXdDO2ut3YA:10 Date: Fri, 14 Sep 2018 14:13:15 +0100 From: David Woodfall To: Zsh Users Subject: Re: Strange problem with bindkey keys passing through to apps Message-ID: <20180914131315.GE20615@blackswan> Mail-Followup-To: Zsh Users References: <20180914113841.GA7435@blackswan> <1536929025.231006.1508067968.578CE203@webmail.messagingengine.com> <1536929114.231186.1508076776.2D392EA0@webmail.messagingengine.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1536929114.231186.1508076776.2D392EA0@webmail.messagingengine.com> User-Agent: Mutt/1.10.1+44 (f0772c95) (2018-07-17) X-CMAE-Envelope: MS4wfFMfOR0UIoogfmZG7XeCUvoKD0e2N0FDYKjpvEGyJmj6qCrRjhtZoQOXfA6UKKXha9vQUJaiLjba3s3mO9qeEBZALX7LKqdymhB+h5O0TxdsmxCDIYte uRuHlBUg06hVo3oVMPRacQBZKFAwFsVhH/8= On Friday 14 September 2018 12:45, Daniel Shahaf put forth the proposition: > Re-sending from another address since your MTA bounced when I sent it > the first time. Please add zsh-users@ on reply if appropriate. I managed to completely mess up my DNS. Seems OK now (hopefully). > Daniel Shahaf wrote on Fri, 14 Sep 2018 12:43 +0000: > > David Woodfall wrote on Fri, 14 Sep 2018 12:38 +0100: > > > The binds work fine except when I try to use them while running an > > > app - e.g. weechat, mutt - they fail and e.g. mutt will see it as the > > > bind to save the mail. > > > > > > It seems that zsh isn't grabbing the keys for some reason and they > > > are falling through to the apps. > > > > > > Any ideas why these are passing through to apps and not grabbed by the shell? > > > > That's how terminals work: input is sent only to the foreground process. > > This is true not just for chorded keystrokes but for unchorded ones as > > well: it's why when you open zsh from mutt (in this order) you can type > > the command "mv" without composing a letter to somebody named "v". I guess I was expecting something like in urxvt, when it grabs keys and stops them reaching any applications. Screen does that too, even in a plain console it grabs ctrl-a away from applications. It's strange that it happens even when the applications don't have binds for those keys though. I've now set one up in weechat for it, but it will be annoying to have to do that for everything, that's if they even do allow custom keybinds. -- +#if defined(__alpha__) && defined(CONFIG_PCI) + /* + * The meaning of life, the universe, and everything. Plus + * this makes the year come out right. + */ + year -= 42; +#endif -- From the patch for 1.3.2: (kernel/time.c), submitted by Marcus Meissner .--. oo (____)// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~'