We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When you create a progressbar with pterm.DefaultProgressbar.WithWriter(os.Stderr) you expect all the output to go to stderr.
pterm.DefaultProgressbar.WithWriter(os.Stderr)
However, in this commit: bc8595a
cursor.Show() and cursor.Hide() was added, which always outputs control characters to stdout.
cursor.Show()
cursor.Hide()
This is an issue when you pipe the output to another command for example. You'll end up with �[?25l�[?25h at the beginning of the output.
�[?25l�[?25h
The text was updated successfully, but these errors were encountered:
This is somewhat related to #261. The cursor used is atomicgo.dev/cursor which is not capable of handling stderr currently.
atomicgo.dev/cursor
There is a PR atomicgo/cursor#7 open there which needs some more love to be merged probably
Sorry, something went wrong.
Hi, I have updated cursor to support custom writers for the area. This could now be worked on.
cursor
Use cursor.WithWriter to fix pterm#518
7eb8006
No branches or pull requests
When you create a progressbar with
pterm.DefaultProgressbar.WithWriter(os.Stderr)
you expect all the output to go to stderr.However, in this commit: bc8595a
cursor.Show()
andcursor.Hide()
was added, which always outputs control characters to stdout.This is an issue when you pipe the output to another command for example. You'll end up with
�[?25l�[?25h
at the beginning of the output.The text was updated successfully, but these errors were encountered: