Fails to launch maximized/fullscreen and the given profile #10199

Closed
opened 2026-01-31 02:15:06 +00:00 by claunia · 5 comments
Owner

Originally created by @Guiorgy on GitHub (Aug 17, 2020).

Environment

Windows build number: Microsoft Windows [Version 10.0.18363.1016]
Windows Terminal version (if applicable): Version: 1.1.2233.0

Steps to reproduce

Open CMD and start wt maximized/fullscreen and a given profile, e.i. wt -M -p "Command Prompt"

Expected behavior

Windows Terminal opens in maximized mode with the "Command Prompt" profile

Actual behavior

Doesn't start and gives error:
image

Additional information

  • wt -M
    launches the terminal in maximized mode with default profile
  • wt -p "Command Prompt" -d D:/ ; -M
    launches the terminal maximized and the given profile, but with a second tab with the default profile
  • wt -p "Command Prompt" -d D:/ ; -M split-pane -d D:/ -p "Windows PowerShell"
    launches the terminal with 2 tabs with the selected profiles in maximized mode
  • wt -M -p "Command Prompt" -d D:/ ; split-pane -d D:/ -p "Windows PowerShell"
    doesn't work
Originally created by @Guiorgy on GitHub (Aug 17, 2020). # Environment ```none Windows build number: Microsoft Windows [Version 10.0.18363.1016] Windows Terminal version (if applicable): Version: 1.1.2233.0 ``` # Steps to reproduce Open **CMD** and start wt maximized/fullscreen and a given profile, e.i. `wt -M -p "Command Prompt"` # Expected behavior Windows Terminal opens in maximized mode with the "Command Prompt" profile # Actual behavior Doesn't start and gives error: ![image](https://user-images.githubusercontent.com/27736965/90419071-1265da00-e0c7-11ea-9465-557f1d55a2ab.png) # Additional information - `wt -M` launches the terminal in maximized mode with default profile - `wt -p "Command Prompt" -d D:/ ; -M` launches the terminal maximized and the given profile, but with a second tab with the default profile - `wt -p "Command Prompt" -d D:/ ; -M split-pane -d D:/ -p "Windows PowerShell"` launches the terminal with 2 tabs with the selected profiles in maximized mode - `wt -M -p "Command Prompt" -d D:/ ; split-pane -d D:/ -p "Windows PowerShell"` doesn't work
Author
Owner

@DHowett commented on GitHub (Aug 17, 2020):

-M and -F are only available in version 1.2+.

@DHowett commented on GitHub (Aug 17, 2020): `-M` and `-F` are only available in version 1.2+.
Author
Owner

@Guiorgy commented on GitHub (Aug 17, 2020):

@DHowett
The docs didn't mention a version restriction. But more importantly, as I mentioned at the end of my post, wt -M as well as wt -p "profile 1" ; -M split-pane -p "profile 2" do work with my version of the terminal, so saying that -M/-F are only available in 1.2 can't be right?

@Guiorgy commented on GitHub (Aug 17, 2020): @DHowett The [docs](https://docs.microsoft.com/en-us/windows/terminal/command-line-arguments?tabs=windows) didn't mention a version restriction. But more importantly, as I mentioned at the end of my post, `wt -M` as well as `wt -p "profile 1" ; -M split-pane -p "profile 2"` do work with my version of the terminal, so saying that `-M/-F` are *only* available in *1.2* can't be right?
Author
Owner

@DHowett commented on GitHub (Aug 17, 2020):

Whoops, you're totally right. This is an unusual interaction between the "default" command (new-tab) and arguments that belong to wt.

Right now, wt is treated like wt new-tab. Unfortunately, this means that wt -M is treated like wt new-tab -M, which definitely isn't valid. -M is an argument for the global context (and can only be specified before a command).

Workaround:

wt -M new-tab -p "Command prompt"

That also explains why your -M split-pane example works.

Sorry about that!

/cc @zadjii-msft

@DHowett commented on GitHub (Aug 17, 2020): Whoops, you're totally right. This is an unusual interaction between the "default" command (`new-tab`) and arguments that belong to `wt`. Right now, `wt` is treated like `wt new-tab`. Unfortunately, this means that `wt -M` is treated like `wt new-tab -M`, which definitely isn't valid. `-M` is an argument for the global context (and can only be specified before a command). Workaround: ``` wt -M new-tab -p "Command prompt" ``` That also explains why your `-M split-pane` example works. Sorry about that! /cc @zadjii-msft
Author
Owner

@ghost commented on GitHub (Jan 28, 2021):

:tada:This issue was addressed in #8315, which has now been successfully released as Windows Terminal v1.5.10271.0.🎉

Handy links:

@ghost commented on GitHub (Jan 28, 2021): :tada:This issue was addressed in #8315, which has now been successfully released as `Windows Terminal v1.5.10271.0`.:tada: Handy links: * [Release Notes](https://github.com/microsoft/terminal/releases/tag/v1.5.10271.0) * [Store Download](https://www.microsoft.com/store/apps/9n8g5rfz9xk3?cid=storebadge&ocid=badge)
Author
Owner

@ghost commented on GitHub (Jan 28, 2021):

:tada:This issue was addressed in #8315, which has now been successfully released as Windows Terminal Preview v1.6.10272.0.🎉

Handy links:

@ghost commented on GitHub (Jan 28, 2021): :tada:This issue was addressed in #8315, which has now been successfully released as `Windows Terminal Preview v1.6.10272.0`.:tada: Handy links: * [Release Notes](https://github.com/microsoft/terminal/releases/tag/v1.6.10272.0) * [Store Download](https://www.microsoft.com/store/apps/9n8g5rfz9xk3?cid=storebadge&ocid=badge)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#10199