diff options
| author | Graydon Hoare <[email protected]> | 2011-05-06 16:30:39 -0700 |
|---|---|---|
| committer | Graydon Hoare <[email protected]> | 2011-05-06 16:30:39 -0700 |
| commit | 0f23bbac0104fe4c51923eb09b7a98c3e6239571 (patch) | |
| tree | 0eab6391a37b71c753b5515358285163e93f76f2 /src/lib/Term.rs | |
| parent | Put out burning linux tinderbox. (diff) | |
| download | rust-0f23bbac0104fe4c51923eb09b7a98c3e6239571.tar.xz rust-0f23bbac0104fe4c51923eb09b7a98c3e6239571.zip | |
Fix GenericOS.getenv returning a raw str, return an Option.t[str] instead.
Diffstat (limited to 'src/lib/Term.rs')
| -rw-r--r-- | src/lib/Term.rs | 2 |
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) { |