[1.21] Doesn't show the prompt when using "Shell Integration" escape sequences in bash prompt on WSL #21655

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

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

Windows Terminal version

1.21.1272.0

Windows build number

10.0.22631.3527

Other Software

bash

Steps to reproduce

PS1='\[\033]133;D;$?\]\[\033\\\033]133;A\033\\\]$ \[\033]9;9;"$(wslpath -w "${PWD}")"\033\\\]\[\033]133;B\033\\\]' 

Expected Behavior

A prompt with enabled Shell integration

Actual Behavior

The prompt doesn't show up until you hit enter, and the cursor is not in front of it.

It worked in Preview 1.20

Originally created by @crramirez on GitHub (May 8, 2024). ### Windows Terminal version 1.21.1272.0 ### Windows build number 10.0.22631.3527 ### Other Software bash ### Steps to reproduce ```bash PS1='\[\033]133;D;$?\]\[\033\\\033]133;A\033\\\]$ \[\033]9;9;"$(wslpath -w "${PWD}")"\033\\\]\[\033]133;B\033\\\]' ``` ### Expected Behavior A prompt with enabled Shell integration ### Actual Behavior The prompt doesn't show up until you hit enter, and the cursor is not in front of it. It worked in Preview 1.20
claunia added the Needs-TriageIssue-Bug labels 2026-01-31 07:51:07 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#21655