diff options
author | qkzk <qu3nt1n@gmail.com> | 2022-10-06 07:41:16 +0200 |
---|---|---|
committer | qkzk <qu3nt1n@gmail.com> | 2022-10-06 07:41:16 +0200 |
commit | 04d0ae387eae40aa2727b55792ee7ead93285394 (patch) | |
tree | b87eea1258ceecfe2a35d65ca9807630f0ec2899 | |
parent | 0bc5d4231cad0634976ab9f05e802abe43e726bc (diff) |
simpler tuikit term creation
-rw-r--r-- | src/main.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs index e3ee14ea..b48e4c04 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,5 +1,5 @@ use clap::Parser; -use tuikit::term::{Term, TermHeight}; +use tuikit::term::Term; use fm::actioner::Actioner; use fm::args::Args; @@ -12,7 +12,7 @@ static CONFIG_PATH: &str = "~/.config/fm/config.yaml"; /// Returns a `Display` instance after `tuikit::term::Term` creation. fn init_display(colors: Colors) -> Display { - let term: Term<()> = Term::with_height(TermHeight::Percent(100)).unwrap(); + let term: Term<()> = Term::new().unwrap(); let _ = term.enable_mouse_support(); Display::new(term, colors) } |