Skip to content
Sign upLog in
← Back to Community
Colored Text C++ LardBoi
Profile icon
LardBoi

https://repl.it/@LardBoi/Colored-Text-to-terminal-C

Basically there's a header file "colormod.h" and that has the color code directly to the terminal. and you use the Color namespace.

Voters
Profile icon
LucianoRetamozo
Profile icon
MuhammadMoeez25
Profile icon
NicholasDylan
Profile icon
Sebaq
Profile icon
DevinMedina
Profile icon
Someuser45
Profile icon
Jimena123
Profile icon
Correia19
Profile icon
ManuelAlbertoAl
Profile icon
JackTon
Comments
hotnewtop
Profile icon
nN34398Ff

Hmmm.... I tried it on here and it worked, but when I tried using it on my project, it said colormod.h doesn't exist.

Profile icon
SPQR

Hey, thanks chief! Wouldn't have known about this otherwise :)

Profile icon
LardBoi

@SPQR
No problem I figured maybe someone out there would find this useful. :)

Profile icon
samvader

Cool, I didn't know this was a thing! I've just been using Curses, which may be more robust but isn't quite as simple. I like it.

Profile icon
babbott1

I used your code a starting point to convert it to straight C ... didn't finish though...
https://repl.it/@babbott1/font-colors

Profile icon
JackTon

I like this. Is it okay if I fork and examine how it works?

Profile icon
LardBoi

@JustinWu
Go right ahead.