Skip to content

Instantly share code, notes, and snippets.

@IT-Delinquent
Created August 6, 2021 09:58
Show Gist options
  • Select an option

  • Save IT-Delinquent/7fefd331bf5a823ca79b591f5aa90fe8 to your computer and use it in GitHub Desktop.

Select an option

Save IT-Delinquent/7fefd331bf5a823ca79b591f5aa90fe8 to your computer and use it in GitHub Desktop.
tputFormattingExamples.sh
#!/bin/bash
echo "
regular bold underline
$(tput setaf 1)Text $(tput bold)Text $(tput sgr0)$(tput setaf 1)$(tput smul)Text$(tput rmul)
$(tput setaf 2)Text $(tput bold)Text $(tput sgr0)$(tput setaf 2)$(tput smul)Text$(tput rmul)
$(tput setaf 3)Text $(tput bold)Text $(tput sgr0)$(tput setaf 3)$(tput smul)Text$(tput rmul)
$(tput setaf 4)Text $(tput bold)Text $(tput sgr0)$(tput setaf 4)$(tput smul)Text$(tput rmul)
$(tput setaf 5)Text $(tput bold)Text $(tput sgr0)$(tput setaf 5)$(tput smul)Text$(tput rmul)
$(tput setaf 6)Text $(tput bold)Text $(tput sgr0)$(tput setaf 6)$(tput smul)Text$(tput rmul)
$(tput setaf 7)Text $(tput bold)Text $(tput sgr0)$(tput setaf 7)$(tput smul)Text$(tput rmul)
"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment