WT does not respect the initial rows and columns #4169

Closed
opened 2026-01-30 23:39:50 +00:00 by claunia · 3 comments
Owner

Originally created by @angelog0 on GitHub (Sep 30, 2019).

By default I see that

"initialCols": 120,
"initialRows": 30,

but truly they are cols=129, rows=28. See
wrong-init-rows-cols I tested this also with the original profile.json.

May be you intend to include also the tabs row etc. but I think it is wrong. When one sets those parameters in Command prompt (that comes with Windows) the number of rows and columns is respected. See
cmd-init-rows-cols

Originally created by @angelog0 on GitHub (Sep 30, 2019). By default I see that ``` "initialCols": 120, "initialRows": 30, ``` but truly they are cols=129, rows=28. See ![wrong-init-rows-cols](https://user-images.githubusercontent.com/35931460/65856786-cc930c80-e362-11e9-9673-5d1dd6fa7be2.png) I tested this also with the original `profile.json`. May be you intend to include also the tabs row etc. but I think it is wrong. When one sets those parameters in Command prompt (that comes with Windows) the number of rows and columns is respected. See ![cmd-init-rows-cols](https://user-images.githubusercontent.com/35931460/65857212-ac178200-e363-11e9-9bdd-47c2a0780bd7.png)
claunia added the Resolution-Duplicate label 2026-01-30 23:39:50 +00:00
Author
Owner

@fpqc commented on GitHub (Sep 30, 2019):

The original profiles.json includes 8,8,8,8 padding on cmd. Could this be the problem?

I just tested with the following settings: in my profile:

            "padding" : "0, 0, 0, 0",
            "scrollbarState": "hidden"

with InitialCols set to 240. I then wrote the number 1 240 times and echoed it to the terminal. Here is the result:

image

What makes the actual size inaccurate is the presence of the scrollbar and the padding. Turning these off makes the calculation completely accurate.

@fpqc commented on GitHub (Sep 30, 2019): The original profiles.json includes 8,8,8,8 padding on cmd. Could this be the problem? I just tested with the following settings: in my profile: ``` "padding" : "0, 0, 0, 0", "scrollbarState": "hidden" ``` with InitialCols set to 240. I then wrote the number `1` 240 times and echoed it to the terminal. Here is the result: ![image](https://user-images.githubusercontent.com/6083371/65891928-4942dc80-e39d-11e9-9239-27c154e8feb7.png) What makes the actual size inaccurate is the presence of the scrollbar and the padding. Turning these off makes the calculation completely accurate.
Author
Owner

@zadjii-msft commented on GitHub (Sep 30, 2019):

/dup #2061

@zadjii-msft commented on GitHub (Sep 30, 2019): /dup #2061
Author
Owner

@ghost commented on GitHub (Sep 30, 2019):

Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!

@ghost commented on GitHub (Sep 30, 2019): Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#4169