diff --git a/examples/interactive-demo/src/test/event.rs b/examples/interactive-demo/src/test/event.rs index 9cf7b71..d7d879b 100644 --- a/examples/interactive-demo/src/test/event.rs +++ b/examples/interactive-demo/src/test/event.rs @@ -2,7 +2,7 @@ use crossterm::{ cursor::position, - event::{read, EnableMouseCapture, Event, KeyCode}, + event::{read, DisableMouseCapture, EnableMouseCapture, Event, KeyCode}, execute, Result, }; use std::io::Write; @@ -28,6 +28,8 @@ where } } + execute!(w, DisableMouseCapture)?; + Ok(()) }