Cooked read can hang when editing a line with control characters #17893
Labels
Area-CookedRead
The cmd.exe COOKED_READ handling
In-PR
This issue has a related PR
Issue-Bug
It either shouldn't be doing this or needs an investigation.
Needs-Tag-Fix
Doesn't match tag requirements
Priority-2
A description (P2)
Product-Conhost
For issues in the Console codebase
Product-Terminal
The new Windows Terminal.
Windows Terminal version
1.22.2362.0
Windows build number
10.0.19045.4651
Other Software
No response
Steps to reproduce
^A
.^A
is pushed past the end of the line.Expected Behavior
The
^A
should eventually wrap over onto the next line.Actual Behavior
Once the
^A
reaches the rightmost column, the line editor stops responding to any further keystrokes. In the debugger I can see it's stuck in an infinite loop here:terminal/src/host/readDataCooked.cpp
Lines 922 to 941 in 4aa1624
The text was updated successfully, but these errors were encountered: