Skip to content
New issue

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

Fix output in corner cases #41

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

nyancient
Copy link

@nyancient nyancient commented Aug 25, 2023

This PR contains two separate bugfixes:

  1. beep shouldn't be written to stdout when redirected, and
  2. always erase the spinner on exit.

(1) is self-explanatory, but (2) might require some background. Currently, the spinner character is left on screen after the spinner exits if the next character written to stdout is a control character (newline, tab, etc.), but is erased if the next character written is printable. This inconsistent behavior looks like a bug to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant