Using ANSI Escape Codes to Color Your Terminal Output

preview_player
Показать описание
Hey everyone this is short tutorial showing you how you can utilize ANSI escape codes to color the output of your new terminal application! If you find this video useful please like and subscribe!

Below is list of foreground codes:
\u001b[30m Black
\u001b[31m Red
\u001b[32m Green
\u001b[33m Yellow
\u001b[34m Blue
\u001b[35m Magenta
\u001b[36m Cyan
\u001b[37m White
\u001b[0m Reset

And a list of background codes:
\u001b[40m Black
\u001b[41m Red
\u001b[42m Green
\u001b[43m Yellow
\u001b[44m Blue
\u001b[45m Magenta
\u001b[46m Cyan
\u001b[47m White
Рекомендации по теме
Комментарии
Автор

1996 I had a Dialup Super BBS with a non standard 16800 baud modem. Now you can access BBS's over telnet. ANSI art is a special form of expression that will never die.

WebsiteHelper
Автор

Making an application right now, needed some intro about this topic, thank you.

kenedyhenrique
Автор

Great information! I finally learned how to do this!

alomac
Автор

Really good video! Thanks for the great information 😊

JamyGolden
Автор

thank you so much
can you please make a video to show us how to use the ANSI escape sequences to move the cursor 🙏

massyliasarahaityahia
Автор

Nice video
I've been fascinated by this feature.
There are 2 more ways to colorize the text output
Xterm which has 256 colors available raging from 0 to 255 and True color (24bits if I'm not wrong) where RGB values can give any kind of coolor to the output terminal text
Not sure if any terminal supports this, I'm still experimenting with the ansi escape codes. Atm I want to make some library in C to handle Ansi escape codes

piano_arts_