From f858e26186dbc0e556a7efe408acd3a23d624e96 Mon Sep 17 00:00:00 2001 From: DanielFGray Date: Mon, 24 Oct 2016 19:29:38 -0500 Subject: [PATCH] use tput for colors instead of escape codes --- tekup | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tekup b/tekup index 97feba9..23f24b9 100755 --- a/tekup +++ b/tekup @@ -1,11 +1,10 @@ #!/usr/bin/env bash -declare -r esc=$'\033' -declare -r c_reset="${esc}[0m" -declare -r c_red="${esc}[31m" -declare -r c_blue="${esc}[34m" declare verbose=0 declare processes=1 +declare -r c_red=$(tput setaf 1) +declare -r c_blue=$(tput setaf 4) +declare -r c_reset=$(tput sgr0) info() { printf "${c_blue}%s${c_reset}\n" "$1" >&2