Share your repls and programming experiences

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

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: https://Terminal-Colours.tristanbeedell.repl.run
(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: https://repl.it/@minermaniac447/ANSI-Color-Code-Generator

Comments
hotnewtop
plscodeinjava (390)

this thing helped me sooo much
ur awesome :)

RahulChoubey1 (186)

you can also make italic, bold, etc. with ANSI