Terminal: profiles.json initialRows and initialCols are ignored

Created on 1 Mar 2020  路  1Comment  路  Source: microsoft/terminal

Environment

Windows build number: Version 10.0.18363.657
Windows Terminal version (if applicable): 0.9.433.0

Steps to reproduce

profiles.json:
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation

{
"$schema": "https://aka.ms/terminal-profiles-schema",

"defaultProfile": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",

"profiles":
{
    "defaults":
    {
        // Put settings here that you want to apply to all profiles
    },
    "list":
    [
        {
            // Make changes here to the powershell.exe profile
             "guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
            "initialCols": 80,
            "initialRows": 20,
            "name": "Windows PowerShell",
            "commandline": "powershell.exe",
            "hidden": false
        },
        {
            // Make changes here to the cmd.exe profile
            "guid": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}",
            "name": "cmd",
            "commandline": "cmd.exe",
        "startingDirectory": "D:\\ii3\\bin",
            "hidden": false,
    "colorScheme": "Vintage",
        "fontFace": "Lucida Console",
    "fontSize": 10
        },
        {
            "guid": "{b453ae62-4e3d-5e58-b989-0a998ec441b8}",
            "hidden": false,
            "name": "Azure Cloud Shell",
            "source": "Windows.Terminal.Azure"
        }
    ]
},

// Add custom color schemes to this array
"schemes": [],

// Add any keybinding overrides to this array.
// To unbind a default keybinding, set the command to "unbound"
"keybindings": []

}

  • Starting terminal window from start menu
  • PS C:\Users\xm> mode con

    Status von Ger盲t CON:

    Zeilen: 28
    Spalten: 120
    Wiederholrate: 31
    Verz枚gerungszeit:1
    Codepage: 850

Expected behavior

the lines and colums shoul be set to 18 and 80

Actual behavior

initialCols and initialRows in the file profiles.json are ignored.

Issue-Question Needs-Tag-Fix Resolution-Answered

Most helpful comment

This seems similar to #2061, but you've put initialRows and initialCols inside the profile object. It actually belongs at the root of the json file if it is to take effect.

>All comments

This seems similar to #2061, but you've put initialRows and initialCols inside the profile object. It actually belongs at the root of the json file if it is to take effect.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ghvanderweg picture ghvanderweg  路  3Comments

zadjii-msft picture zadjii-msft  路  3Comments

alabuzhev picture alabuzhev  路  3Comments

xmm1989218 picture xmm1989218  路  3Comments

warpdesign picture warpdesign  路  3Comments