aboutsummaryrefslogtreecommitdiff
path: root/src/lib/Term.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/Term.rs')
-rw-r--r--src/lib/Term.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/Term.rs b/src/lib/Term.rs
index fca04bff..b07dcc0c 100644
--- a/src/lib/Term.rs
+++ b/src/lib/Term.rs
@@ -31,7 +31,7 @@ fn reset(IO.buf_writer writer) {
}
fn color_supported() -> bool {
- ret Str.eq(GenericOS.getenv("TERM"), "xterm-color");
+ ret GenericOS.getenv("TERM") == Option.some[str]("xterm-color");
}
fn set_color(IO.buf_writer writer, u8 first_char, u8 color) {