Micro: select Text doesn't work in Linux console

Created on 28 May 2016  路  6Comments  路  Source: zyedidia/micro

select Text (Ctrl-Shift) works pretty well in xterm(inals), however doesn't work in a Linux console (Ctrl-Alt-F[1-9]).

bug

All 6 comments

Not sure if this is the same issue, but I have this problem under tmux but not otherwise. Some possible explanations below (but adding "set -g xterm-keys on" to .tmux.conf did not work for me).

http://unix.stackexchange.com/questions/260183/tmux-doesnt-passes-correctly-ctrl-shift-arrow-sequences

http://superuser.com/questions/401926/how-to-get-shiftarrows-and-ctrlarrows-working-in-vim-in-tmux

What finally worked for me was adding the following to .tmux.conf:

set-window-option -g xterm-keys on

and invoking micro using:

TERM=xterm-256color micro

See also #20

So is this a problem with using tmux and micro together? Also it seems like tmux also breaks these kind of keybindings in vim and emacs.

This might be unfixable, if it's just a problem with tmux. I'm not really sure if a "Linux Console" is something different than a standard Ubuntu terminal.

there is no tmux installed on my system, and select Text (Ctrl-Shift) doesn't work in a Linux console (Ctrl-Alt-F[1-9]) either.

I believe that ctrl/shift + arrows does not work out of the box on most terminal applications running inside tmux. There are instructions for getting this working in vim and emacs, e.g.:

http://superuser.com/questions/401926/how-to-get-shiftarrows-and-ctrlarrows-working-in-vim-in-tmux

The solution for micro (once I figured out what to do), is no more complex than what people are having to do in vim/emacs. So I'm not sure if this is even a bug.

I'm afraid this bug is probably unfixable, so I'm going to close it.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Calinou picture Calinou  路  3Comments

handicraftsman picture handicraftsman  路  4Comments

bitcoinmeetups picture bitcoinmeetups  路  3Comments

nabeelomer picture nabeelomer  路  4Comments

zanglebert picture zanglebert  路  4Comments