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

ANSI Color Code Support #107

Open
RenaKunisaki opened this issue Jan 18, 2021 · 1 comment
Open

ANSI Color Code Support #107

RenaKunisaki opened this issue Jan 18, 2021 · 1 comment

Comments

@RenaKunisaki
Copy link

It seems like the console doesn't support colors (unless I'm just missing how to enable them). eg:

printf("\x1B[38;5;14mI'm cyan\n");
printf("\x1B[1;14mI'm also cyan\n");

Both produce white. The same is true of other color codes.

@Pokechu22
Copy link

3-bit escape codes work (implemented here). For instance printf("\x1b[30;0m\x1b[47;1m"); causes it to print black text on a white background.

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

2 participants