diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs index 3e35ebc..dec3156 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 | |||
16 | #[cfg(target_os = "linux")] | ||
17 | use cursive::termion; | ||
18 | |||
19 | #[cfg(target_os = "windows")] | ||
15 | use cursive::crossterm; | 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,12 @@ fn main() { | |||
62 | println!("{}", h); | 68 | println!("{}", h); |
63 | } | 69 | } |
64 | } else { | 70 | } else { |
71 | #[cfg(target_os = "windows")] | ||
65 | let mut s = crossterm().unwrap(); | 72 | let mut s = crossterm().unwrap(); |
73 | |||
74 | #[cfg(target_os = "linux")] | ||
75 | let mut s = termion().unwrap(); | ||
76 | |||
66 | let app = App::load_state(); | 77 | let app = App::load_state(); |
67 | let layout = NamedView::new( | 78 | let layout = NamedView::new( |
68 | "Frame", | 79 | "Frame", |