libstd: Add 'xterm-256-color' to list of color-enabled terminals
This commit is contained in:
parent
471b4d6e58
commit
00be346089
1 changed files with 1 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue