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

Open
opened 2026-01-31 08:08:51 +00:00 by claunia · 4 comments
Owner

Originally created by @vefatica on GitHub (Sep 12, 2024).

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?

Originally created by @vefatica on GitHub (Sep 12, 2024). 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?
claunia added the Issue-FeatureProduct-TerminalArea-Remoting labels 2026-01-31 08:08:51 +00:00
Author
Owner

@zadjii-msft commented on GitHub (Sep 14, 2024):

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

@zadjii-msft commented on GitHub (Sep 14, 2024): 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
Author
Owner

@vefatica commented on GitHub (Sep 14, 2024):

I don't understand the "setup" part.

-F only affects the creation of new windows

Is that the bottom line?

@vefatica commented on GitHub (Sep 14, 2024): I don't understand the "setup" part. > -F only affects the creation of new windows Is that the bottom line?
Author
Owner

@lhecker commented on GitHub (Sep 16, 2024):

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.)

@lhecker commented on GitHub (Sep 16, 2024): 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.)
Author
Owner

@vefatica commented on GitHub (Sep 16, 2024):

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?

@vefatica commented on GitHub (Sep 16, 2024): 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?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#22284