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: asinit support --noColors opinion #2817

Merged
merged 1 commit into from Jan 30, 2024

Conversation

HerrCai0907
Copy link
Member

Detection terminal background technically is possible, but I don't want to introduce deps to resolve UI/UX issue.
like asc did, this PR provides --noColors opinion in asinit to disable colorful output .

Fixes #2816.

Copy link
Member

@CountBleck CountBleck left a comment

Choose a reason for hiding this comment

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

I wonder, for #2816, if we could also change the color from white to something else (gray maybe).

@HerrCai0907
Copy link
Member Author

I wonder, for #2816, if we could also change the color from white to something else (gray maybe).

Some terminal only support basic 8 colors, including black, red, green, yellow, blue, magenta, cyan, while.
We should avoid to use black, while, blue since some terminal will use those three color as background.
Red, green, yellow should be used for error, warning, success.
Then we still have cyan and magenta to select.

@HerrCai0907 HerrCai0907 merged commit 4655745 into AssemblyScript:main Jan 30, 2024
13 checks passed
@HerrCai0907 HerrCai0907 deleted the support-nocolor-mode branch January 30, 2024 01:37
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.

npx asinit .
3 participants