From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: zsh-users-return-23633-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 0219549b for ; Fri, 14 Sep 2018 16:21:23 +0000 (UTC) Received: (qmail 5686 invoked by alias); 14 Sep 2018 16:21:06 -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: 23633 Received: (qmail 20231 invoked by uid 1010); 14 Sep 2018 16:21:06 -0000 X-Qmail-Scanner-Diagnostics: from 4.smtp.34sp.com 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(46.183.8.210):SA:0(-1.9/5.0):. Processed in 2.239792 secs); 14 Sep 2018 16:21:06 -0000 X-Envelope-From: dave@dawoodfall.net X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Date: Fri, 14 Sep 2018 17:12:56 +0100 From: David Woodfall To: Zsh Users Subject: Re: Fwd: Re: Strange problem with bindkey keys passing through to apps Message-ID: <20180914161256.GM20615@blackswan> Mail-Followup-To: Zsh Users References: <1536939142.276518.1508265328.7660773B@webmail.messagingengine.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1536939142.276518.1508265328.7660773B@webmail.messagingengine.com> User-Agent: Mutt/1.10.1+44 (f0772c95) (2018-07-17) X-Authenticated-As: dave@unrealize.co.uk X-OriginalSMTPIP: 82.40.94.2 X-34spcom-MailScanner-Information: Please contact the ISP for more information X-34spcom-MailScanner-ID: 0BD03AC0009.A80FB X-34spcom-MailScanner: Found to be clean X-34spcom-MailScanner-SpamCheck: not spam, SpamAssassin (score=0, required 6.5, autolearn=disabled) X-34spcom-MailScanner-From: dave@dawoodfall.net On Friday 14 September 2018 15:32, Daniel Shahaf put forth the proposition: > Resending again.. Thanks. I've reverted back to the opendns servers until I can resolve this issue. It seems that any ipv6 lookups are coming back as a non-existent domain. > Daniel Shahaf wrote on Fri, 14 Sep 2018 14:54 +0000: > > David Woodfall wrote on Fri, 14 Sep 2018 14:23 +0100: > > > 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. > > > > In screen the binding would be Ctrl-A Alt-s, not bare Alt-s. > > > > Daniel It's possible to add binds that work without needing to press ctrl-a though. If you enter the screen prompt with 'Ctrl-a :' and then enter the command bindkey with an option it will show a few types of keys bindings. With -a or no option it will show user keys. It's possible to set other key combos for 'command' (that is usually Ctrl-a.) e.g. I added Alt-a too because I find that easier on my current keyboard, although I left the default Ctrl-a in for safety: bindkey ^[a command The ones labelled [A] with the -d flag are application level that also don't need ctrl-a first. But care must be taken with those. The ones labelled :: are arrow keys and such and are read from the terminfo or termcap. I've tested Alt-s: bindkey ^[s exec printf "\eP\e[15]\e\\" and it seems to work in mutt within screen at least. I haven't tried anything else yet. -- If money can't buy happiness, I guess you'll just have to rent it. .--. oo (____)// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~'