Commit 462d4c59 authored by Dylan Araps's avatar Dylan Araps

prin: Fix bold not working, Add prin tests to travis

parent 00f22df3
......@@ -2348,13 +2348,10 @@ info() {
# Prin {{{
prin() {
string="$1${2:+: $2}"
string="${1//$'\033[0m'}${2:+: $2}"
# If $2 doesn't exist we format $1 as info
if [ -z "$2" ]; then
local subtitle_color="$info_color"
bold=
fi
[ -z "$2" ] && local subtitle_color="$info_color"
# Format the output
string="${string/:/${reset}${colon_color}:${info_color}}"
......@@ -3195,6 +3192,12 @@ getargs() {
done
info linebreak
prin "PRIN TEST" "$(color 1)1$(color 2)2$(color 3)3"
prin "SUBTITLE"
prin "$(color 5)SUBTITLE2"
info linebreak
info cols
info linebreak
printf "%b%s" "\033[$(tput lines)H"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment