micro-editor / micro-editor/micro
Arrow keys don't work in internal terminal
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 I open the terminal with > term and run a program that uses curses, arrow keys aren't passed properly. For example, opening a man page or using less. This error only occurs when using a terminal emulator or any /dev/pts device. It doesn't occur when using /dev/tty devices.
Specifications
Commit hash: Version 2.0.6
OS: Debian buster (run in WSL2)
Terminal: bash
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue by opening the internal terminal with > term, then running man or less under /dev/pts and compare the behavior with /dev/tty. Trace the terminal input handling from that entry point; done means curses programs receive arrow keys correctly through the internal terminal.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- bash, go
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100