]> git.lizzy.rs Git - rust.git/commitdiff
libstd: Add 'xterm-256-color' to list of color-enabled terminals
authorBrian Anderson <banderson@mozilla.com>
Sun, 18 Dec 2011 00:44:27 +0000 (16:44 -0800)
committerBrian Anderson <banderson@mozilla.com>
Sun, 18 Dec 2011 00:44:27 +0000 (16:44 -0800)
src/libstd/term.rs

index 124e73b75d7edad121fdf507edf385a88fa9f053..49966e9be602d20ae1e0b529001f5297f81cdc91 100644 (file)
@@ -63,7 +63,7 @@ fn reset(writer: io::buf_writer) {
 Returns true if the terminal supports color
 */
 fn color_supported() -> bool {
-    let supported_terms = ["xterm-color", "xterm", "screen-bce"];
+    let supported_terms = ["xterm-color", "xterm", "screen-bce", "xterm-256color"];
     ret alt generic_os::getenv("TERM") {
           option::some(env) {
             for term: str in supported_terms {