Clear screen-
()
| 159 | |
| 160 | /// Clear screen- |
| 161 | pub fn clear_screen() { |
| 162 | // iterate all rows and clear them all |
| 163 | for i in 0..BUFFER_HEIGHT { |
| 164 | WRITER.lock().clear_row(i); |
| 165 | } |
| 166 | |
| 167 | // reset the row position |
| 168 | WRITER.lock().row_positon = 0; |
| 169 | } |
| 170 | |
| 171 | impl fmt::Write for Writer { |
| 172 | fn write_str(&mut self, s: &str) -> ::core::fmt::Result { |