-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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 dont work on a normal console window #1794
Comments
What console/terminal emulator are you using? On what OS? |
Windows, I guess fmt doesn't support windows console colors, I have to use SetConsoleTextAttribute in order to print colored text |
Sorry, I know this is an old thread. To get control sequences working in the Windows console, you will want to |
Should this work on a Windows 7 system ?
|
Color support is available starting from Windows 10: https://en.wikipedia.org/wiki/ANSI_escape_code#DOS,_OS/2,_and_Windows. |
Sorry for necroing again, but I can’t get that to work when I include FMT. When I don’t include FMT, it functions, but if I do I get issues like |
|
This was a combination of things randomly working and not working, and me being a complete oaf. |
fmt::print(fg(fmt::color::green) | fmt::emphasis::bold, "$> ");
example output :
�[1m�[38;2;000;128;000m$> �[0m27ec3180000 �[1m�[38;2;000;128;000m$> �[0mcurrent server version 0.1.0. �[1m�[38;2;000;128;000m$> �[0m1:FpK4]E-.4i->0.1.0 2
The text was updated successfully, but these errors were encountered: