Skip to content

Commit

Permalink
use tput for colors instead of escape codes
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielFGray committed Oct 25, 2016
1 parent 9a674a8 commit f858e26
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tekup
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit f858e26

Please sign in to comment.