Re: Making `escape Ctrl-n` switch to window n

David Woodfall <[email protected]>
Newsgroups gmane.comp.gnu.screen.user
Message-ID <20180613203248.GE18580@blackswan>
On Wednesday 13 June 2018 14:21,
Dun Peal <[email protected]> put forth the proposition:
> The problem is that my terminal maps Ctrl-n, for certain values of n,
> to various escape sequences.
>
> For example,Ctrl-3 generates ^[ (escape), so it enters Copy Mode
> instead of switching to window 3.
>
> Ctrl-4 genertes \^ (FS, which is interpreted as SIGQUIT).
>
> Etc.
>
> Is there a way to "unmap" combinations like Ctrl-3, so they'll be
> interpreted the same as just pressing 3, and not as their current
> special escape meaning?
>
> Thanks, D.

You can unbind keys by giving an empty bind or bindkey command.

bind ^3

for example, may do it.

The :bindkey command lists various lists of binds depending on the
flag you pass it.

eg :bindkey -d lists the default map.

See bindkey in the man page.

-Dave

--

...Deep Hack Mode -- that mysterious and frightening state of
consciousness where Mortal Users fear to tread.
  -- Matt Welsh

                                                            .--.  oo
                                                           (____)//
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~'
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.