Open bobpaw opened 4 years ago
Apparently it sends ESCA
instead of ESC[A
, based off less' search function. It also sends two ESC when you press it once.
This seems to be a WSL2 problem, not sure why it only happens there.
I disagree. I get the same error on Debian in virtualbox.
I don't get the error when running in tty1 on a linux box, but I do when running in the xfce Terminal emulator.
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