Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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

Open
danqdinh opened this issue Feb 23, 2024 · 2 comments
Open

Comments

@danqdinh
Copy link

Description of the problem or steps to reproduce

Steps

  • Launch Tmux session to a folder, eg. tmux new -s foo -c /etc
  • Open micro: micro
  • Type some text in a line
  • Move caret to middle of the line
  • Press Shift+Left to select some text to the left
  • Error: Text is not selected, instead, it shows [1;2D

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

@danqdinh danqdinh changed the title Shift key doesn't work in Micro after launching a terminal session with Tmux Shift key doesn't work in Micro running in a terminal session with Tmux Feb 23, 2024
@robinpecha
Copy link

The same problem here :(

@niten94
Copy link
Contributor

niten94 commented Jul 8, 2024

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.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants