micro-editor / micro-editor/micro

Arrow keys don't work in internal terminal

Open
#1,797 4 comments 1 reaction 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 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

  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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.