Last active
October 17, 2016 11:17
-
-
Save lktslionel/a771fe0ecf3221b41b5b7be054d891ea to your computer and use it in GitHub Desktop.
Hands on with the tput command
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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