Skip to content

Commit

Permalink
reset color at exit
Browse files Browse the repository at this point in the history
  • Loading branch information
sigmaSd committed Oct 13, 2024
1 parent 7811fee commit f443688
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/printer/src/printer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ impl<W: std::io::Write> Printer<W> {

impl<W: std::io::Write> Drop for Printer<W> {
fn drop(&mut self) {
let _ = self.writer.raw.reset_color();
let _ = crossterm::terminal::disable_raw_mode();
}
}
Expand Down

0 comments on commit f443688

Please sign in to comment.