screen / screenrc: how to use the right / ctrl arrow to go left and right in windows?
Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
screen / screenrc: how to use the right / ctrl arrow to go left and right in windows?
IT s impossible to use :
shift + right arrow for next
shift + left arrow for prev
that s my goal
Code:
cat >/dev/null
^[[D^[[D^[[F^[[F^[[5~^[[5~^[[6~^[[6~^[[5~^[[5~^[[1;2C^[[1;2C^[[1;2C^[[1;2C^[[1;2C^[[1;2C^[[1;2C^[[1;2C^[[1;2C^[[1;2D^[[1;2D^[[1;2C^[[1;2C
^[[1;2C
this is my shift right and left
^[[1;2D
^[[1;2C^[[1;2D^[[1;2D^[[1;2D^[[1;2C^[[1;2C^[[1;2C
^[[1;2C^[[1;2C^[[1;2D^[[1;2D^[[1;2C^[[1;2C^[^[^[[1;5D
this is my ctrl right and left
^[[1;5D^[[1;5C^[[1;5C^[[1;5D^[[1;5D^[[1;5C^[[1;5C^[[1;5D^[[1;5C^[[1;5C^[[1;5C^[[1;5C^[[1;5D^[[1;5D^[[1;5D^[[1;5D^[[1;5C^[[1;5C
^[[1;2C^[[1;2C^[[1;2D^[[1;2C^[[1;5C^[[1;5C^[[1;5D^[[1;5D^[[1;5C
my .screenrc looks like this, but not working. only f1 and f2 work.
it works with xterm
so i put below an example with all possible configurations for helping.
Code:
$ cat .screenrc
hardstatus alwayslastline "%c %w"
bindkey -k k2 next
bindkey -k k1 prev
# for shift UP and DOWN arrows
bindkey ^[[1;5A prev
bindkey ^[[1;5B next
# for ctrl right and left arrows
bindkey ^[[1;5D prev
bindkey ^[[1;5C next
# for shift right and left arrows
bindkey ^[[1;2D prev
bindkey ^[[1;2C next
Thanks for your thread frenchn00b, it helped me a lot.
For the people who use *gnome-terminal* like me and want to use
Alt-Left and
Alt-Right
to switch between screen windows, because they have Ctrl-Left/Right assined for switching between gnome-terminal tabs,
use the following in your .screenrc
bindkey ^[O3D prev
bindkey ^[O3C next
Hint: To figure out what strings your key combination gives use the cat-devnull-command mentioned by frenchn00b inside screen and not just inside your terminal. This is not always the same.
Thanks for your thread frenchn00b, it helped me a lot.
For the people who use *gnome-terminal* like me and want to use
Alt-Left and
Alt-Right
to switch between screen windows, because they have Ctrl-Left/Right assined for switching between gnome-terminal tabs,
use the following in your .screenrc
bindkey ^[O3D prev
bindkey ^[O3C next
Hint: To figure out what strings your key combination gives use the cat-devnull-command mentioned by frenchn00b inside screen and not just inside your terminal. This is not always the same.
sandoz
I would like to reproduce the konsole:
ctrl shift N creates a new shell window.
are you interested?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.