From f8ed8620d03e7e6fc58815bbee5b65c786fbc423 Mon Sep 17 00:00:00 2001
From: William Giokas <1007380@gmail.com>
Date: Mon, 4 Mar 2013 02:42:34 -0600
Subject: 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>
---
 scripts/library/output_format.sh | 5 +++++
 1 file changed, 5 insertions(+)

(limited to 'scripts/library')

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
-- 
cgit v1.2.3-70-g09d2