How can I print a variable with padded center alignment?
How can I print $myvar padded so that it is in the center of the terminal, and to either side are = to the edge of the screen?
How can I print $myvar padded so that it is in the center of the terminal, and to either side are = to the edge of the screen?
In people’s ‘.*rc‘ files I see online or in various code, I tend to see a lot of people who manually use ANSI escape sequences instead of using tput.
I am trying to run a bash script I have via cron, and I am getting the following error at the beginning of the execution:
The curs_set routine sets the cursor state to invisible,
normal, or very visible for visibility equal to 0, 1, or 2
respectively. If the terminal supports the visibility re-quested, the previous cursor state is returned; otherwise,
ERR is returned.