iniquitybbs / iniquity

A re-imagining of the iconic BBS software.
http://iniquitybbs.com
MIT License
53 stars 5 forks source link

Add the ability to apply ANSI colors to strings #19

Closed ispyhumanfly closed 3 years ago

ispyhumanfly commented 4 years ago

This is really about extending the String prototype to allow for ANSI color sequences. Basically something like message.color("background red")

A lot of my work is deriving from some ideas from this article: https://www.lihaoyi.com/post/BuildyourownCommandLinewithANSIescapecodes.html#colors

ispyhumanfly commented 3 years ago

Honestly this implementation is good. But Synchronet does provide some excellent built in functionality here too. I may switch over to that.

ispyhumanfly commented 3 years ago

I'm going to consider this resolved. However, I do feel that using synchrony's built in color functions is the best course in the future. I'll create another ticket I think.