[example: user_input] Assure the cursor responds immediatel when hitting backspace

This was discovered with the termion backend in alacritty on OSX.
pull/164/head^2
Sebastian Thiel 5 years ago committed by Florian Dehau
parent 8a9c76b003
commit 2dfe9c1663

@ -88,6 +88,8 @@ fn main() -> Result<(), failure::Error> {
"{}",
Goto(4 + app.input.width() as u16, 4)
)?;
// stdout is buffered, flush it to see the effect immediately when hitting backspace
io::stdout().flush().ok();
// Handle input
match events.next()? {

Loading…
Cancel
Save