Some initial work on a better repl
This commit is contained in:
parent
be90a859db
commit
93e96acc66
@ -23,6 +23,7 @@ use std::io::Read;
|
||||
use std::process::exit;
|
||||
use std::default::Default;
|
||||
|
||||
mod new_repl;
|
||||
mod repl;
|
||||
mod language;
|
||||
mod webapp;
|
||||
@ -82,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, _..] => {
|
||||
|
||||
|
11
schala-repl/src/new_repl.rs
Normal file
11
schala-repl/src/new_repl.rs
Normal 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();
|
||||
}
|
Loading…
Reference in New Issue
Block a user