Skip to content

Commit

Permalink
fix clear
Browse files Browse the repository at this point in the history
  • Loading branch information
sigmaSd committed Dec 3, 2019
1 parent bf192eb commit 5d18c05
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/irust/writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ impl IRust {

pub fn clear(&mut self) -> Result<(), IRustError> {
self.raw_terminal.clear(ClearType::All)?;
self.buffer.clear();
self.buffer.goto_start();
self.cursor.pos.starting_pos = (0, 0);
self.cursor.goto(4, 0);
Expand Down

0 comments on commit 5d18c05

Please sign in to comment.