diff options
| author | Marijn Haverbeke <[email protected]> | 2011-05-06 22:13:13 +0200 |
|---|---|---|
| committer | Marijn Haverbeke <[email protected]> | 2011-05-06 22:51:19 +0200 |
| commit | a3ec0b1f643d00b9418e4884bd7caa07bf052201 (patch) | |
| tree | 82000510ac9c9cf3f0c7cf4ae5f3c6b123b559cb /src/lib/Term.rs | |
| parent | Register new snapshots. (diff) | |
| download | rust-a3ec0b1f643d00b9418e4884bd7caa07bf052201.tar.xz rust-a3ec0b1f643d00b9418e4884bd7caa07bf052201.zip | |
Rename std modules to be camelcased
(Have fun mergining your stuff with this.)
Diffstat (limited to 'src/lib/Term.rs')
| -rw-r--r-- | src/lib/Term.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/Term.rs b/src/lib/Term.rs index 368fe217..fca04bff 100644 --- a/src/lib/Term.rs +++ b/src/lib/Term.rs @@ -21,20 +21,20 @@ const u8 color_bright_magenta = 13u8; const u8 color_bright_cyan = 14u8; const u8 color_bright_white = 15u8; -fn esc(io.buf_writer writer) { +fn esc(IO.buf_writer writer) { writer.write(vec(0x1bu8, '[' as u8)); } -fn reset(io.buf_writer writer) { +fn reset(IO.buf_writer writer) { esc(writer); writer.write(vec('0' as u8, 'm' as u8)); } fn color_supported() -> bool { - ret _str.eq(GenericOS.getenv("TERM"), "xterm-color"); + ret Str.eq(GenericOS.getenv("TERM"), "xterm-color"); } -fn set_color(io.buf_writer writer, u8 first_char, u8 color) { +fn set_color(IO.buf_writer writer, u8 first_char, u8 color) { assert (color < 16u8); esc(writer); @@ -45,11 +45,11 @@ fn set_color(io.buf_writer writer, u8 first_char, u8 color) { writer.write(vec(first_char, ('0' as u8) + color, 'm' as u8)); } -fn fg(io.buf_writer writer, u8 color) { +fn fg(IO.buf_writer writer, u8 color) { ret set_color(writer, '3' as u8, color); } -fn bg(io.buf_writer writer, u8 color) { +fn bg(IO.buf_writer writer, u8 color) { ret set_color(writer, '4' as u8, color); } |