Compare commits

...

2 Commits

Author SHA1 Message Date
greg
93e96acc66 Some initial work on a better repl 2019-02-10 01:00:40 -08:00
greg
be90a859db Try adding some libraries
Just playing around for now
2019-02-09 05:45:13 -08:00
3 changed files with 19 additions and 0 deletions

View File

@ -20,6 +20,8 @@ phf = "0.7.12"
includedir = "0.2.0"
linefeed = "0.5.0"
regex = "0.2"
cursive = "0.10"
ncurses = "5.98.0"
[build-dependencies]
includedir_codegen = "0.2.0"

View File

@ -5,6 +5,8 @@ extern crate getopts;
extern crate linefeed;
extern crate itertools;
extern crate colored;
extern crate ncurses;
extern crate cursive;
#[macro_use]
extern crate serde_derive;
@ -21,6 +23,7 @@ use std::io::Read;
use std::process::exit;
use std::default::Default;
mod new_repl;
mod repl;
mod language;
mod webapp;
@ -80,8 +83,11 @@ pub fn repl_main(generators: Vec<PLIGenerator>) {
match option_matches.free[..] {
[] | [_] => {
/*
let mut repl = repl::Repl::new(languages, initial_index);
repl.run();
*/
new_repl::run();
}
[_, ref filename, _..] => {

View File

@ -0,0 +1,11 @@
use cursive::Cursive;
use cursive::views::{Dialog, TextView};
pub fn run() {
println!("YOLO");
let mut siv = Cursive::default();
siv.add_layer(Dialog::around(TextView::new("FUCKO"))
.title("YOLO SWAGGGGG")
.button("exit", |s| { s.quit() }));
siv.run();
}