initialRows/initialCols should respect the first launched profile in a window, rather than the default #23538

Open
opened 2026-01-31 08:45:17 +00:00 by claunia · 3 comments
Owner

Originally created by @RedGreenBlue09 on GitHub (Aug 22, 2025).

Current behavior

Currently, the --size command uses the font of the default profile to calculate window size, which results in a different size when opening another profile with a different font setting.

Proposed change

Add a new Default launch size field to profile settings. If only one profile is requested at launch, use the size from the new field (--size overrides it) with the font settings of the specified profile. If multiple profiles is requested, use the current behavior.

Why do I need this feature

This is important for my workflow as I need to open an instance with many small cells instead of a few big cells. Changing from the settings page is slow and ruins the default settings.

Originally created by @RedGreenBlue09 on GitHub (Aug 22, 2025). ### Current behavior Currently, the `--size` command uses the font of the default profile to calculate window size, which results in a different size when opening another profile with a different font setting. ### Proposed change Add a new `Default launch size` field to profile settings. If only one profile is requested at launch, use the size from the new field (`--size` overrides it) with the font settings of the specified profile. If multiple profiles is requested, use the current behavior. ### Why do I need this feature This is important for my workflow as I need to open an instance with many small cells instead of a few big cells. Changing from the settings page is slow and ruins the default settings.
Author
Owner

@DHowett commented on GitHub (Aug 27, 2025):

Honestly, it sounds like you're just running into a bug.

If we respected the font size of the profile that you're spawning, would that be sufficient for you?

@DHowett commented on GitHub (Aug 27, 2025): Honestly, it sounds like you're just running into a bug. If we respected the font size of the profile that you're spawning, would that be sufficient for you?
Author
Owner

@RedGreenBlue09 commented on GitHub (Aug 27, 2025):

Yes, that's what I want, thanks.

I don't think it's a bug though, just a naive implementation.
bd14f69080/src/cascadia/TerminalApp/TerminalWindow.cpp (L620)

@RedGreenBlue09 commented on GitHub (Aug 27, 2025): Yes, that's what I want, thanks. I don't think it's a bug though, just a naive implementation. https://github.com/microsoft/terminal/blob/bd14f6908026a1d868b6719774ee685433df4fbf/src/cascadia/TerminalApp/TerminalWindow.cpp#L620
Author
Owner

@microsoft-github-policy-service[bot] commented on GitHub (Sep 1, 2025):

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.

@microsoft-github-policy-service[bot] commented on GitHub (Sep 1, 2025): This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for **4 days**. It will be closed if no further activity occurs **within 3 days of this comment**. <!-- Policy app identification https://img.shields.io/static/v1?label=PullRequestIssueManagement. -->
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#23538