When getting an ecolor, we should check that stdout is a tty

This commit is contained in:
Roy Marples 2007-10-22 16:28:38 +00:00
parent 33aa2a0745
commit 6b0c28039d

View File

@ -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) \