Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
lilyball
on Sept 14, 2024
|
parent
|
context
|
favorite
| on:
Techniques I use to create a great user experience...
If you use tput a lot it's also worth caching the output, because invoking it for every single color change and reset can really add up. If you know you're going to use a bunch of colors up front you can just stuff them into vars
RED=$(tput setaf 1) GREEN=$(tput setaf 2) RESET=$(tput sgr0)
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: