A windowing mode that allows the Terminal to grow in size as text is output #17273

Open
opened 2026-01-31 05:37:29 +00:00 by claunia · 0 comments
Owner

Originally created by @zadjii-msft on GitHub (Apr 18, 2022).

The latest from the "I just had a four hour roadtrip so I was brainstorming idly" foundry of showerthougts

What if there was a way to indicate that we wanted the control to start at 1 line tall, and resize as text was output, till it reached initialRows (at which point it would start scrolling). This I think was offhand mentioned by a PM as like, a powertoys run-like UI, and I finally wrapped my head around the idea.

We'd either need to:

  • inform the Terminal that it's actual viewport size is initialRowsxinitialCols, and that it's in this virtual size mode, and it should grow in size to the initialSize. SCREEN_INFO already does something weird with virtualBottom, this might end up being similar. The Terminal layer would just keep reporting new buffer sizes until it hit the originally requested size.
  • Allow the TermControl to fake this out on it's own as it's scrolling? So like, when the Terminal says that the scroll position changed, TermControl says "mhm sure" and actually just increases it's own height. This implementation was less brainstormed so might not work as well.
  • The App layer needs to be able to listen to the size of the TermControl and resize the window to allow it to fit

I'm imagining you combine this with center on launch and with Focus Mode, and a global hotkey, now you've got a PowerToys Run-like box that appears in the center of the monitor, you run some command, and then you {do something to dismiss it. closeOnFocusLost?}

Refer also to:

  • #5094
    • Much more discussion here of "what do we do if a cmdline app wants a resize?". This is similar in the regards that " has asked the TermControl to be a different size, how should the App & Window respond to that"?
  • #10660
    • But more aggressive. Close on focus lost.
  • #9992
    • For the sense of a globalSummon action to run wt -w _run that's got {focus mode, launch centered, default profile, <this setting>} all enabled.
Originally created by @zadjii-msft on GitHub (Apr 18, 2022). _The latest from the "I just had a four hour roadtrip so I was brainstorming idly" foundry of showerthougts_ What if there was a way to indicate that we wanted the control to start at 1 line tall, and resize as text was output, till it reached `initialRows` (at which point it would start scrolling). This I think was offhand mentioned by a PM as like, a powertoys run-like UI, and I finally wrapped my head around the idea. We'd either need to: * inform the `Terminal` that it's actual viewport size is `initialRows`x`initialCols`, and that it's in this virtual size mode, and it should grow in size to the `initialSize`. `SCREEN_INFO` already does something weird with `virtualBottom`, this might end up being similar. The `Terminal` layer would just keep reporting new buffer sizes until it hit the originally requested size. * Allow the `TermControl` to fake this out on it's own as it's scrolling? So like, when the `Terminal` says that the scroll position changed, `TermControl` says "mhm sure" and actually just increases it's own height. This implementation was less brainstormed so might not work as well. * The App layer needs to be able to listen to the size of the TermControl and resize the window to allow it to fit I'm imagining you combine this with center on launch and with Focus Mode, and a global hotkey, now you've got a PowerToys Run-like box that appears in the center of the monitor, you run some command, and then you {do something to dismiss it. `closeOnFocusLost`?} Refer also to: * #5094 * Much more discussion here of "what do we do if a cmdline app wants a resize?". This is similar in the regards that "<someone> has asked the `TermControl` to be a different size, how should the `App` & `Window` respond to that"? * #10660 * But more aggressive. Close on focus lost. * #9992 * For the sense of a `globalSummon` action to run `wt -w _run` that's got `{focus mode, launch centered, default profile, <this setting>}` all enabled.
claunia added the Issue-FeatureProduct-TerminalArea-TerminalControlArea-Windowing labels 2026-01-31 05:37:29 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#17273