From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: zsh-users-return-23632-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 1b2be0b1 for ; Fri, 14 Sep 2018 13:23:39 +0000 (UTC) Received: (qmail 12225 invoked by alias); 14 Sep 2018 13:23:26 -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: 23632 Received: (qmail 7075 invoked by uid 1010); 14 Sep 2018 13:23:26 -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 0.82061 secs); 14 Sep 2018 13:23:26 -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=A9t1HtpB00QUfSr6rr4A:9 a=QEXdDO2ut3YA:10 Date: Fri, 14 Sep 2018 14:23:21 +0100 From: David Woodfall To: Zsh Users Subject: Re: Strange problem with bindkey keys passing through to apps Message-ID: <20180914132321.GG20615@blackswan> Mail-Followup-To: Zsh Users References: <20180914113841.GA7435@blackswan> <1536929025.231006.1508067968.578CE203@webmail.messagingengine.com> <1536929114.231186.1508076776.2D392EA0@webmail.messagingengine.com> <20180914131315.GE20615@blackswan> <1536931228.240676.1508108056.79A20999@webmail.messagingengine.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1536931228.240676.1508108056.79A20999@webmail.messagingengine.com> User-Agent: Mutt/1.10.1+44 (f0772c95) (2018-07-17) X-CMAE-Envelope: MS4wfBzHQ55u4GCP4tBCCNbdvVv1XiGZOHPndnwwStdFvs4/lLjjYzP+svxk0HJdQCh8/f7xhEkmrNk1wQNPbAcuNWRWKzIM2/3kN1HLnK7++AioGWPFY5Lp ov7EJ+KAR1qdPan7yE54WvAh79TnXzxGi3M= On Friday 14 September 2018 13:20, Daniel Shahaf put forth the proposition: > David Woodfall wrote on Fri, 14 Sep 2018 14:13 +0100: > > 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. > > > > urxvt and screen are exactly the same thing, as far as zsh is concerned: > they are an app that runs *outside* zsh and creates a pseudo-terminal > for zsh to use. That's why they're able to intercept keys before they get > to zsh. > > > 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. > > It'll probably be easier to just always use screen when logging in to a > console, and to configure that bind in screen. (There's a way to > configure screen as one's login shell, even.) > > Or you might look into configuring a keybind at the console level. > > Cheers, > > Daniel Thanks for the help. I did do try in screen but found that e.g. vim and weechat still see it. I think I need to look into application level keys for it, rather than a normal bind. -- Linux is addictive, I'm hooked! -- MaDsen Wikholm's .sig .--. oo (____)// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~'