zsh-users
 help / color / mirror / code / Atom feed
From: David Woodfall <dave@dawoodfall.net>
To: Zsh Users <zsh-users@zsh.org>
Subject: Re: Fwd: Re: Strange problem with bindkey keys passing through to apps
Date: Fri, 14 Sep 2018 17:12:56 +0100	[thread overview]
Message-ID: <20180914161256.GM20615@blackswan> (raw)
In-Reply-To: <1536939142.276518.1508265328.7660773B@webmail.messagingengine.com>

On Friday 14 September 2018 15:32,
Daniel Shahaf <danielsh@apache.org> 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
                                                           (____)//
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~'

           reply	other threads:[~2018-09-14 16:21 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <1536939142.276518.1508265328.7660773B@webmail.messagingengine.com>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180914161256.GM20615@blackswan \
    --to=dave@dawoodfall.net \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).