diff options
author | Blaž Hrastnik | 2020-06-01 08:42:28 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2020-06-01 08:42:28 +0000 |
commit | 613d06dfb0e5fe2fc05b94e5c651dfd10af23310 (patch) | |
tree | 74696d63909ffe05903870bfca19d9beabe0e621 /helix-term/src/line.rs | |
parent | 6905ff03c29c9fc020a6333adf9e9d5004c3f3c5 (diff) |
wip: importing to github
Diffstat (limited to 'helix-term/src/line.rs')
-rw-r--r-- | helix-term/src/line.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/helix-term/src/line.rs b/helix-term/src/line.rs index 58d4c9d8..7cbfab61 100644 --- a/helix-term/src/line.rs +++ b/helix-term/src/line.rs @@ -11,6 +11,8 @@ use futures::{future::FutureExt, select, StreamExt}; use smol::Timer; // use futures_timer::Delay; +use tui::{backend::CrosstermBackend, Terminal}; + use crossterm::{ cursor::position, event::{DisableMouseCapture, EnableMouseCapture, Event, EventStream, KeyCode}, @@ -64,6 +66,9 @@ fn main() -> Result<()> { let mut stdout = stdout(); execute!(stdout, EnableMouseCapture)?; + let backend = CrosstermBackend::new(stdout); + let mut terminal = Terminal::new(backend)?; + use std::thread; // Same number of threads as there are CPU cores. |