diff --git a/Cargo.toml b/Cargo.toml index b20c39a4..851ceb3d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -26,9 +26,8 @@ log = "0.4" sysinfo = "0.9.4" tokio = "0.2.0-alpha.4" -[dependencies.tui] +[dependencies.tui-temp-fork] version = "0.6.2" -git = "https://github.com/ClementTsang/tui-rs" default-features = false features = ['crossterm'] diff --git a/src/canvas.rs b/src/canvas.rs index 6cdf276e..1f0e2b5d 100644 --- a/src/canvas.rs +++ b/src/canvas.rs @@ -1,4 +1,5 @@ -use tui::{ +use tui_temp_fork::{ + backend, layout::{Constraint, Direction, Layout}, style::{Color, Modifier, Style}, widgets::{Axis, Block, Borders, Chart, Dataset, Marker, Row, Table, Widget}, @@ -28,7 +29,7 @@ pub struct CanvasData { pub cpu_data : Vec<(String, Vec<(f64, f64)>)>, } -pub fn draw_data(terminal : &mut Terminal, app_state : &mut app::App, canvas_data : &CanvasData) -> error::Result<()> { +pub fn draw_data(terminal : &mut Terminal, app_state : &mut app::App, canvas_data : &CanvasData) -> error::Result<()> { let border_style : Style = Style::default().fg(BORDER_STYLE_COLOUR); let highlighted_border_style : Style = Style::default().fg(HIGHLIGHTED_BORDER_STYLE_COLOUR); diff --git a/src/main.rs b/src/main.rs index 9e533c93..0747fbd2 100644 --- a/src/main.rs +++ b/src/main.rs @@ -9,7 +9,7 @@ extern crate failure; use crossterm::{input, AlternateScreen, InputEvent, KeyEvent, MouseButton, MouseEvent}; use std::{sync::mpsc, thread, time::Duration}; -use tui::{backend::CrosstermBackend, Terminal}; +use tui_temp_fork::{backend::CrosstermBackend, Terminal}; pub mod app; mod utils {