Project

General

Profile

« Previous | Next » 

Revision 385a3a31

Added by Scott Ullrich over 15 years ago

Return color code, not echo

View differences:

etc/inc/util.inc
1074 1074
		$TERM=`/usr/bin/env | grep color`;
1075 1075
	$ESCAPE=chr(27);
1076 1076
	if($TERM) 
1077
		echo "{$ESCAPE}[{$color}";
1077
		return "{$ESCAPE}[{$color}";
1078 1078
}
1079 1079

  
1080 1080
?>

Also available in: Unified diff