zyedidia / micro

A modern and intuitive terminal-based text editor
https://micro-editor.github.io
MIT License
24.42k stars 1.16k forks source link

Shift key doesn't work in Micro running in a terminal session with Tmux #3151

Open dandeancook opened 4 months ago

dandeancook commented 4 months ago

Description of the problem or steps to reproduce

Steps

The same thing to Shift+Right, it shows [1;2C.

But it seems advanced input all not working in Tmux, mouse click becomes [<0;34;23m

Specifications

Latest micro, in WSL Bash

Commit hash: -- OS: Windows 11 Terminal: Windows Terminal Bash

robinpecha commented 1 day ago

The same problem here :(

niten94 commented 20 hours ago

I have not used tmux much before and I do not know much about terminals but there was this section in a page: https://github.com/tmux/tmux/wiki/Modifier-Keys#tmux-is-recognizing-the-key

I was testing using xterm and tmux 3.1c but TERM was set as screen by default so keys pressed together with modifier keys were being written in micro. The keys were being handled and not written in micro when TERM was set to tmux-256color. I tried testing using tmux 3.3a too but TERM was set as tmux-256color by default.