Closed kurtlawrence closed 4 years ago
The offending code block is xterm::event::poll(std::time::Duration::from_millis(0))
.
Removing the polling code and just using the read()
method will work on windows, but will not work on linux (at least through wsl). Seems to freeze up the interface.
if xterm::event::read()
.ok()
.and_then(|ev| tx.send(ev).ok())
.is_none()
{
break;
}
Possibly related to the upgrade to crossterm 0.14, constant CPU usage is being seen.