Nano doesn't recognize arrow keys #4186

Closed
opened 2026-01-30 23:40:24 +00:00 by claunia · 3 comments
Owner

Originally created by @JCKodel on GitHub (Oct 1, 2019).

When using normal cmd.exe console, using https://github.com/bmatzelle/gow and then using nano readme.txt, all works normally.

In the new terminal, arrow keys displays [ Unknown Command ] (Backspace also not working sometimes and typing leave the cursor 1 letter behind, i.e.: typing teste gives me test|e (notice the cursor before the last e, not after, where it should be)

Originally created by @JCKodel on GitHub (Oct 1, 2019). When using normal cmd.exe console, using https://github.com/bmatzelle/gow and then using `nano readme.txt`, all works normally. In the new terminal, arrow keys displays `[ Unknown Command ]` (Backspace also not working sometimes and typing leave the cursor 1 letter behind, i.e.: typing teste gives me `test|e` (notice the cursor before the last `e`, not after, where it should be)
claunia added the Resolution-Duplicate label 2026-01-30 23:40:24 +00:00
Author
Owner

@DHowett-MSFT commented on GitHub (Oct 1, 2019):

Whoa, this could actually be the same as #2397... I wonder if the gow runtime uses ENABLE_VIRTUAL_TERMINAL_INPUT or not?

@DHowett-MSFT commented on GitHub (Oct 1, 2019): Whoa, this could actually be the same as #2397... I wonder if the gow runtime uses `ENABLE_VIRTUAL_TERMINAL_INPUT` or not?
Author
Owner

@DHowett-MSFT commented on GitHub (Oct 1, 2019):

Confirmed that this is a duplicate. Thanks!

@DHowett-MSFT commented on GitHub (Oct 1, 2019): Confirmed that this is a duplicate. Thanks!
Author
Owner

@jeffrson commented on GitHub (Oct 1, 2019):

Strange coincidence - I just wanted to file another bug with nano...

Well, I have a newer version of nano (4.3 from scoop.sh) that behaves a bit different in Windows Terminal. It seems like arrow keys, return and backspace do modify the internal cursor position in nano, because typing or deleting works - but the shown cursor position does only change when typing.

@jeffrson commented on GitHub (Oct 1, 2019): Strange coincidence - I just wanted to file another bug with nano... Well, I have a newer version of nano (4.3 from scoop.sh) that behaves a bit different in Windows Terminal. It seems like arrow keys, return and backspace do modify the internal cursor position in nano, because typing or deleting works - but the shown cursor position does only change when typing.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#4186