adamabdelhamed / PowerArgs

The ultimate .NET Standard command line argument parser
MIT License
569 stars 56 forks source link

Scrolling and background issues on 4.0.0. Works on 3.6.0 #159

Closed madushans closed 1 year ago

madushans commented 1 year ago

Version 4.0.0 seems to have some issues with background color, scrolling and terminal window size.

running a CLI on version 4.0.0 looks as below, where once the available space on the window is exhausted, instead of scrolling down, it seems to cut off. Running the command again seems to overwrite the last line or so. Also the background color has some issues, where it doesnt blend with the transparency. (default Windows Terminal config)

image

running the CLI repeatedly without scrolling. image

Same code against PowerArgs v 3.6.0 looks as below. (it scrolls as expected, regardless of window size. I resized the window after running)

image


Windows 11 22H2 build 22621.1105 Windows Terminal Version: 1.15.3466.0

settings.json from Windows Terminal (don't remember changing anything here, but I may have long time ago) (Renamed to CSV coz github doesn't like attaching json for some reason.) settings.csv

Same behavior is observed in cmd as well.

4.0.0

image

3.6.0 image

adamabdelhamed commented 1 year ago

I'll be releasing a fix for the scrolling soon. I had another fix for the BG color issue, but unfortunately it doesn't seem to work. The issue is that when I read Console.BackgroundColor it doesn't reflect the actual color that is in Windows terminal. This might be because Windows terminal supports full RGB. The ConsoleString class within PowerArgs can also handle full RGB (when the terminal supports it), but I can't match the terminal background if I can't read it.

adamabdelhamed commented 1 year ago

Fixed in 4.0.1 (except the colors)