Skip to content

Commit

Permalink
chore(deps): use ratatui::crossterm instead of importing crossterm (#16)
Browse files Browse the repository at this point in the history
Alternative to: #15
  • Loading branch information
joshka authored Aug 6, 2024
1 parent 3b9564a commit 18ac789
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 12 deletions.
1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,3 @@ ratatui = "0.27.0"

[dev-dependencies]
color-eyre = "0.6.3"
crossterm = "0.27.0"
15 changes: 9 additions & 6 deletions examples/basic.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
use color_eyre::config::HookBuilder;
use crossterm::{
event::{self, Event, KeyCode},
execute,
terminal::{disable_raw_mode, enable_raw_mode, EnterAlternateScreen, LeaveAlternateScreen},
};
use ratatui::{
prelude::*,
crossterm::{
event::{self, Event, KeyCode},
execute,
terminal::{disable_raw_mode, enable_raw_mode, EnterAlternateScreen, LeaveAlternateScreen},
},
prelude::{
Backend, Buffer, Constraint, CrosstermBackend, Layout, Rect, StatefulWidget, Stylize,
Terminal, Widget,
},
widgets::{Block, Paragraph},
};
use std::io::{self, stdout, Stdout};
Expand Down
10 changes: 5 additions & 5 deletions examples/nested_group.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
use color_eyre::config::HookBuilder;
use crossterm::{
event::{self, Event, KeyCode},
execute,
terminal::{disable_raw_mode, enable_raw_mode, EnterAlternateScreen, LeaveAlternateScreen},
};
use ratatui::{
crossterm::{
event::{self, Event, KeyCode},
execute,
terminal::{disable_raw_mode, enable_raw_mode, EnterAlternateScreen, LeaveAlternateScreen},
},
prelude::*,
widgets::{Block, Paragraph},
};
Expand Down

0 comments on commit 18ac789

Please sign in to comment.