[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Escape + number performs actions other than switching to window by n
From: |
Amadeusz Sławiński |
Subject: |
Re: Escape + number performs actions other than switching to window by number |
Date: |
Thu, 31 May 2018 14:03:22 +0200 |
On Tue, 29 May 2018 10:11:12 -0500
Dun Peal <address@hidden> wrote:
> Hi folks,
>
> I just upgraded to Ubuntu 18.04 from 16.04, and noticing an odd
> behavior with the key combinations that used to switch windows by
> number.
>
> In 16.04, if I held Ctrl and hit the escape key, and immediate after
> it a number key (without releasing the Ctrl), I was switched to that
> window number.
>
> In 18.04, if I do the same, in some cases a different action is
> performed. For example, if I hit escape-3, it executes the `copy`
> command (i.e. activates Copy Mode). Escape-4 triggers `quit`. Escape-5
> triggers `paste .`
>
> Some switches still work fine as before, for example escape-1 and
> escape-2.
>
> Also, I still get the previous switch behavior if I release Ctrl after
> hitting the escape key and just before hitting the number key.
> However, that is slow relative to now having to release the Ctrl, and
> if I'm not careful I still get the undesirable action.
>
> Is there a way to get the same behavior as before, such that hitting
> escape + number will always switch to that window, even if I didn't
> release the Ctrl key?
>
Hey,
from what I can tell it has nothing to do with screen (ie. it behaves
as it's designed to)
For example by default:
Ctrl-a + Ctrl-\ is bound to to quit
now... if you press on terminal Ctrl-v + Ctrl-\
it shows you what combination Ctrl-\ generates:
^\
It's same combination as for Ctrl-v + Ctrl-4
And this binding seems to be in code since forever, so unless Ubuntu
does something weird or something changed in terminal behaviour, I
don't know what it can be...
I assume Ctrl-a 4 - with released Ctrl when pressing 4 works fine?
Can you tell me what terminal do you use and what does
Ctrl+a Ctrl-1
Ctrl+a Ctrl-2
Ctrl+a Ctrl-3
Ctrl+a Ctrl-4
Ctrl+a Ctrl-5
Ctrl+a Ctrl-6
Ctrl+a Ctrl-7
Ctrl+a Ctrl-8
Ctrl+a Ctrl-9
Ctrl+a Ctrl-0
generate?
(Don't forget to press Ctrl-c after each one of those combinations, so
they are not glued together)
For example on xterm I have:
$ 1
$ ^@
$ ^[
$ ^\
$ ^]
$ ^^
$ ^_
$ ^?
$ 9
$ 0
so the only ones that would work same as with released Ctrl would be
1, 9 & 0, rest would try to run bindings.
Cheers,
Amadeusz