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
3
DynamicSquid
DynamicSquid

Since repl.it uses a Linux compiler, yes, it is possible: https://gist.github.com/vratiu/9780109

for example, if you want black text: "\033[0;30mThis text will be black"

2 years ago
1
EpicGamer007
EpicGamer007

@DynamicSquid
, It's to bad it does not work on windows :(

2 years ago
2
Coder100
Coder100

try replacing \033 to x1b

@AbhayBhat

2 years ago