Re-enabled the GUI code.

This commit is contained in:
Nathan Vegdahl 2015-01-25 13:30:15 -08:00
parent 352e5370ce
commit 8d83fe77d2

View File

@ -10,15 +10,15 @@ use std::path::Path;
use docopt::Docopt; use docopt::Docopt;
use editor::Editor; use editor::Editor;
use term_ui::TermUI; use term_ui::TermUI;
//use gui::GUI; use gui::GUI;
mod string_utils; mod string_utils;
mod buffer; mod buffer;
mod files; mod files;
mod editor; mod editor;
mod term_ui; mod term_ui;
//mod font; mod font;
//mod gui; mod gui;
@ -58,16 +58,16 @@ fn main() {
}; };
// Initialize and start UI // Initialize and start UI
//if args.flag_gui { if args.flag_gui {
// // GUI // GUI
// sdl2::init(sdl2::INIT_VIDEO); sdl2::init(sdl2::INIT_VIDEO);
// let mut ui = GUI::new_from_editor(editor); let mut ui = GUI::new_from_editor(editor);
// ui.main_ui_loop(); ui.main_ui_loop();
// sdl2::quit(); sdl2::quit();
//} }
//else { else {
// Console UI // Console UI
let mut ui = TermUI::new_from_editor(editor); let mut ui = TermUI::new_from_editor(editor);
ui.main_ui_loop(); ui.main_ui_loop();
//} }
} }