Share your repls and programming experiences

← Back to all posts
Colored Text C++ LardBoi
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
Sebaq
DevinMedina
DREWtheman
Someuser45
Jimena123
Correia19
ManuelAlbertoAl
JackTon
mo7ammed260
SPQR
Comments
hotnewtop
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.

SPQR

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

LardBoi

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

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.

babbott1

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

JackTon

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

LardBoi

@JustinWu Go right ahead.