(&self)
| 115 | } |
| 116 | |
| 117 | fn size_chars(&self) -> io::Result<CharsXY> { |
| 118 | let lines = get_env_var_as_u16("LINES").unwrap_or(DEFAULT_LINES); |
| 119 | let columns = get_env_var_as_u16("COLUMNS").unwrap_or(DEFAULT_COLUMNS); |
| 120 | Ok(CharsXY::new(columns, lines)) |
| 121 | } |
| 122 | |
| 123 | fn write(&mut self, text: &str) -> io::Result<()> { |
| 124 | let text = remove_control_chars(text); |
no test coverage detected