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 terminal coloring issues #3

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

Conversation

tastycode
Copy link

Here is what I was getting when I ran the initial amigo command.
screen shot 2013-10-31 at 6 25 50 pm

This is happening because the lib doesn't account for dark terminal backgrounds. Here is the result of the fix described in this PR.

screen shot 2013-10-31 at 6 26 39 pm

Couldn't figure out why amigo seemed to be broken. I saw nothing when executing "amigo <projectname>". After looking through the code I realized it was because it is coloring the prompts black and I had a dark themed terminal theme. This fix makes it work on all terminal types.
@becevka
Copy link
Owner

becevka commented Nov 2, 2013

Hi, thanks for contribution.

Actually the intention was to have the system texts in grey.
screen shot 2013-11-02 at 1 54 29 pm

But as I can see when grey color is main color in console, something went wrong.

Personally, I am not so happy with this inversion style and would ask you to try use the 'grey' color from colors lib with your terminal. So in fact replace console.log(text.inverse) to console.log(text.grey).

Thanks

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