On Thu, Jun 27, 2024, at 6:46 AM, Feodor wrote: > Is it possible to intercept CTRL+TAB and send another character? > > I need to make CTRL+TAB keyboard combination for GNU screen "escape" > command, but TAB is CTRL-I in VT100 mode which most terminals use, so > there is no > way to modify that further with CTRL. So I need to make st intercept > CTRL+TAB as another character. > Is this possible? Maybe with some patch?
Ctrl+Tab can be represented by: ^[[27;5;9~ Look at this line is st's config.def.h as a template: { XK_ISO_Left_Tab, ShiftMask, "\033[Z", 0, 0}, Therefore add something like: { XK_ISO_Left_Tab, ControlMask, "\033[27;5;9~, 0, 0}, AND/OR { XK_Tab, ControlMask, "\033[27;5;9~, 0, 0}, I do not know the difference between XK_ISO_Left_Tab and XK_Tab. Note that I have not actually tried this and I am no expert on the topic. You might want to update the terminfo database too? I found the information at https://invisible-island.net/xterm/ctlseqs/ctlseqs.html#h3-Alt-and-Meta-Keys.