aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2010-12-08 01:16:01 +0000
committerMike Frysinger <vapier@gentoo.org>2010-12-08 01:16:01 +0000
commit4f205d1636b75df36cd24e8d85a51c0254d0df42 (patch)
tree9671658237e4ecb39f83880bfca28c10732af82e /paxinc.h
parentchange to simpler const argv0 string (diff)
downloadpax-utils-4f205d1636b75df36cd24e8d85a51c0254d0df42.tar.gz
pax-utils-4f205d1636b75df36cd24e8d85a51c0254d0df42.tar.bz2
pax-utils-4f205d1636b75df36cd24e8d85a51c0254d0df42.zip
add a -C/--nocolor option and respect env $NOCOLOR #332289
Diffstat (limited to 'paxinc.h')
-rw-r--r--paxinc.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/paxinc.h b/paxinc.h
index b054f15..62c9900 100644
--- a/paxinc.h
+++ b/paxinc.h
@@ -1,7 +1,7 @@
/*
* Copyright 2005-2007 Gentoo Foundation
* Distributed under the terms of the GNU General Public License v2
- * $Header: /var/cvsroot/gentoo-projects/pax-utils/paxinc.h,v 1.15 2010/12/08 00:54:40 vapier Exp $
+ * $Header: /var/cvsroot/gentoo-projects/pax-utils/paxinc.h,v 1.16 2010/12/08 01:16:01 vapier Exp $
*
* Copyright 2005-2007 Ned Ludd - <solar@gentoo.org>
* Copyright 2005-2007 Mike Frysinger - <vapier@gentoo.org>
@@ -92,11 +92,8 @@ const char *strfileperms(const char *fname);
} while (0)
/* helper functions for showing errors */
-#define color 1
-#define COLOR(c,b) (color ? "\e[" c ";" b "m" : "")
-#define NORM COLOR("00", "00")
-#define RED COLOR("31", "01")
-#define YELLOW COLOR("33", "01")
+extern const char *NORM, *RED, *YELLOW;
+void color_init(bool disable);
/* constant pointer to a constant buffer ... each program needs to set this */
extern const char argv0[];