Follow

random thought... ANSI color codes are a PITA. Hex colors are pretty universal at this point. I'm wondering if there wouldn't be value in a wee executable that took in something like "{{;#000000}}white on black{{/#FFFFFF;#000000}}" and returned "\e[37;40mwhite on black\e[0m" Or maybe '<ansi-style color="" background-color="#000000" weight="bold">bold white on black</ansi-style>'

Anyway. some easy template that converted to escape codes.

I already did like half of the work when i made oho except it's ANSI->HTML... I wonder how hard it would be to reverse that pipeline. 🤔

Sign in to participate in the conversation
Connectified

Friendly geekery and random thoughts. Not open to the general public.