microsoft / terminal

The new Windows Terminal and the original Windows console host, all in the same place!
MIT License
95.24k stars 8.27k forks source link

Command line "-F" (fullscreen) should work in an already running instance #17922

Open vefatica opened 4 weeks ago

vefatica commented 4 weeks ago

WindowsTerminal 1.21.2408.23001

In an already-running WT, this command splits the current pane and focuses the old one.

wt sp -p TCC33 -V ; move-focus left

This command does the same thing, not making it fullscreen.

wt -F sp -p TCC33 -V ; move-focus left

Is that as expected?

zadjii-msft commented 3 weeks ago

With the setup you've got, that's what I'd expect. -F only affects the creation of new windows. Since your settings are such that new instances of wt open in the current window by default, the second commandline you provided will get sent to the current window, and not make a new one.

I could have swore there was an issue around here for "a CLI flag to toggle the fullscreen state of the window". but I can't find it currently

vefatica commented 3 weeks ago

I don't understand the "setup" part.

-F only affects the creation of new windows

Is that the bottom line?

lhecker commented 3 weeks ago

I suppose the question is whether -F should full-screen the window even if it already existed, right? (I personally think it would make sense.)

vefatica commented 3 weeks ago

Looking at the "wt /?" message box, it seems that the "options" do not affect an already existing window while the "subcommands" do (or can). No doubt there's a distinction between the ways the two are handled. I wanted -F to affect the current window. I could simulate F11 but that would require WT to have input focus.

Is there a message that can be sent to the Cascadia window that will cause it to go fullscreen?