Skip to content

Instantly share code, notes, and snippets.

@lktslionel
Last active October 17, 2016 11:17
Show Gist options
  • Save lktslionel/a771fe0ecf3221b41b5b7be054d891ea to your computer and use it in GitHub Desktop.
Save lktslionel/a771fe0ecf3221b41b5b7be054d891ea to your computer and use it in GitHub Desktop.
Hands on with the tput command
# More on tput : http://www.tldp.org/HOWTO/Bash-Prompt-HOWTO/x405.html
# Print text $t at the end of the current line
tput cuf $(( $(tput cols) - ${#t} )) 12 && printf "%s" $t
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment