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

Colors are not reset properly #2

Closed
bacongravy opened this issue Feb 5, 2018 · 0 comments
Closed

Colors are not reset properly #2

bacongravy opened this issue Feb 5, 2018 · 0 comments

Comments

@bacongravy
Copy link
Owner

bacongravy commented Feb 5, 2018

When running in a terminal configured with foreground color other than black, the current handing of colors is incorrect. The text color is set to black at the end of the script, even if that was not the original text color. On a black background, this makes the text invisible!

It looks like we need to use tput sgr0 to reset the color, instead of tput setaf 0, which sets it explicitly to black.

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

No branches or pull requests

1 participant