libstd: Add 'xterm-256-color' to list of color-enabled terminals

This commit is contained in:
Brian Anderson 2011-12-17 16:44:27 -08:00
parent 471b4d6e58
commit 00be346089

View file

@ -63,7 +63,7 @@ Function: color_supported
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 {