diff options
author | Akshay <[email protected]> | 2020-07-24 06:26:58 +0100 |
---|---|---|
committer | Akshay <[email protected]> | 2020-07-24 06:26:58 +0100 |
commit | 5c13cecaec4ce4c0e4f79c781cd9c90301bf82ad (patch) | |
tree | 24fb794fbfdb855e30a5c4a47eae7d1fdfabd5b7 /src/main.rs | |
parent | bf98997f0d3b5958dba178666d8142962374d021 (diff) |
switch to pancurses backendv0.2.2
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/src/main.rs b/src/main.rs index 609738e..84fd8ee 100644 --- a/src/main.rs +++ b/src/main.rs | |||
@@ -12,13 +12,7 @@ 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 | 15 | use cursive::pancurses; | |
16 | #[cfg(any(target_os = "linux", target_os = "macos"))] | ||
17 | use cursive::termion; | ||
18 | |||
19 | #[cfg(target_os = "windows")] | ||
20 | use cursive::crossterm; | ||
21 | |||
22 | use cursive::views::{LinearLayout, NamedView}; | 16 | use cursive::views::{LinearLayout, NamedView}; |
23 | use lazy_static::lazy_static; | 17 | use lazy_static::lazy_static; |
24 | 18 | ||
@@ -68,11 +62,7 @@ fn main() { | |||
68 | println!("{}", h); | 62 | println!("{}", h); |
69 | } | 63 | } |
70 | } else { | 64 | } else { |
71 | #[cfg(target_os = "windows")] | 65 | let mut s = pancurses().unwrap(); |
72 | let mut s = crossterm().unwrap(); | ||
73 | |||
74 | #[cfg(any(target_os = "linux", target_os = "macos"))] | ||
75 | let mut s = termion().unwrap(); | ||
76 | 66 | ||
77 | let app = App::load_state(); | 67 | let app = App::load_state(); |
78 | let layout = NamedView::new( | 68 | let layout = NamedView::new( |