Output containing OSC sequences (e.g. shell integration) is not rendered (regression) #21638

Open
opened 2026-01-31 07:50:32 +00:00 by claunia · 0 comments
Owner

Originally created by @krzysdz on GitHub (May 8, 2024).

Windows Terminal version

432dfcc490 and later

Windows build number

10.0.19045.4291

Other Software

No response

Steps to reproduce

  1. Enable shell integration in oh-my-posh or set your PowerShell prompt to
    function prompt {
        "$([char]0x1b)]133;D`a$([char]0x1b)]133;A`a> $([char]0x1b)]133;B`a"
    }
    
  2. Open a new pane/window to load the profile
  3. (Optionally) Try pressing Ctrl+C and normal characters

Expected Behavior

No response

Actual Behavior

The prompt (and ^C sometimes too) is not rendered until a printable character is entered from keyboard or the window is resized (resizing doesn't always help).

https://github.com/microsoft/terminal/assets/12915102/75bff0bb-0ad7-48ec-9209-0718279caec6

https://github.com/microsoft/terminal/assets/12915102/e560387f-2f12-4d9c-870d-af21d053cb08

This regression was introduced in 432dfcc490 (#17194)

Originally created by @krzysdz on GitHub (May 8, 2024). ### Windows Terminal version 432dfcc4902d1a8393217a5f529d07e65182a3f8 and later ### Windows build number 10.0.19045.4291 ### Other Software _No response_ ### Steps to reproduce 1. Enable shell integration in oh-my-posh or set your PowerShell prompt to ```ps function prompt { "$([char]0x1b)]133;D`a$([char]0x1b)]133;A`a> $([char]0x1b)]133;B`a" } ``` 2. Open a new pane/window to load the profile 3. (Optionally) Try pressing Ctrl+C and normal characters ### Expected Behavior _No response_ ### Actual Behavior The prompt (and `^C` sometimes too) is not rendered until a printable character is entered from keyboard or the window is resized (resizing doesn't always help). https://github.com/microsoft/terminal/assets/12915102/75bff0bb-0ad7-48ec-9209-0718279caec6 https://github.com/microsoft/terminal/assets/12915102/e560387f-2f12-4d9c-870d-af21d053cb08 This regression was introduced in 432dfcc4902d1a8393217a5f529d07e65182a3f8 (#17194)
claunia added the Needs-TriageIssue-BugProduct-ConptyPriority-0Severity-Blocking labels 2026-01-31 07:50:33 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#21638