Skip to content

Commit

Permalink
add: clear_current_line
Browse files Browse the repository at this point in the history
  • Loading branch information
ynqa committed Apr 5, 2024
1 parent f919f06 commit e53d32f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/engine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ impl<W: Write> Engine<W> {
queue!(self.out, Clear(ClearType::FromCursorDown)).map_err(Error::from)
}

pub fn clear_current_line(&mut self) -> Result {
queue!(self.out, Clear(ClearType::CurrentLine)).map_err(Error::from)
}

/// Writes a string to the terminal.
///
/// # Arguments
Expand Down

0 comments on commit e53d32f

Please sign in to comment.