WT -f <myApp.exe> causes glitched window #17575

Closed
opened 2026-01-31 05:46:23 +00:00 by claunia · 6 comments
Owner

Originally created by @jredfox on GitHub (May 26, 2022).

Windows Terminal version

1.12.10982.0

Windows build number

10.0.19044.1706

Other Software

java.exe

Steps to reproduce

wt -f java --> produces a window in which you cannot close there is no x button.
wt --focus java --> produces a window in which you cannot close there is no x button.

Expected Behavior

it open up the default profile with the batch icon on the top left and it execute normally. wt java will produce the proper result

Actual Behavior

bordless window you cannot close.
java 5_25_2022 10_09_28 PM

running wt new-tab -f java seems to fix it. but why isn't' there an error message if -f requires the new tab?

Originally created by @jredfox on GitHub (May 26, 2022). ### Windows Terminal version 1.12.10982.0 ### Windows build number 10.0.19044.1706 ### Other Software java.exe ### Steps to reproduce `wt -f java` --> produces a window in which you cannot close there is no x button. `wt --focus java` --> produces a window in which you cannot close there is no x button. ### Expected Behavior it open up the default profile with the batch icon on the top left and it execute normally. `wt java` will produce the proper result ### Actual Behavior bordless window you cannot close. ![java 5_25_2022 10_09_28 PM](https://user-images.githubusercontent.com/9736369/170407931-b05795ff-db64-4eac-b8e0-3fb5efa22ccd.png) running `wt new-tab -f java` seems to fix it. but why isn't' there an error message if `-f` requires the new tab?
Author
Owner

@zadjii-msft commented on GitHub (May 26, 2022):

This is totally by design. -f before any subcommands opens the window in fullscreen mode. There's no frame in fullscreen mode by design. There's a variety of QoL improvements to fullscreen mode we're tracking in #3486

@zadjii-msft commented on GitHub (May 26, 2022): This is totally by design. [`-f` before any subcommands](https://docs.microsoft.com/en-us/windows/terminal/command-line-arguments?tabs=windows#options-and-commands) opens the window in fullscreen mode. There's no frame in fullscreen mode by design. There's a variety of QoL improvements to fullscreen mode we're tracking in #3486
Author
Owner

@jredfox commented on GitHub (May 26, 2022):

It's not in Fullscreen. Its in a normal window missing the buttons

@jredfox commented on GitHub (May 26, 2022): It's not in Fullscreen. Its in a normal window missing the buttons
Author
Owner

@jredfox commented on GitHub (May 26, 2022):

@zadjii-msft reproducable with wt --focus java

@jredfox commented on GitHub (May 26, 2022): @zadjii-msft reproducable with `wt --focus java`
Author
Owner

@zadjii-msft commented on GitHub (May 26, 2022):

Derp.

-F is fullscreen.

-f is "focus mode". It should still have borders around the window though. Something that looks like:
image

You should be able to leave focus mode with the "Toggle Focus Mode" command in the Command Palette

@zadjii-msft commented on GitHub (May 26, 2022): Derp. `-F` is fullscreen. `-f` is "focus mode". It should still have borders around the window though. Something that looks like: ![image](https://user-images.githubusercontent.com/18356694/170477502-d12e2c3a-200b-4e81-98b2-fd1e02fbaf51.png) You should be able to leave focus mode with the "Toggle Focus Mode" command in the Command Palette
Author
Owner

@jredfox commented on GitHub (May 26, 2022):

Capture
@zadjii-msft I fail to see how using --focus without a new tab creates a borderless app with no x button is intended to work that way that's not even in fullscreen. it should either say hey error can't focus without a tab specified or it should create a tab with the default profile like wt with no additional params does. the --focus usual behavior is to focus the right tab or window so the user doesn't have to look for it.

@jredfox commented on GitHub (May 26, 2022): ![Capture](https://user-images.githubusercontent.com/9736369/170477759-a869f731-1e02-413b-b8bb-d9820d9334da.PNG) @zadjii-msft I fail to see how using `--focus` without a new tab creates a borderless app with no `x` button is intended to work that way that's not even in fullscreen. it should either say hey error can't focus without a tab specified or it should create a tab with the default profile like `wt` with no additional params does. the `--focus` usual behavior is to focus the right tab or window so the user doesn't have to look for it.
Author
Owner

@zadjii-msft commented on GitHub (May 26, 2022):

Focus mode is a feature. An intentional mode for the window without any other chrome. There are still tabs in focus mode, they're just hidden.

fomo-sample-000

the --focus usual behavior is to focus the right tab or window so the user doesn't have to look for it

Pretty sure that --focus has been used to launch in focus mode for the Terminal since we introduced that argument.

@zadjii-msft commented on GitHub (May 26, 2022): Focus mode is a feature. An intentional mode for the window without any other chrome. There are still tabs in focus mode, they're just hidden. ![fomo-sample-000](https://user-images.githubusercontent.com/18356694/170480174-0144b900-eea6-4679-b00a-aacfad49703e.gif) > the `--focus` usual behavior is to focus the right tab or window so the user doesn't have to look for it Pretty sure that `--focus` has been used to launch in focus mode for the Terminal since we introduced that argument.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#17575