Skip to content
Sign UpLog In
This post is read-only. Explore Repls and connect with other creators on Community.View Community
The info in this post might be out of date, check out our docs instead. View docs
7

Colored Text in c++

SelenaYang1
SelenaYang1

How do you make colored text in c++?
is it possible?

Thanks

Selena

2 years ago
You are viewing a single comment. View All
2
Coder100
Coder100

Hello. You can use ANSI escape codes (the escape code is \x1b):

cout << "\x1b[31mRed Text\x1b[0mNormal text";

View all of them here

2 years ago
1
SelenaYang1
SelenaYang1

@Coder100
Thanks so much!

2 years ago