Skip to content

Commit e70ff19

Browse files
committed
Add new control: manual screen cleaning
1 parent bb66fd7 commit e70ff19

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -504,6 +504,7 @@ impl Screensaver {
504504
Event::Key(event) => match event.code {
505505
KeyCode::Esc | KeyCode::Char('q') | KeyCode::Char('Q') => quit = true,
506506
KeyCode::Char(' ') => pause = !pause,
507+
KeyCode::Char('c') => self.canv.clear()?,
507508
_ => (),
508509
},
509510
Event::Resize(w, h) => {

0 commit comments

Comments
 (0)