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: Color changes and terminal becomes unreadable #150

Closed saldroubi closed 2 years ago

saldroubi commented 2 years ago

I have this code basically in a loop so user can select an option, it gets performed and then menu appears again so he can pick another menu option to perform.

$result = $menu | Out-ConsoleGridView -OutputMode Single -Title "Make a selection "

However, the color changes of background and foreground which makes the menu almost impossible to read. Can this be fixed or is there a way to set the colors before calling Out-ConsoleGridView every time?

Thank you

tig commented 2 years ago

I've tried to repro this and can't quite figure out what you mean.

Could you perhaps post more code with a full example?

What terminal / OS are you using?

Thanks.

tig commented 2 years ago

@andschwa would you please edit this issue to previx the title with "OCGV: "? Thanks

tig commented 2 years ago

This is no longer repo (or was fixed in #166).