setaf() {
  fg="$1"
  shift
  printf '%s\n' "$*" | while IFS= read -r line; do
    tput setaf "${fg}"
    printf '%s' "${line}"
    tput sgr0
    printf '\n'
  done
}
