out.sh 328 B

1234567891011121314151617181920
  1. # output utilities
  2. tp() {
  3. tput "$@"
  4. }
  5. note() {
  6. echo "$(tp bold)$(tp setaf 11)OCCHIO: $(tp sgr0)$(tp setaf 11)$*$(tp sgr0)"
  7. }
  8. error() {
  9. echo "$(tp bold)$(tp setaf 1)$*$(tp sgr0)" >&2
  10. }
  11. progress() {
  12. echo "[$(tp setaf 3)DOING$(tp sgr0)] $(tp sgr0)$*"
  13. }
  14. ok() {
  15. echo "[$(tp bold)$(tp setaf 2)DONE$(tp sgr0)] $(tp sgr0)$*"
  16. }