PowerShell / ConsoleGuiTools

Modules that mix PowerShell and GUIs/CUIs!
https://www.powershellgallery.com/packages/Microsoft.PowerShell.ConsoleGuiTools
MIT License
776 stars 59 forks source link

OCGV: Data does not line up with column headers #175

Closed ajansveld closed 1 year ago

ajansveld commented 2 years ago

Prerequisites

Steps to reproduce

As shown below, the alignment is off (seen on Windows and Linux):

Get-Process | Out-ConsoleGridView

Expected behavior

┌ Out-ConsoleGridView ─────────────────────────────────────────────────┐
│  Filter                                                              │
│                                                                      │
│    NPM(K) PM(M)    WS(M)    CPU(s) Id    SI ProcessName              │
│    ------ -----    -----    ------ --    -- -----------              │
│  ╴ 20     22.76    18.68    0.00   2692  0  Aot********              │
│  ╴ 24     10.24    28.57    0.05   1212  2  App*****************     │
│  ╴ 14     2.90     10.96    0.16   9556  2  Aut*******               │
│  ╴ 16     3.61     14.55    10.84  17424 2  Aut*******               │

Actual behavior

┌ Out-ConsoleGridView ─────────────────────────────────────────────────┐
│  Filter                                                              │
│                                                                      │
│      NPM(K) PM(M)    WS(M)    CPU(s) Id    SI ProcessName            │
│      ------ -----    -----    ------ --    -- -----------            │
│  ╴ 20     22.76    18.68    0.00   2692  0  Aot********              │
│  ╴ 24     10.24    28.57    0.05   1212  2  App*****************     │
│  ╴ 14     2.90     10.96    0.16   9556  2  Aut*******               │
│  ╴ 16     3.61     14.55    10.84  17424 2  Aut*******               │

Error details

No response

Environment data

Name                           Value
----                           -----
PSVersion                      7.2.6
PSEdition                      Core
GitCommitId                    7.2.6
OS                             Microsoft Windows 10.0.19044
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Version

0.7.2

Visuals

No response