PowerShell/ConsoleGuiTools

Illegible output when run within Docker PowerShell Container

saldroubi opened this issue · 3 comments

Prerequisites

  • Write a descriptive title.
  • Make sure you are able to repro it on the latest version
  • Search the existing issues.

Steps to reproduce

I have tried different PowerShell Containers such as ubuntu and alphine but Out-ConsoleGridView does not produce a legible output. Is there a workaround for this? I want to run my application in a Docker PowerShell container but can't at the moment because it is using Out-ConsoleGridView.

Command to run within Docker contain PS terminal:

Get-process | Out-ConsoleGridView

Expected behavior

Same behavior I see when I run it in my Mac OS X terminal window.

Actual behavior

Not legible output.

Error details

No error.  Not a readable screen.

Environment data

Name                           Value
----                           -----
PSVersion                      7.2.9
PSEdition                      Core
GitCommitId                    7.2.9
OS                             Linux 4.19.121-linuxkit #1 SMP Tue Dec 1 17:50:32 UTC 2020
Platform                       Unix
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

out-consosuleGridView

tig commented

Please see if gui-cs/Terminal.Gui#2085 helps (export TERM=xterm-256color).

Can you test to see if Midnight Commander works properly in that environment?

Thank you. Setting export TERM=xterm-256color does help the problem. Now I able to see the list but when I select from the list the check mark is not showing. Usually there is a "-" and when you select it turns it to a check mark. This way you know which ones you want to process. In other words, I am supposed to see a check mark next to the item when I hit the space bar or use the mouse but it is not showing it on the screen. In reality is selecting it because of the selected ones as shown in attached screenshot. Is there a fix for this. Am I missing a font or something like that?

Here is the command:
Get-process | Out-ConsoleGridView -OutputMode Multiple -Title "Select one or more processes"

Out-ConsoleView_issue