Sunday, May 5, 2024
11
rated 0 times [  11] [ 0]  / answers: 1 / hits: 4671  / 2 Years ago, mon, october 10, 2022, 10:55:16

On my Ubuntu 11.10 machines running byobu 4.37 I can use the key combination Ctrl+ / Ctrl+ to jump a word at a time in the terminal. However, on my Ubuntu 12.04 machines with byobu 5.17 this no longer works.



I've read that byobu has remapped those key combinations to resize splits, and now Alt+ and Alt+ have the desired effect. However, I'm unable to find where Alt+ and Alt+ are mapped, in order to remap Ctrl+ and Ctrl+. If I unmap the key bindings for Ctrl+ and Ctrl+, then the cursor moves only 1 character at a time, not 1 word at a time.


More From » shortcut-keys

 Answers
2

One solution was to switch the backend to screen. However, I had recurring issues with ctrl-right when I did that. To do that change ~/.byobu/backend to BYOBU_BACKEND=screen.



I subsequently found a much better solution using tmux from this bug. Create ~/.byobu/.tmux.conf with this value:



set-window-option -g xterm-keys on


Then ~/.byobu/keybindings.tmux with:



unbind-key -n C-Left
unbind-key -n C-Right


Now ctrl-left and ctrl-right jump one word at a time in tmux.


[#37970] Wednesday, October 12, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
avilyexplor

Total Points: 20
Total Questions: 102
Total Answers: 120

Location: Maldives
Member since Mon, Jun 21, 2021
3 Years ago
;