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 <839...@gmail.com>
---
 scripts/makepkg.sh.in |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
index 3d29d26..6a5cff8 100644
--- a/scripts/makepkg.sh.in
+++ b/scripts/makepkg.sh.in
@@ -1670,12 +1670,12 @@ if [[ -t 2 && ! $USE_COLOR = "n" && $(check_buildenv 
color) = "y" ]]; then
                YELLOW="${BOLD}$(tput setaf 3)"
        elif [[ $TERM =~  ^(dtterm|rxvt|screen|xterm) ]]; then
                # no terminfo, but don't fallback to ugly reverse text just yet
-               ALL_OFF="\033[1;0m"
-               BOLD="\033[1;1m"
-               BLUE="${BOLD}\033[1;34m"
-               GREEN="${BOLD}\033[1;32m"
-               RED="${BOLD}\033[1;31m"
-               YELLOW="${BOLD}\033[1;33m"
+               ALL_OFF="\e[1;0m"
+               BOLD="\e[1;1m"
+               BLUE="${BOLD}\e[1;34m"
+               GREEN="${BOLD}\e[1;32m"
+               RED="${BOLD}\e[1;31m"
+               YELLOW="${BOLD}\e[1;33m"
        elif tput me &>/dev/null; then
                # rely on termcap capabilities; no portable way of using color
                ALL_OFF="$(tput me)"
-- 
1.7.3.1


Reply via email to