Change color escape codes.

This commit is contained in:
Syahrial Agni Prasetya 2021-05-28 17:30:14 +07:00
parent 995947f185
commit 5d9ed8cdff
No known key found for this signature in database
GPG Key ID: 46F88749C8C79383
4 changed files with 16 additions and 16 deletions

View File

@ -3,10 +3,10 @@
. /etc/archbox.conf . /etc/archbox.conf
# Text colors/formatting # Text colors/formatting
red="\033[38;5;1" red='\033[1;31m'
green="\033[38;5;2" green='\033[1;32m'
bold="\033[1m" bold='\033[1m'
reset="\033[m" reset='\033[m'
err(){ err(){
printf "${red}${bold}%s${reset}\n" "==> $*" 1>&2 printf "${red}${bold}%s${reset}\n" "==> $*" 1>&2

View File

@ -3,10 +3,10 @@
. /etc/archbox.conf >/dev/null 2>&1 . /etc/archbox.conf >/dev/null 2>&1
# Text colors/formatting # Text colors/formatting
red="\033[38;5;1" red='\033[1;31m'
green="\033[38;5;2" green='\033[1;32m'
bold="\033[1m" bold='\033[1m'
reset="\033[m" reset='\033[m'
err(){ err(){
printf "${red}${bold}%s${reset}\n" "==> $*" 1>&2 printf "${red}${bold}%s${reset}\n" "==> $*" 1>&2

View File

@ -1,8 +1,8 @@
# Text colors/formatting # Text colors/formatting
red="\033[38;5;1" red='\033[1;31m'
green="\033[38;5;2" green='\033[1;32m'
bold="\033[1m" bold='\033[1m'
reset="\033[m" reset='\033[m'
err(){ err(){
printf "${red}${bold}%s${reset}\n" "==> $*" 1>&2 printf "${red}${bold}%s${reset}\n" "==> $*" 1>&2

View File

@ -3,10 +3,10 @@
. /etc/archbox.conf . /etc/archbox.conf
# Text colors/formatting # Text colors/formatting
red="\033[38;5;1" red='\033[1;31m'
green="\033[38;5;2" green='\033[1;32m'
bold="\033[1m" bold='\033[1m'
reset="\033[m" reset='\033[m'
err(){ err(){
printf "${red}${bold}%s${reset}\n" "==> $*" 1>&2 printf "${red}${bold}%s${reset}\n" "==> $*" 1>&2