microsoft/Terminal
Voir sur GitHubNew panes should inherit the tab color of the active pane when they're split
Open
#18 930 ouverte le 20 mai 2025
Help WantedIssue-TaskNeeds-Tag-FixPriority-3Product-Terminal
Métriques du dépôt
- Stars
- (35 764 stars)
- Métriques de merge PR
- (Merge moyen 27j 19h) (24 PRs mergées en 30 j)
Description
Windows Terminal version
1.22.11141.0
Windows build number
10.0.26100.4061
Other Software
No response
Steps to reproduce
- Close all instances of Microsoft Terminal
- Open a cmd prompt or Powershell
- Run this command:
- CMD:
wt new-tab -p "Windows PowerShell" --tabColor "#FF0000" --title "Hello World" ; split-pane -p "Windows PowerShell" - Powershell:
wt new-tab -p "Windows PowerShell" --tabColor "#FF0000" --title "Hello World" ; split-pane -p "Windows PowerShell"
Expected Behavior
The resulting tab in Terminal should have the correct title and color set from command line.
Actual Behavior
The resulting tab in Terminal has the default title and color (not the ones defined in the command line).
If you run the same commands but with a semicolon at the end:
- CMD:
wt new-tab -p "Windows PowerShell" --tabColor "#FF0000" --title "Hello World" ; split-pane -p "Windows PowerShell" ; - Powershell:
wt new-tab -p "Windows PowerShell" --tabColor "#FF0000" --title "Hello World" ; split-pane -p "Windows PowerShell" ;Then the resulting tab in Terminal have the correct title and color set from command line (and in addition, it opens another default terminal tab).
This is also the case using "startupActions" inside settings.json`:
- ❌ bugged:
"new-tab -p \"Windows PowerShell\" --tabColor \"#FF0000\" --title \"Hello World\" ; split-pane -p \"Windows PowerShell\"" - ✅ okay:
"new-tab -p \"Windows PowerShell\" --tabColor \"#FF0000\" --title \"Hello World\" ; split-pane -p \"Windows PowerShell\" ;"