2004/01/03 04:21:15
[org.ibex.core.git] / src / org / xwt / Platform.java
index 2ce88b1..e400c5e 100644 (file)
@@ -61,6 +61,9 @@ public abstract class Platform {
             if (platform_class != null)
                 Class.forName("org.xwt.plat." + platform_class).newInstance();
 
+            String term = Platform.getEnv("TERM");
+            Log.color = term != null && term.length() != 0 && !term.equals("cygwin");
+            
             try {
                 build = (String)Class.forName("org.xwt.Build").getField("build").get(null);
             } catch (ClassNotFoundException cnfe) {