/[baselayout]/trunk/src/libeinfo.c
Gentoo

Diff of /trunk/src/libeinfo.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 2733 Revision 2734
147static bool colour_terminal (void) 147static bool colour_terminal (void)
148{ 148{
149 static int in_colour = -1; 149 static int in_colour = -1;
150 int i = 0; 150 int i = 0;
151 151
152 if (is_env ("RC_NOCOLOR", "yes"))
153 return (false);
154
152 if (in_colour == 0) 155 if (in_colour == 0)
153 return (false); 156 return (false);
154 if (in_colour == 1) 157 if (in_colour == 1)
155 return (true); 158 return (true);
156
157 if (is_env ("RC_NOCOLOR", "yes"))
158 return (false);
159 159
160 if (! term) { 160 if (! term) {
161 term = getenv ("TERM"); 161 term = getenv ("TERM");
162 if (! term) 162 if (! term)
163 return (false); 163 return (false);

Legend:
Removed from v.2733  
changed lines
  Added in v.2734

  ViewVC Help
Powered by ViewVC 1.1.20