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

Use colour codes that also works with OSX #4

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

Use colour codes that also works with OSX #4

wants to merge 4 commits into from

Conversation

vergissberlin
Copy link

Hi,

there is a problem with the colour codes on OS X. I get following output:

sleeping for 2 secs...                                                                                                                                                          [\e[1;32mDONE\e[0m]

My pull request fixed that.

Thank you!
André

@vergissberlin
Copy link
Author

Okay, I am very inspired of the possibilities, so I added also a timer function. :-)
Please give me feedback.

i=1
sp='\|/-'
delay=${SPINNER_DELAY:-0.15}
delay=${SPINNER_DELAY:-0.25}
counter=0
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I get this error with zsh

$ source fidget.sh

$ spinner_start sleep 1
_spinner:40: unrecognized modifier `i'

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gianpaj
Okay, but it's made for bash.

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.

2 participants