aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorAkshay <[email protected]>2020-07-18 09:44:40 +0100
committerAkshay <[email protected]>2020-07-18 09:44:40 +0100
commit3eace50dfb39317fb08e5a95d6126b787c567a17 (patch)
tree5cd884942f44090364c8adbaf037a72cc5e810fb /src/main.rs
parent84ddaeb8baba55998335935031ce5644f2715806 (diff)
switch to termion backend for strikethrough and stable refresh rate
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs
index 3efecd6..dc6081d 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -12,7 +12,7 @@ use crate::command::{open_command_window, Command};
12use crate::utils::{load_configuration_file, AppConfig}; 12use crate::utils::{load_configuration_file, AppConfig};
13 13
14use clap::{App as ClapApp, Arg}; 14use clap::{App as ClapApp, Arg};
15use cursive::ncurses; 15use cursive::termion;
16use cursive::views::NamedView; 16use cursive::views::NamedView;
17use lazy_static::lazy_static; 17use lazy_static::lazy_static;
18 18
@@ -44,7 +44,7 @@ fn main() {
44 eprintln!("Invalid or unsupported command!"); 44 eprintln!("Invalid or unsupported command!");
45 } 45 }
46 } else { 46 } else {
47 let mut s = ncurses().unwrap(); 47 let mut s = termion().unwrap();
48 let app = App::load_state(); 48 let app = App::load_state();
49 s.add_layer(NamedView::new("Main", app)); 49 s.add_layer(NamedView::new("Main", app));
50 s.add_global_callback(':', |s| open_command_window(s)); 50 s.add_global_callback(':', |s| open_command_window(s));