[PR #6139] Add support for --fullscreen, --maximized #26586

Open
opened 2026-01-31 09:16:58 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/microsoft/terminal/pull/6139

State: closed
Merged: Yes


Summary of the Pull Request

Adds two new flags to the wt.exe alias:

  • --maximized,-M: Launch the new Terminal window maximized. This flag cannot be combined with --fullscreen.
  • --fullscreen,-F: Launch the new Terminal window fullscreen. This flag cannot be combined with --maximized.

References

  • This builds on the work done in #6060.
  • The cmdline args megathread: #4632

PR Checklist

Detailed Description of the Pull Request / Additional comments

  • I had to move the commandline arg parsing up a layer from TerminalPage to AppLogic, because AppLogic controls the Terminal's settings, including launch mode settings. This seems like a reasonable change, to put both the settings from the file and the commandline in the same place.

    • Most of the diff is that movement of code
  • "What happens when you try to pass both flags, like wtd -M -F new-tab?":
    image

Validation Steps Performed

  • Ran a bunch of commandlines to see what happened.
**Original Pull Request:** https://github.com/microsoft/terminal/pull/6139 **State:** closed **Merged:** Yes --- ## Summary of the Pull Request Adds two new flags to the `wt.exe` alias: * `--maximized,-M`: Launch the new Terminal window maximized. This flag cannot be combined with `--fullscreen`. * `--fullscreen,-F`: Launch the new Terminal window fullscreen. This flag cannot be combined with `--maximized`. ## References * This builds on the work done in #6060. * The cmdline args megathread: #4632 ## PR Checklist * [x] Closes #5801 * [x] I work here * [ ] Tests added/passed * [n/a] Requires documentation to be updated ## Detailed Description of the Pull Request / Additional comments * I had to move the commandline arg parsing up a layer from `TerminalPage` to `AppLogic`, because `AppLogic` controls the Terminal's settings, including launch mode settings. This seems like a reasonable change, to put both the settings from the file and the commandline in the same place. - **Most of the diff is that movement of code** * _"What happens when you try to pass both flags, like `wtd -M -F new-tab`?"_: ![image](https://user-images.githubusercontent.com/18356694/82679939-3cffde00-9c11-11ea-8d88-03ec7db83e59.png) ## Validation Steps Performed * Ran a bunch of commandlines to see what happened.
claunia added the pull-request label 2026-01-31 09:16:58 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#26586