|
|
@ -11,8 +11,6 @@ use futures::{future::FutureExt, select, StreamExt};
|
|
|
|
use smol::Timer;
|
|
|
|
use smol::Timer;
|
|
|
|
// use futures_timer::Delay;
|
|
|
|
// use futures_timer::Delay;
|
|
|
|
|
|
|
|
|
|
|
|
use tui::{backend::CrosstermBackend, Terminal};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
use crossterm::{
|
|
|
|
use crossterm::{
|
|
|
|
cursor::position,
|
|
|
|
cursor::position,
|
|
|
|
event::{DisableMouseCapture, EnableMouseCapture, Event, EventStream, KeyCode},
|
|
|
|
event::{DisableMouseCapture, EnableMouseCapture, Event, EventStream, KeyCode},
|
|
|
@ -66,9 +64,6 @@ fn main() -> Result<()> {
|
|
|
|
let mut stdout = stdout();
|
|
|
|
let mut stdout = stdout();
|
|
|
|
execute!(stdout, EnableMouseCapture)?;
|
|
|
|
execute!(stdout, EnableMouseCapture)?;
|
|
|
|
|
|
|
|
|
|
|
|
let backend = CrosstermBackend::new(stdout);
|
|
|
|
|
|
|
|
let mut terminal = Terminal::new(backend)?;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
use std::thread;
|
|
|
|
use std::thread;
|
|
|
|
|
|
|
|
|
|
|
|
// Same number of threads as there are CPU cores.
|
|
|
|
// Same number of threads as there are CPU cores.
|
|
|
|