Re: question about keyboard shortcuts
"Alan D. Salewski" <[email protected]> Wed, 26 Jun 2024 17:28:11 -0400
| Newsgroups | gmane.comp.gnu.screen.user |
|---|---|
| Message-ID | <ZnyH60pShXNDA7XA@localhost> |
On 2024-06-26 15:29:11, "Alan D. Salewski" <[email protected]> spake thus: >On 2024-06-26 22:05:14, Feodor <[email protected]> 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 [email protected] [email protected] https://github.com/salewski