terminal
terminal copied to clipboard
PowerShell argument `WindowStyle -Hidden` is not respected when the default terminal application is Windows Terminal
Windows Terminal version
1.12.10393.0
Windows build number
Microsoft Windows NT 10.0.22549.0
Other Software
Software | Version |
---|---|
PowerShell.exe | Multiple Versions |
pwsh.exe | Multiple Versions |
Steps to reproduce
-
Set Windows Terminal as the default terminal application: .
-
Make sure to save changes to Windows Terminal Settings, and then using Windows Run, run
pwsh -WindowStyle Hidden -Command Sleep 10
:
Expected Behavior
A new PowerShell process launches (Windows Terminal), and it isn't visible. The window may flash for a second. PowerShell window shouldn't be displayed when it's launched with WindowStyle -Hidden
.
Actual Behavior
A new PowerShell process launches (on Windows Terminal), and it is visible and remains visible (and waits) for 10 seconds.
Note: There is no repro for this issue with Windows Console Host
as the default terminal application.