Add support for DECSCNM in Windows Terminal #6622
Labels
Area-VT
Virtual Terminal sequence support
Help Wanted
We encourage anyone to jump in on these.
Issue-Task
It's a feature request, but it doesn't really need a major design.
Product-Terminal
The new Windows Terminal.
Resolution-Fix-Committed
Fix is checked in, but it might be 3-4 weeks until a release.
Milestone
Description of the new feature/enhancement
When the
DECSCNM
mode was implemented in PR #3817, it was only actually added to conhost, but relied on the fact that the conpty renderer was passing through the translated colors (rather than the underlying buffer values), so it gave the impression that it worked in Windows Terminal as well. Once PR #6506 is merged, though, this will no longer be the case, so we need to add explicit support forDECSCNM
in WT if we want to retain that functionality.Proposed technical implementation details (optional)
In the conhost
AdaptDispatch
, we need to return false from theSetScreenMode
method (when in conpty mode), to force theDECSCNM
sequence to be passed through to the conpty pipe. Then on the WT side, we need to duplicate a lot of theAdaptDispatch
implementation inTerminalDispatch
, and update the renderdataGetForegroundColor
andGetBackgroundColor
calculations to take the reversed screen mode into account.The text was updated successfully, but these errors were encountered: