Skip to content

Commit

Permalink
Bugfix for ANSI escape for color display on Macs
Browse files Browse the repository at this point in the history
Signed-off-by: angela <33108490+angela-d@users.noreply.github.com>
  • Loading branch information
angela-d committed Sep 14, 2019
1 parent ff93362 commit 510cda5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions extract
Original file line number Diff line number Diff line change
Expand Up @@ -12,27 +12,27 @@ function cleanup() {
}

function bold() {
echo -e "\e[1m$1\e[0m"
echo -e "\033[1m$1\033[0m"
}

function green() {
echo -e "\e[32m$1\e[0m"
echo -e "\033[32m$1\033[0m"
}

function red() {
echo -e "\e[0;31m$1\e[0m"
echo -e "\033[0;31m$1\033[0m"
}

function yellow() {
echo -e "$1 \e[93m$2\e[0m"
echo -e "$1 \033[93m$2\033[0m"
}

function brown() {
echo -e "\e[0;33m$1\e[0m"
echo -e "\033[0;33m$1\033[0m"
}

function purple() {
echo -e "\e[0;35m$1\e[0m"
echo -e "\033[0;35m$1\033[0m"
}

green "\n\n\t\t ONEPLUS FIRMWARE EXTRACTOR\n\tAuthor: Angela https://github.com/angela-d/firmware_oneplus\n\tOriginally forked from Koenkk https://github.com/Koenkk\n\n"
Expand Down

0 comments on commit 510cda5

Please # to comment.