[dev] [st] question about keyboard shortcuts
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?
Re: [dev] [st] question about keyboard shortcuts
Eric Pruitt писал(а) 2024.06.28 00:12: On Thu, Jun 27, 2024 at 12:39:07PM -0400, Greg Reagle wrote: 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 can confirm that will work. It's what I use in my st configuration: https://github.com/ericpruitt/emus/blob/3a5b62e2f1674f2ee1e5c39b758fe23f6e529301/desktop-environment/st-config.h#L247 Eric Thanks for your reply, Eric. I added { XK_Tab, ControlMask,"\033[27;5;9~", 0,0}, to "static Key key[] = {" section, and prescribed escape ^[[27;5;9~ in my ~/.screenrc, but the combination CTRL+Tab doesn't work for "escape" command for screen. Instead I get ";5;9~" printed after the prompt when I press CTRL+Tab.
Re: [dev] [st] question about keyboard shortcuts
2024.06.27 14:51 Steve Ward wrote: On Thu, Jun 27, 2024 at 6:47 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? I've used xcape and sxhkd with some success in mapping modifier keys, however in a different situation from yours. https://github.com/alols/xcape https://github.com/baskerville/sxhkd Eric, do you confirm that I have to use sxhkd and xcape?
Re: [dev] [st] question about keyboard shortcuts
2024.07.06 19:51 Eric Pruitt wrote: > I've used xcape and sxhkd with some success in mapping modifier keys, > however in a different situation from yours. > > https://github.com/alols/xcape > https://github.com/baskerville/sxhkd Eric, do you confirm that I have to use sxhkd and xcape? I don't use either of those. The only other accompanying configuration snippets are in tmux which natively supports those escape sequences for Ctrl+(Shift)+Tab: <https://github.com/ericpruitt/emus/blob/3a5b62e2f1674f2ee1e5c39b758fe23f6e529301/configuration/tmux.conf#L52-L57>. On Fri, Jun 28, 2024 at 11:03:45AM +0300, Feodor wrote: but the combination CTRL+Tab doesn't work for "escape" command for screen. Instead I get ";5;9~" printed after the prompt when I press CTRL+Tab. Can you post the actual configuration you're using? I haven't used GNU Screen as my daily-driver in some time and no longer have to my original configuration files, but when I had Ctrl+(Shift)+Tab setup in Screen, I think I used "bind" and/or "bindkey" i.e. <https://unix.stackexchange.com/a/478013>. Eric The only other accompanying configuration snippets are in tmux which natively supports those escape sequences for Ctrl+(Shift)+Tab I think, screen does not support those sequences by default. I wrote to screen's mailing lists: I need to set "escape" combination to CTRL+TAB. You can't. TAB is CTRL-I in VT100 mode which most terminals use, so there is no way to modify that further with CTRL. As you said, I tried to edit ~/.Xresources: *vt100.translations: #override \n\ Ctrl ~Shift Tab: string(0x1b) string("[27;5;9~") also tried: *vt100.translations: #override \n\ Ctrl Tab: string(0x1b) string("[27;5;9~") but still I get ";5;9~" printed after the prompt when I press CTRL+Tab. My ~/.screenrc is: startup_message off term 'screen-256color' encoding UTF-8 termcapinfo st* ti@:te@ shell -/bin/bash msgminwait 0 msgwait 0 caption always '%{= kW}%-w%{= Ck}%50>%n %t%{-}%+w%<%{d} %=%{B}%0c%{d}' escape ^[[27;5;9~ bindkey ^[[1;3D prev bindkey ^[[1;3C next think I used "bind" and/or "bindkey" for "escape" line: escape is needed. escape ^Bb -- works for CTRL+b.
Re: [dev] [st] question about keyboard shortcuts
2024.07.07 20:15 Eric Pruitt wrote: This configuration snippet doesn't make sense to me. You don't need the "escape" line and your bindkey configuration doesn't even use the right sequences. All you should need are bindkey lines: bindkey "^[[27;5;9~" next bindkey "^[[27;6;9~" prev I tested this on a new screen installation without issue. I dont need 'bindkey "^[[27;5;9~" next' and 'bindkey "^[[27;6;9~" prev'. I need ALT+Left/Right to switch between tabs, which I've already configured with bindkey ^[[1;3D prev bindkey ^[[1;3C next and it works as I need. What I didn't yet configured is "escape" keyboard combination in screen. I need to make CTRL+Tab to be escape combination in screen. So that should be escape ^something 'escape ^Bb' makes it to be CTRL+b as escape combination, and it works. But I need to make it CTRL+Tab. Tangentially, if you're asking for help configuring something, sharing the configuration you have that doesn't work is the bare minimum you should do. That information isn't something people trying to help you should have to fish for. I use st and screen in my CRUX distro.
Re: [dev] Seeking Recommendations for a UNIX-like Operating System
marcel.wirk...@keemail.me писал(а) 2024.07.28 00:29: Dear Members of the suckless.org Dev Mailing List, My name is Marcel, and I am looking for a new operating system. Since 2023, I have been using Gentoo Linux as my daily driver. However, after a thorough examination of the Linux kernel and recent decisions made by the Gentoo Linux council, I am contemplating switching to a different operating system. I am particularly interested in finding the most UNIX-like operating system available in 2024, which does not necessarily have to be Linux-based. One option I have considered is plan9, but I am concerned about its safety for modern web use, as I frequently connect to the internet for research purposes. My primary requirements for an operating system are as follows: - Safe connectivity to the web - Ability to open a text editor (such as vim or vi) - (If possible) Support for Wayland (I am not a fan of X) Additionally, I am curious about the operating systems that you all use and the reasons behind your choices. I appreciate your time and look forward to your recommendations. -- Marcel I can recomend you CRUX. It is a source-based GNU/Linux distro. It has BSD-style init scripts and ports system. There is a wayland port, but I didn't try it. I used Gentoo for several years before, and now I switched to CRUX. I like it very much. It's KISS and very convenient. It is very comfortable to rule ports and make and edit own. -- Feodor