mirror of
https://github.com/alemidev/scope-tui.git
synced 2024-11-23 14:14:48 +01:00
chore: replaced tui-rs with ratatui
This commit is contained in:
parent
37af6d9fc4
commit
1b67bfbf75
7 changed files with 7 additions and 7 deletions
|
@ -12,7 +12,7 @@ readme = "README.md"
|
|||
|
||||
|
||||
[dependencies]
|
||||
tui = "0.19"
|
||||
ratatui = { version = "0.23.0", features = ["all-widgets"] }
|
||||
crossterm = "0.25"
|
||||
libpulse-binding = "2.0"
|
||||
libpulse-simple-binding = "2.25"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
|
||||
use std::{io, time::{Duration, Instant}, ops::Range};
|
||||
use tui::{
|
||||
use ratatui::{
|
||||
style::Color, widgets::{Table, Row, Cell}, symbols::Marker,
|
||||
backend::Backend,
|
||||
widgets::Chart,
|
||||
|
|
|
@ -3,7 +3,7 @@ pub mod vectorscope;
|
|||
pub mod spectroscope;
|
||||
|
||||
use crossterm::event::Event;
|
||||
use tui::{widgets::{Dataset, Axis, GraphType}, style::{Style, Color}, symbols::Marker};
|
||||
use ratatui::{widgets::{Dataset, Axis, GraphType}, style::{Style, Color}, symbols::Marker};
|
||||
|
||||
pub enum Dimension {
|
||||
X, Y
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
use crossterm::event::{Event, KeyModifiers, KeyCode};
|
||||
use tui::{widgets::{Axis, GraphType}, style::Style, text::Span};
|
||||
use ratatui::{widgets::{Axis, GraphType}, style::Style, text::Span};
|
||||
|
||||
use crate::app::update_value_f;
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
use tui::{widgets::{Axis, GraphType}, style::Style, text::Span};
|
||||
use ratatui::{widgets::{Axis, GraphType}, style::Style, text::Span};
|
||||
|
||||
use super::{DisplayMode, GraphConfig, DataSet, Dimension};
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
use tui::{widgets::{Axis, GraphType}, style::Style, text::Span};
|
||||
use ratatui::{widgets::{Axis, GraphType}, style::Style, text::Span};
|
||||
|
||||
use super::{DisplayMode, GraphConfig, DataSet, Dimension};
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ mod display;
|
|||
|
||||
use app::App;
|
||||
use source::PulseAudioSimple;
|
||||
use tui::{
|
||||
use ratatui::{
|
||||
backend::CrosstermBackend,
|
||||
Terminal,
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue