mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-29 12:36:35 +03:00
libstd: Long lines
This commit is contained in:
+2
-1
@@ -63,7 +63,8 @@ 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", "xterm-256color"];
|
||||
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 {
|
||||
|
||||
Reference in New Issue
Block a user