Skip to content

PS Integrated Console incorrect width #865

Closed
@thomasrayner

Description

@thomasrayner

It doesn't look like the PS Integrated Console in VS Code actually knows how wide it is. In regular PowerShell.exe (or pwsh, if you prefer), you can look in $host.ui.rawui.maxwindowsize.width and get the number of cols wide the console is. In the PSIC in VS Code, this number is wrong.

If you run write-host $(" " * $host.ui.rawui.maxwindowsize.width) -nonewline; "HERE", it should effectively write a blank line (space chars all the way across your screen) and then "HERE". The "HERE" should be on the start of it's own line. This is how it looks in the regular PowerShell console in VS Code.

image

This is how it looks in the PSIC. I did not resize VS Code between these two screenshots.

image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions