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

Dun Peal <[email protected]>
Newsgroups gmane.comp.gnu.screen.user
Message-ID <CAD03jn5LZxujE-DXGswKdRZWOB5z_f_dzDHBUSieVTDvdg0UEg@mail.gmail.com>
David, you seem to be referring to the GNU Screen `bind` and `bindkey`
commands, which I don't think can help in this case, seeing how this
binding is not done by GNU Screen.

I suspect Brian may be right, and this behavior is controlled by my
terminal, which is xfce4-terminal version 0.8.7.3

It seems that other terminal emulators, including xterm and urxvt,
have the same or similar sets of default bindings, e.g. Ctrl-3 to ^[
and Ctrl-4 to \^

On Wed, Jun 13, 2018 at 3:32 PM, David Woodfall <[email protected]> wrote:
> 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
>                                                            (____)//
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~'
>
> _______________________________________________
> screen-users mailing list
> screen-users-mXXj517/[email protected]
> https://lists.gnu.org/mailman/listinfo/screen-users
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.