ConPTY: pass through requests for the alt buffer #574

Open
opened 2026-01-30 21:55:51 +00:00 by claunia · 0 comments
Owner

Originally created by @davidhewitt on GitHub (Mar 4, 2019).

Originally assigned to: @zadjii-msft on GitHub.

When running cmd.exe inside a pseudoconsole, trying to enter the alternate screen buffer escape sequences via echo [?1049h and echo [?1049l does not result in them being sent to the ConPTY output pipe. It appears to me they are being processed inside cmd.exe and swallowed.

Does it make sense / is it possible for these sequences be output by ConPTY? This would allow terminal emulators to do things like support scrolling inside programs such as less which make use of the alternate screen buffer.

Originally created by @davidhewitt on GitHub (Mar 4, 2019). Originally assigned to: @zadjii-msft on GitHub. When running cmd.exe inside a pseudoconsole, trying to enter the [alternate screen buffer](https://docs.microsoft.com/en-us/windows/console/console-virtual-terminal-sequences#alternate-screen-buffer) escape sequences via `echo [?1049h` and `echo [?1049l` does not result in them being sent to the ConPTY output pipe. It appears to me they are being processed inside cmd.exe and swallowed. Does it make sense / is it possible for these sequences be output by ConPTY? This would allow terminal emulators to do things like support scrolling inside programs such as `less` which make use of the alternate screen buffer.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#574