Re: [dev] [st] question about keyboard shortcuts

2024-07-09 Thread Feodor

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] [st] question about keyboard shortcuts

2024-07-09 Thread Eric Pruitt
On Tue, Jul 09, 2024 at 04:54:38PM +0300, Feodor wrote:
> > 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.

That's not what I meant. I was referring to the fact that you didn't
post your screen configuration file until I asked for it.

> 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.

Per the screen manual documenting "escape", that's not even possible:
"Each argument is either a single character, a two-character sequence
[...]." You would have to map Ctrl+Tab to a single, standard control
character instead of a multi-character sequence.

Eric