issue with control characters appearing in command window #9934

Closed
opened 2026-01-31 02:07:54 +00:00 by claunia · 6 comments
Owner

Originally created by @manbearian on GitHub (Jul 30, 2020).

suddenly my command window starting show control characters instead of doing the actions (e.g. image shows pushing the up arrow on the keyboard and then the down arrow). Other shells/tabs in the same terminal window don't have this issue.

image

Unfortunately i don't have a repro, and i don't know how i got into this state. I have a DMP of WIndowsTerminal.exe if that helps.

Originally created by @manbearian on GitHub (Jul 30, 2020). suddenly my command window starting show control characters instead of doing the actions (e.g. image shows pushing the up arrow on the keyboard and then the down arrow). Other shells/tabs in the same terminal window don't have this issue. ![image](https://user-images.githubusercontent.com/25087458/88950899-23e75f00-d24a-11ea-8e24-81d33d989ffd.png) Unfortunately i don't have a repro, and i don't know how i got into this state. I have a DMP of WIndowsTerminal.exe if that helps.
claunia added the Resolution-Duplicate label 2026-01-31 02:07:54 +00:00
Author
Owner

@DHowett commented on GitHub (Jul 30, 2020):

So, this is usually caused by an application leaving ENABLE_VIRTUAL_TERMINAL_INPUT enabled when it exits. The input state is, unfortunately, global for a given console session (in Terminal, that's the tree of processes under one terminal pane)... which means applications can trivially mess with eachother like this.

@DHowett commented on GitHub (Jul 30, 2020): So, this is usually caused by an application leaving `ENABLE_VIRTUAL_TERMINAL_INPUT` enabled when it exits. The input state is, unfortunately, global for a given console session (in Terminal, that's the tree of processes under one terminal pane)... which means applications can trivially mess with eachother like this.
Author
Owner

@manbearian commented on GitHub (Jul 30, 2020):

thanks for the quick response; is there an manual fix i can run? i'd love to save this terminal session :)

@manbearian commented on GitHub (Jul 30, 2020): thanks for the quick response; is there an manual fix i can run? i'd love to save this terminal session :)
Author
Owner

@DHowett commented on GitHub (Jul 30, 2020):

Hmm.. so, if you just run powershell and then exit it, it should restore the input mode. I just gave that a shot over here.

@DHowett commented on GitHub (Jul 30, 2020): Hmm.. so, if you just run `powershell` and then exit it, it should restore the input mode. I just gave that a shot over here.
Author
Owner

@manbearian commented on GitHub (Jul 30, 2020):

Btw, now that i can get my history for that shell, i believe that the culprit is vi. the last few previous commands were git diff invocations.

@manbearian commented on GitHub (Jul 30, 2020): Btw, now that i can get my history for that shell, i believe that the culprit is vi. the last few previous commands were `git diff` invocations.
Author
Owner

@DHowett commented on GitHub (Jul 31, 2020):

Thanks for that! Yeah, it'll do that sometimes. Sorry 😄

For this one, by-design is appropriate, even though that's a little unfortunate. We're kicking around the idea of making the input mode per-process state, but our input queue is appalling right now. I tried to hack this up for hackathon!

/dup #4954

@DHowett commented on GitHub (Jul 31, 2020): Thanks for that! Yeah, it'll do that sometimes. Sorry :smile: For this one, by-design is appropriate, even though that's a little unfortunate. We're kicking around the idea of making the input mode per-process state, but our input queue is appalling right now. I tried to hack this up for hackathon! /dup #4954
Author
Owner

@ghost commented on GitHub (Jul 31, 2020):

Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!

@ghost commented on GitHub (Jul 31, 2020): Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#9934