Share your repls and programming experiences

← Back to all posts
ANSI Color Codes
minermaniac447 (279)

Hey, I was working on a project that needed colored output and figured this'd be something that other people could use. This doesn't support anything except for foreground (text) and background colors. To get a list of the color codes, go here:
(BTW, the second thing printed is the end code. You must put this after the text you want colored to make it return to normal.)

Link for thing in case it breaks again: