makepkg: use portable escape sequence for terminal escapes
The escape string isn't necesarily \033; it's determined by what the particular termcap/info entry for that terminal contains. Bash uses ncurses functions to expand \e to the _correct_ terminal escape. Signed-off-by: Carlos Diaz <839273@gmail.com> Signed-off-by: Allan McRae <allan@archlinux.org> Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
970ffbb4c7
commit
330951200c
1 changed files with 6 additions and 6 deletions
|
@ -1669,12 +1669,12 @@ if [[ -t 2 && ! $USE_COLOR = "n" && $(check_buildenv color) = "y" ]]; then
|
||||||
RED="${BOLD}$(tput setaf 1)"
|
RED="${BOLD}$(tput setaf 1)"
|
||||||
YELLOW="${BOLD}$(tput setaf 3)"
|
YELLOW="${BOLD}$(tput setaf 3)"
|
||||||
else
|
else
|
||||||
ALL_OFF="\033[1;0m"
|
ALL_OFF="\e[1;0m"
|
||||||
BOLD="\033[1;1m"
|
BOLD="\e[1;1m"
|
||||||
BLUE="${BOLD}\033[1;34m"
|
BLUE="${BOLD}\e[1;34m"
|
||||||
GREEN="${BOLD}\033[1;32m"
|
GREEN="${BOLD}\e[1;32m"
|
||||||
RED="${BOLD}\033[1;31m"
|
RED="${BOLD}\e[1;31m"
|
||||||
YELLOW="${BOLD}\033[1;33m"
|
YELLOW="${BOLD}\e[1;33m"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
readonly ALL_OFF BOLD BLUE GREEN RED YELLOW
|
readonly ALL_OFF BOLD BLUE GREEN RED YELLOW
|
||||||
|
|
Loading…
Add table
Reference in a new issue