Skip to content

Commit 00be346

Browse files
committed
libstd: Add 'xterm-256-color' to list of color-enabled terminals
1 parent 471b4d6 commit 00be346

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libstd/term.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ Function: color_supported
6363
Returns true if the terminal supports color
6464
*/
6565
fn color_supported() -> bool {
66-
let supported_terms = ["xterm-color", "xterm", "screen-bce"];
66+
let supported_terms = ["xterm-color", "xterm", "screen-bce", "xterm-256color"];
6767
ret alt generic_os::getenv("TERM") {
6868
option::some(env) {
6969
for term: str in supported_terms {

0 commit comments

Comments
 (0)