Changed toml one more time.
This commit is contained in:
parent
231049c118
commit
b9ff7efa21
|
@ -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']
|
||||
|
||||
|
|
|
@ -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<B : tui::backend::Backend>(terminal : &mut Terminal<B>, app_state : &mut app::App, canvas_data : &CanvasData) -> error::Result<()> {
|
||||
pub fn draw_data<B : backend::Backend>(terminal : &mut Terminal<B>, 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);
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue