CMD tabs no longer show the command prompt in the title when prompt is $E]0;$P$E;$P$G #11409

Open
opened 2026-01-31 02:46:53 +00:00 by claunia · 0 comments
Owner

Originally created by @awhewell on GitHub (Nov 14, 2020).

Environment

Microsoft Windows [Version 10.0.18362.1139]
Windows Terminal 1.4.3141.0

Steps to reproduce

  1. Set the global PROMPT environment variable to $E]0;$P$E;$P$G
  2. Open a CMD tab.

Expected behavior

The $E]0;$P$E;$P$G prompt sets the current directory as a command prompt (e.g. "C:\Users\Me>"). It also sets the CMD window title to the current directory and, until recently, set the Windows Terminal tab title for CMD windows to the current directory.

When you change directory within the CMD window or the CMD Windows Terminal tab the window title (CMD) or tab title (WT) changes to reflect your current working directory.

In Windows Terminal this means that when you have many CMD tabs open you can tell at a glance which tab is in which directory.

Actual behavior

As of 1.4.3141.0 it now only shows the profile name (cmd in my case) in the tab title. The title does not update as you change directories. If you have many tabs open then you cannot tell which tab is in which directory.

Regressing to version 1.3.2651.0 fixes the issue.

Regressing to preview 1.4.2652.0 re-introduces the bug. Whatever change caused the problem came in between 1.3.2651.0 and 1.4.2652.0.

Originally created by @awhewell on GitHub (Nov 14, 2020). # Environment Microsoft Windows [Version 10.0.18362.1139] Windows Terminal 1.4.3141.0 # Steps to reproduce 1. Set the global PROMPT environment variable to $E]0;$P$E;$P$G 2. Open a CMD tab. # Expected behavior The $E]0;$P$E;$P$G prompt sets the current directory as a command prompt (e.g. "C:\Users\Me>"). It also sets the CMD window title to the current directory and, until recently, set the Windows Terminal tab title for CMD windows to the current directory. When you change directory within the CMD window or the CMD Windows Terminal tab the window title (CMD) or tab title (WT) changes to reflect your current working directory. In Windows Terminal this means that when you have many CMD tabs open you can tell at a glance which tab is in which directory. # Actual behavior As of 1.4.3141.0 it now only shows the profile name (cmd in my case) in the tab title. The title does not update as you change directories. If you have many tabs open then you cannot tell which tab is in which directory. Regressing to version 1.3.2651.0 fixes the issue. Regressing to preview 1.4.2652.0 re-introduces the bug. Whatever change caused the problem came in between 1.3.2651.0 and 1.4.2652.0.
claunia added the Needs-TriageNeeds-Tag-Fix labels 2026-01-31 02:46:53 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#11409