diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main.rs | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs index 84fd8ee..56c521d 100644 --- a/src/main.rs +++ b/src/main.rs | |||
@@ -12,7 +12,13 @@ use crate::command::{open_command_window, Command}; | |||
12 | use crate::utils::{load_configuration_file, AppConfig}; | 12 | use crate::utils::{load_configuration_file, AppConfig}; |
13 | 13 | ||
14 | use clap::{App as ClapApp, Arg}; | 14 | use clap::{App as ClapApp, Arg}; |
15 | use cursive::pancurses; | 15 | |
16 | #[cfg(any(feature = "termion-backend", feature = "default"))] | ||
17 | use cursive::termion; | ||
18 | |||
19 | #[cfg(feature = "crossterm-backend")] | ||
20 | use cursive::crossterm; | ||
21 | |||
16 | use cursive::views::{LinearLayout, NamedView}; | 22 | use cursive::views::{LinearLayout, NamedView}; |
17 | use lazy_static::lazy_static; | 23 | use lazy_static::lazy_static; |
18 | 24 | ||
@@ -62,7 +68,11 @@ fn main() { | |||
62 | println!("{}", h); | 68 | println!("{}", h); |
63 | } | 69 | } |
64 | } else { | 70 | } else { |
65 | let mut s = pancurses().unwrap(); | 71 | #[cfg(any(feature = "termion-backend", feature = "default"))] |
72 | let mut s = termion().unwrap(); | ||
73 | |||
74 | #[cfg(feature = "crossterm-backend")] | ||
75 | let mut s = crossterm().unwrap(); | ||
66 | 76 | ||
67 | let app = App::load_state(); | 77 | let app = App::load_state(); |
68 | let layout = NamedView::new( | 78 | let layout = NamedView::new( |