Quantcast
Channel: CodeSection,代码区,Linux操作系统:Ubuntu_Centos_Debian - CodeSec
Viewing all articles
Browse latest Browse all 11063

How-to Passthrough Shift Keys Through Byobu

$
0
0

I recently discovered Byobu (which is basically jazzed-up Tmux) and found that it doesn’t pass the Shift key modifiers to my text editor. The available Tmux/Emacs solutions in Google didn’t really work. Here’s what worked for me.

1. First you need a terminal that supports the Shift keys in the first place. I recommend Terminator . Some Android-based terminals do not support shift-selection, but JuiceSSH (most popular in Google Play) works, though I haven’t extensively tested it yet.

To test this on the remote server, you might want something like the showkey command.

2. Edit ~/.byobu/.tmux.conf on the remote server and the file should be empty. Add these lines:

setw -g xterm-keys on setw -g default-terminal "xterm-256color"

3. Logout and restart Byobu.

4. Test it: echo $TERM

It should say “xterm-256color”

5. Great! Start your text editor that supports Shift-selections, such as Jupp or Micro , and (temporarily) disable Byobu keybindings with Shift-F12 while you’re editing your document. Shift-selection keys should now work!

Thanks for your support.

BTC -

DASH -

ETH -

1Prh5VnUJRQV3sARhEfQAMKv9UzGqgAMXg

XgcB56Zz4pYvrATG2SZJzqnhNxD8mDQMfd

0x467a73878a7b57899cb1dd070a4eb40fdc00d38b


Viewing all articles
Browse latest Browse all 11063

Trending Articles