0

I have the following bash print statement which I want to colour blue.

local -r sgr="$( tput sgr0 )"
local -r wht="$( tput bold; tput setaf 15 )"
local -r blu="$( tput bold; tput setaf 39 )"

printf ' \u2263  %-*s%*s  \u2263\n'  "$cl" "${1:0:cl}"  "$cr" "${2:0:cr}"
Vera
  • 1,173
  • 4
  • 17

0 Answers0