Search in Git/mingw nano mangles text ("←[?1h") #15048

Open
opened 2026-01-31 04:27:00 +00:00 by claunia · 0 comments
Owner

Originally created by @xnoreq on GitHub (Sep 1, 2021).

Windows Terminal version (or Windows build number)

10.0.19043.0, 1.11.2421.0

Other Software

Git-2.33.0.2-64-bit with support for pseudo-consoles enabled

Steps to reproduce

echo asdf > test.txt
nano test.txt

Now press Ctrl+W (search), enter "asdf" (without quotes), press return.

Expected Behavior

No change to text in nano.

Actual Behavior

"asdf" is replaced by "←[?1h". After a second, the text automatically changes to "←[?1hasdf". Pressing right reveals "asdf" character by character.

Pressing right once before the second has passed results in "a[?1h←[?1h←[?1h←[?1hasdf".

Originally created by @xnoreq on GitHub (Sep 1, 2021). ### Windows Terminal version (or Windows build number) 10.0.19043.0, 1.11.2421.0 ### Other Software Git-2.33.0.2-64-bit with support for pseudo-consoles enabled ### Steps to reproduce ``` echo asdf > test.txt nano test.txt ``` Now press Ctrl+W (search), enter "asdf" (without quotes), press return. ### Expected Behavior No change to text in nano. ### Actual Behavior "asdf" is replaced by "←[?1h". After a second, the text automatically changes to "←[?1hasdf". Pressing right reveals "asdf" character by character. Pressing right once before the second has passed results in "a[?1h←[?1h←[?1h←[?1hasdf".
claunia added the Resolution-Duplicate label 2026-01-31 04:27:00 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#15048