Skip to content

Render or Pause or FixedInBottom = true causes unhandled exception on Linux #1

@mahdighorbanpourptw

Description

@mahdighorbanpourptw

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()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions