diff options
Diffstat (limited to 'src/lib/termivec.rs')
| -rw-r--r-- | src/lib/termivec.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/termivec.rs b/src/lib/termivec.rs index 29477ec925f..4d635e780b2 100644 --- a/src/lib/termivec.rs +++ b/src/lib/termivec.rs @@ -40,9 +40,9 @@ const color_bright_cyan: u8 = 14u8; const color_bright_white: u8 = 15u8; -fn esc(writer: ioivec::buf_writer) { writer.write(~[0x1bu8, '[' as u8]); } +fn esc(writer: io::buf_writer) { writer.write(~[0x1bu8, '[' as u8]); } -fn reset(writer: ioivec::buf_writer) { +fn reset(writer: io::buf_writer) { esc(writer); writer.write(~['0' as u8, 'm' as u8]); } @@ -60,18 +60,18 @@ fn color_supported() -> bool { }; } -fn set_color(writer: ioivec::buf_writer, first_char: u8, color: u8) { +fn set_color(writer: io::buf_writer, first_char: u8, color: u8) { assert (color < 16u8); esc(writer); if color >= 8u8 { writer.write(~['1' as u8, ';' as u8]); color -= 8u8; } writer.write(~[first_char, ('0' as u8) + color, 'm' as u8]); } -fn fg(writer: ioivec::buf_writer, color: u8) { +fn fg(writer: io::buf_writer, color: u8) { ret set_color(writer, '3' as u8, color); } -fn bg(writer: ioivec::buf_writer, color: u8) { +fn bg(writer: io::buf_writer, color: u8) { ret set_color(writer, '4' as u8, color); } // export fg; |
