diff options
author | Akshay <[email protected]> | 2020-07-18 09:44:40 +0100 |
---|---|---|
committer | Akshay <[email protected]> | 2020-07-18 09:44:40 +0100 |
commit | 3eace50dfb39317fb08e5a95d6126b787c567a17 (patch) | |
tree | 5cd884942f44090364c8adbaf037a72cc5e810fb /src/main.rs | |
parent | 84ddaeb8baba55998335935031ce5644f2715806 (diff) |
switch to termion backend for strikethrough and stable refresh rate
Diffstat (limited to 'src/main.rs')
-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 3efecd6..dc6081d 100644 --- a/src/main.rs +++ b/src/main.rs | |||
@@ -12,7 +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 | use cursive::ncurses; | 15 | use cursive::termion; |
16 | use cursive::views::NamedView; | 16 | use cursive::views::NamedView; |
17 | use lazy_static::lazy_static; | 17 | use 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)); |