I've been a professional C, Perl, PHP and Python developer.
I'm an ex-sysadmin from the late 20th century.
These days I do more Javascript and CSS and whatnot, and promote UX and accessibility.
Using escape codes directly is cool, but I'm a fan of using tput like this:
# SET Attribute Foreground <colour 123>kindalightblue=$(tput setaf 123)
There are a lot of handy things tput can do, and though the capabilities vary with your terminal, and though it's not completely portable either, you get all the colours your terminal can show.
Using escape codes directly is cool, but I'm a fan of using
tput
like this:There are a lot of handy things tput can do, and though the capabilities vary with your terminal, and though it's not completely portable either, you get all the colours your terminal can show.
I haven't heard about
tput
before. I'll definitely check it out.EDIT: Just took a look. It's great. Thanks for the tip 🚀.