screen-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: question about keyboard shortcuts


From: Alan D. Salewski
Subject: Re: question about keyboard shortcuts
Date: Wed, 26 Jun 2024 17:28:11 -0400
User-agent: Mutt/2.0.5 (2021-01-21)

On 2024-06-26 15:29:11, "Alan D. Salewski" <salewski@att.net> spake thus:
On 2024-06-26 22:05:14, Feodor <feodorpetrov@vivaldi.net> spake thus:
Hi.
Can anyone help me?
I want to set custom keyboard shortcuts for screen, but I don't know
which key codes to put.

I need to set "escape" combination to CTRL+TAB.
Also I need to set switching to next/previos tabs to ALT+Left/Right
arrows.

I tried:
escape ^|
escape ^Tab
escape ^[[27;5;9~
bindkey ^[[1;3D prev
bindkey ^[[1;3C next

but none of those worked.


Hi Feodor,

Your question was answered by Yeechang Lee last week:

    https://lists.gnu.org/archive/html/screen-users/2024-06/msg00005.html

My apologies, Feodor; that earlier answer spoke to the first part of
your question but not the second.

For the second part -- switching between windows (the Screen 'next'
and 'prev' commands) using CTRL+Left/Right -- the 'bindkey' STRING
values should be:

    bindkey ^[[1;5C next
    bindkey ^[[1;5D prev

You could also quote the STRING arguments, which might look nicer in
your editor:

    bindkey "^[[1;5C" next
    bindkey "^[[1;5D" prev

To determine what the value of the STRING to use, a quick 'n dirty
way in bash is to use CTRL-V prior to pressing CTRL+Left and/or
CTRL+Right to see their printed representations.

Take care,
-Al

--
a l a n   d.   s a l e w s k i
ads@salewski.email
salewski@att.net
https://github.com/salewski


reply via email to

[Prev in Thread] Current Thread [Next in Thread]