micro-editor / micro-editor/micro

Several keybindings don't work over SSH+Byobu (Shift+arrows, Ctrl+arrows)

Open
#1,890 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
29.6k
Forks
1.4k
Avg merge
2d 18h
Merged PRs (30d)
10

Description

Description of the problem or steps to reproduce

When using SSH on a server configured to run Byobu, attempting to use Ctrl or Shift plus the arrow keys outputs a keystroke sequence instead of performing the bound movements.

  • Ctrl+Right outputs [1;5C
  • Ctrl+Left outputs [1;5D
  • Shift+Left/Right changes panels on Byobu, so those keystrokes are not detected by default
    • The key combination to disable Byobu temporarily, Shift+F12, doesn't seem to go through when using OpenSSH or Putty (with any configuration of keybindings) over Windows
    • Shift+F12 does work on Arch Linux, so Shift+Left outputs [1;2C and Shift+Right outputs [1;2D.

Specifications

Commit hash: "Version: 2.0.6" from Buster Backports
OS: Debian Buster (host), Windows 10 and Arch Linux (guest)
Terminal: SSH + Bash + Byobu (host), Tilix (Arch linux guest), OpenSSH and WSL2 (Windows guest)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the reported key sequences in the listed SSH, Bash, Byobu, Windows, and Arch Linux environments, starting with Ctrl+Left/Right and Shift+Left/Right. Trace the editor's terminal input and keybinding handling; done means these combinations trigger their bound movements rather than outputting escape sequences or being intercepted by Byobu.

Written by the indexing model from the issue text.

Assessment

Tech stack
bash, go
Domain
cli, networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.