1
0
Fork 0
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:
əlemi 2023-09-18 00:56:51 +02:00
parent 37af6d9fc4
commit 1b67bfbf75
Signed by: alemi
GPG key ID: A4895B84D311642C
7 changed files with 7 additions and 7 deletions

View file

@ -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"

View file

@ -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,

View file

@ -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

View file

@ -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;

View file

@ -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};

View file

@ -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};

View file

@ -6,7 +6,7 @@ mod display;
use app::App;
use source::PulseAudioSimple;
use tui::{
use ratatui::{
backend::CrosstermBackend,
Terminal,
};