Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
vefatica opened this issue Sep 12, 2024 · 4 comments
Open

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

vefatica opened this issue Sep 12, 2024 · 4 comments
Labels
Area-Commandline wt.exe's commandline arguments Issue-Question For questions or discussion Needs-Tag-Fix Doesn't match tag requirements Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Resolution-Answered Related to questions that have been answered

Comments

@vefatica
Copy link

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?

@microsoft-github-policy-service microsoft-github-policy-service bot added Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Needs-Tag-Fix Doesn't match tag requirements labels Sep 12, 2024
@zadjii-msft
Copy link
Member

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 zadjii-msft added Issue-Question For questions or discussion Resolution-Answered Related to questions that have been answered Area-Commandline wt.exe's commandline arguments labels Sep 14, 2024
@vefatica
Copy link
Author

I don't understand the "setup" part.

-F only affects the creation of new windows

Is that the bottom line?

@lhecker
Copy link
Member

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

@vefatica
Copy link
Author

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 up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Commandline wt.exe's commandline arguments Issue-Question For questions or discussion Needs-Tag-Fix Doesn't match tag requirements Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Resolution-Answered Related to questions that have been answered
Projects
None yet
Development

No branches or pull requests

3 participants