/[ascend]/trunk/base/generic/utilities/ascPrint.c
ViewVC logotype

Diff of /trunk/base/generic/utilities/ascPrint.c

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

revision 587 by johnpye, Thu May 11 00:47:54 2006 UTC revision 588 by johnpye, Thu May 11 02:06:46 2006 UTC
# Line 249  int color_on(FILE *f, const char *colorc Line 249  int color_on(FILE *f, const char *colorc
249      if(!use_xterm_color){      if(!use_xterm_color){
250          term = getenv("TERM");          term = getenv("TERM");
251          if(term!=NULL){          if(term!=NULL){
252              if(strcmp(term,"msys")==0 || strcmp(term,"xterm")){              if(strcmp(term,"msys")==0 || strcmp(term,"xterm")==0){
253                  use_xterm_color=1;                  use_xterm_color=1;
254              }else{              }else{
255                  use_xterm_color=-1;                  use_xterm_color=-1;
256              }              }
             free(term);  
257          }else{          }else{
258              use_xterm_color=-1;              use_xterm_color=-1;
259          }          }

Legend:
Removed from v.587  
changed lines
  Added in v.588

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22