Last commit for ncurses

embed
Manos Pitsidianakis 2018-07-10 11:18:11 +03:00
parent ac8e334ae9
commit cbd56b470e
Signed by: Manos Pitsidianakis
GPG Key ID: 73627C2F690DF710
5 changed files with 10 additions and 5 deletions

8
README
View File

@ -8,3 +8,11 @@
\__/ \__/
terminal mail user agent terminal mail user agent
/ /
/_/ |
/ \/
\__/|
/ \|
\__/|
||

View File

@ -32,8 +32,7 @@ use std::sync::mpsc::{sync_channel, Receiver, SyncSender};
use std::thread; use std::thread;
fn main() { fn main() {
let locale_conf = ncurses::LcCategory::all; ncurses::setlocale(ncurses::LcCategory::all, "en_US.UTF-8");
ncurses::setlocale(locale_conf, "en_US.UTF-8");
let set = Settings::new(); let set = Settings::new();
let ui = ui::TUI::initialize(); let ui = ui::TUI::initialize();
let backends = Backends::new(); let backends = Backends::new();

View File

@ -31,6 +31,7 @@ use self::fnv::FnvHashMap;
use std; use std;
/// A hashmap containing all available mail backends. /// A hashmap containing all available mail backends.
/// An abstraction over any available backends.
pub struct Backends { pub struct Backends {
map: FnvHashMap<std::string::String, Box<Fn() -> Box<MailBackend>>>, map: FnvHashMap<std::string::String, Box<Fn() -> Box<MailBackend>>>,
} }

View File

@ -21,7 +21,6 @@
use mailbox::email::parser; use mailbox::email::parser;
use std::fmt::{Display, Formatter, Result}; use std::fmt::{Display, Formatter, Result};
use std::ascii::AsciiExt;
/* /*
* *

View File

@ -30,8 +30,6 @@ use std::sync::Arc;
use std::cmp::Ordering; use std::cmp::Ordering;
use std::fmt; use std::fmt;
use std::option::Option; use std::option::Option;
//use std::io::prelude::*;
use std::ascii::AsciiExt;
use chrono; use chrono;
use chrono::TimeZone; use chrono::TimeZone;