Skip to content

Problems with cursor position escape #18117

@cracyc

Description

@cracyc

Windows Terminal version

1.22.2912.0

Windows build number

10.0.22631.4196

Other Software

https://github.com/cracyc/msdos-player/blob/vt/msdos.cpp#L1088

Steps to reproduce

Start it in a new console window or run in an existing one and execute a command with lots of output.

Expected Behavior

No response

Actual Behavior

When the program starts it immediately gets the console window size and the cursor position which hangs forever. If run from an existing console window it starts fine but if say command.com is run and dir then it will randomly hang waiting for the reply to ESC [6n, although it will resume after a bit or a key is pressed. This does not happen on terminal version 1.21.2911.0, in legacy conhost or if GetConsoleScreenBufferInfo is used instead.

Metadata

Metadata

Assignees

Labels

Area-ServerDown in the muck of API call servicing, interprocess communication, eventing, etc.Issue-BugIt either shouldn't be doing this or needs an investigation.Needs-Tag-FixDoesn't match tag requirementsProduct-ConptyFor console issues specifically related to conpty

Type

Projects

Status

Cherry Picked

Relationships

None yet

Development

No branches or pull requests

Issue actions