Hi,
I have a console program written in net6.0 and should run on Linux, which I am using WSL2 and Ubuntu 22.04 for this purpose. I need to write on the cosole just like to your example. However, I also need to intract with user sometimes and get inputs. Therfore, I would like to stop the progress bar and write a message and ask for input. In the following cases I get an exception.
- By initializing the progress bar with FixedInBottom = true
- By calling the Pause
- By calling the Render
here is the exception:
Unhandled exception. System.PlatformNotSupportedException: Operation is not supported on this platform.
at System.ConsolePal.get_CursorVisible()
at iluvadev.ConsoleProgressBar.ProgressBar.Render()
at iluvadev.ConsoleProgressBar.ProgressBar.Pause()
Hi,
I have a console program written in net6.0 and should run on Linux, which I am using WSL2 and Ubuntu 22.04 for this purpose. I need to write on the cosole just like to your example. However, I also need to intract with user sometimes and get inputs. Therfore, I would like to stop the progress bar and write a message and ask for input. In the following cases I get an exception.
here is the exception:
Unhandled exception. System.PlatformNotSupportedException: Operation is not supported on this platform.
at System.ConsolePal.get_CursorVisible()
at iluvadev.ConsoleProgressBar.ProgressBar.Render()
at iluvadev.ConsoleProgressBar.ProgressBar.Pause()