2004/01/03 04:21:15
authorbrian <brian@xwt.org>
Fri, 30 Jan 2004 07:44:03 +0000 (07:44 +0000)
committerbrian <brian@xwt.org>
Fri, 30 Jan 2004 07:44:03 +0000 (07:44 +0000)
darcs-hash:20040130074403-aa32f-32e538e2ff0fdfec9c9f8d04b3eeb86df65c1041.gz

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();
 
             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) {
             try {
                 build = (String)Class.forName("org.xwt.Build").getField("build").get(null);
             } catch (ClassNotFoundException cnfe) {