-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
initialRows/initialColumns still doesn't work quite right #8527
Comments
I use:
and want a title bar + a tab bar(when there are tabs) + 30 rows (always): the terminal should increase its vertical dimension when tab bar shows up so that it displays always 30 rows of text. The current behavior is that the vertical dimension is static and when tab row shows up the space of 2 rows are taken by the tab row so that the true text displayed is 28 rows. |
S stands for
It seems like there are two cases that would make row only 28. For my machine settings both |
Just for legibility's sake:
I'm pretty sure that this is just a coincidence that it's 2 rows. If the font size is bigger or smaller, you might end up seeing only one row of difference, or 3 rows. Plus, I think we should already be handling this: terminal/src/cascadia/TerminalApp/AppLogic.cpp Lines 567 to 598 in d02812d
I'd guess that since that code was written, something in the |
@zadjii-msft Backlogged. Yanked triage. |
🎉This issue was addressed in #8584, which has now been successfully released as Handy links: |
🎉This issue was addressed in #8584, which has now been successfully released as Handy links: |
I am afraid but WT 1.5.10271.0 has the same issue: only when WT starts without tabs row has 30 lines; with tabs row it has 28 lines. Maybe you meant the preview 1.6 has fixed this issue.. I do not use that... |
Attached some example |
I'm guessing that this is only fixed in 1.6 Preview. I'm not sure which changes @DHowett brought down to 1.5, but this was definitely fixed in the 1.6 timeframe... |
No, 9e9c0be is in the release-1.5 branch. That was the fix for this issue. I'm guessing that you'd be seeing this in 1.6 if you were using it. |
Then the issue is not fixed, as my screenshots proof... (I don't use preview) |
If I understood that code, it is not the fix for the issue I flagged here... The issue I flagged here would need to resize the window height when tabs are visible to conserve the same initial rows... |
I don't know if we ever drove this to ground, so I'm reopening it. |
Not, at least in v. 1.6.10571.0... |
idly: I wonder if the scrollbar size change is gonna Mess this up even more, if scrollbars are no longer |
This issue still happened in version 1.17.11461.0 bandicam.2023-06-19.14-14-24-861.mp4Here is my settings: {
"$help": "https://aka.ms/terminal-documentation",
"$schema": "https://aka.ms/terminal-profiles-schema",
"defaultProfile": "{574e775e-4f2a-5b96-ac1e-a2962a402336}",
"windowingBehavior": "useExisting",
"initialCols": 120,
"initialRows": 40,
"centerOnLaunch": true,
"disabledProfileSources": [
"Windows.Terminal.Azure"
],
"copyFormatting": "all",
"largePasteWarning": false,
"multiLinePasteWarning": false,
"theme": "Mica",
"themes": [
{
"name": "Mica",
"window": {
"applicationTheme": "system",
"useMica": true
},
"tab": {
"background": "#00000040",
"unfocusedBackground": "#00000000"
},
"tabRow": {
"background": "#00000000",
"unfocusedBackground": "#00000000"
}
}
],
"schemes": [
{
"name": "VSCode Dark+",
"foreground": "#cccccc",
"background": "#252526",
"selectionBackground": "#264f78",
"cursorColor": "#cccccc",
"black": "#000000",
"red": "#cd3131",
"green": "#0dbc79",
"yellow": "#e5e510",
"blue": "#2472c8",
"purple": "#bc3fbc",
"cyan": "#11a8cd",
"white": "#e5e5e5",
"brightBlack": "#666666",
"brightRed": "#f14c4c",
"brightGreen": "#23d18b",
"brightYellow": "#f5f543",
"brightBlue": "#3b8eea",
"brightPurple": "#d670d6",
"brightCyan": "#29b8db",
"brightWhite": "#e5e5e5"
},
{
"name": "VSCode Light+",
"foreground": "#333333",
"background": "#f3f3f3",
"selectionBackground": "#add6ff",
"cursorColor": "#333333",
"black": "#000000",
"red": "#cd3131",
"green": "#00bc00",
"yellow": "#949800",
"blue": "#0451a5",
"purple": "#bc05bc",
"cyan": "#0598bc",
"white": "#555555",
"brightBlack": "#666666",
"brightRed": "#cd3131",
"brightGreen": "#14ce14",
"brightYellow": "#b5ba00",
"brightBlue": "#0451a5",
"brightPurple": "#bc05bc",
"brightCyan": "#0598bc",
"brightWhite": "#a5a5a5"
}
],
"profiles": {
"defaults": {
"colorScheme": "VSCode Dark+",
"font": {
"face": "Sarasa Term TC",
"size": 10,
"features": {
"cv10": 6,
"cv31": 16,
"cv35": 6,
"cv42": 10,
"cv44": 2,
"cv49": 2,
"cv72": 3,
"cv77": 2,
"cv80": 2,
"cv82": 6,
"cv88": 2,
"cv93": 3
}
},
"cursorShape": "bar",
"opacity": 25,
"padding": "6, 6, 6, 6",
"background": "#000000",
"unfocusedAppearance": {
"background": "#202020",
},
"antialiasingMode": "cleartype",
"historySize": 32767,
"bellStyle": [
"window",
"taskbar"
],
"experimental.autoMarkPrompts": true,
"experimental.showMarksOnScrollbar": true,
"experimental.rightClickContextMenu": true,
},
"list": [
{
"name": "PowerShell",
"commandline": "pwsh -NoLogo",
"guid": "{574e775e-4f2a-5b96-ac1e-a2962a402336}",
"source": "Windows.Terminal.PowershellCore"
},
{
"name": "Windows PowerShell",
"hidden": true,
"commandline": "powershell -NoLogo",
"guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}"
},
{
"name": "Command Prompt",
"commandline": "cmd /k %UserProfile%\\.cmdrc.bat",
"guid": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}"
},
{
"name": "Git Bash",
"commandline": "%ProgramFiles%\\Git\\bin\\bash.exe -il",
"startingDirectory": "%UserProfile%",
"icon": "%ProgramFiles%\\Git\\mingw64\\share\\git\\git-for-windows.ico",
"guid": "{d15b228a-05d7-50d1-8472-f60aaba86efc}"
},
{
"name": "WSL",
"hidden": true,
"guid": "{2c4de342-38b7-51cf-b940-2309a097f518}",
"source": "Windows.Terminal.Wsl"
},
{
"name": "Ubuntu (WSL)",
"commandline": "wsl -d Ubuntu",
"startingDirectory": "~",
"guid": "{51855cb2-8cce-5362-8f54-464b92b32386}",
"source": "CanonicalGroupLimited.Ubuntu_79rhkp1fndgsc"
}
]
}
} I am using Windows 11 10.0.22621.1702, and a 4K monitor with 150% scaling. |
By default WT starts with `"initialRows": 30', and this is true when there is not the tab row. After opening the first tab, tha tab row shows up and WT really displays 28 rows (it conserves the window height).
Is there an option to conserve the `initiaRows', 30, for example? (the window height should increase a bit).
The text was updated successfully, but these errors were encountered: