From 6b0c28039d051af85f009cb2cbc4c77a3d93bdb0 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Mon, 22 Oct 2007 16:28:38 +0000 Subject: When getting an ecolor, we should check that stdout is a tty --- src/libeinfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libeinfo.c b/src/libeinfo.c index 57ec9e68..8c2f9523 100644 --- a/src/libeinfo.c +++ b/src/libeinfo.c @@ -290,7 +290,7 @@ hidden_def(ecolor) const char *ecolor (einfo_color_t color) { - return (_ecolor (NULL, color)); + return (_ecolor (stdout, color)); } #define EINFOVN(_file, _color) \ -- cgit v1.2.3