summaryrefslogtreecommitdiffstats
path: root/scripts/library
diff options
context:
space:
mode:
authorWilliam Giokas <1007380@gmail.com>2013-03-04 09:42:34 +0100
committerAllan McRae <allan@archlinux.org>2013-03-08 08:04:40 +0100
commitf8ed8620d03e7e6fc58815bbee5b65c786fbc423 (patch)
treeab1b343dcf9d011217d915686064b46aafa0fd51 /scripts/library
parent5a67eee78c58475907a2128c46c08c137d41e4f9 (diff)
downloadpacman-f8ed8620d03e7e6fc58815bbee5b65c786fbc423.tar.gz
pacman-f8ed8620d03e7e6fc58815bbee5b65c786fbc423.tar.xz
contrib: Make pacdiff colors the same as makepkg
Added an `ask` message function that emulates pacman's appearance. Signed-off-by: William Giokas <1007380@gmail.com> Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'scripts/library')
-rw-r--r--scripts/library/output_format.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/library/output_format.sh b/scripts/library/output_format.sh
index 18f1f588..9f02c00b 100644
--- a/scripts/library/output_format.sh
+++ b/scripts/library/output_format.sh
@@ -16,6 +16,11 @@ msg2() {
printf "${BLUE} ->${ALL_OFF}${BOLD} ${mesg}${ALL_OFF}\n" "$@" >&1
}
+ask() {
+ local mesg=$1; shift
+ printf "${BLUE}::${ALL_OFF}${BOLD} ${mesg}${ALL_OFF}" "$@" >&1
+}
+
warning() {
local mesg=$1; shift
printf "${YELLOW}==> $(gettext "WARNING:")${ALL_OFF}${BOLD} ${mesg}${ALL_OFF}\n" "$@" >&2