Compare commits
2 Commits
antiquated
...
93e96acc66
Author | SHA1 | Date | |
---|---|---|---|
|
93e96acc66 | ||
|
be90a859db |
@ -20,6 +20,8 @@ phf = "0.7.12"
|
|||||||
includedir = "0.2.0"
|
includedir = "0.2.0"
|
||||||
linefeed = "0.5.0"
|
linefeed = "0.5.0"
|
||||||
regex = "0.2"
|
regex = "0.2"
|
||||||
|
cursive = "0.10"
|
||||||
|
ncurses = "5.98.0"
|
||||||
|
|
||||||
[build-dependencies]
|
[build-dependencies]
|
||||||
includedir_codegen = "0.2.0"
|
includedir_codegen = "0.2.0"
|
||||||
|
@ -5,6 +5,8 @@ extern crate getopts;
|
|||||||
extern crate linefeed;
|
extern crate linefeed;
|
||||||
extern crate itertools;
|
extern crate itertools;
|
||||||
extern crate colored;
|
extern crate colored;
|
||||||
|
extern crate ncurses;
|
||||||
|
extern crate cursive;
|
||||||
|
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
extern crate serde_derive;
|
extern crate serde_derive;
|
||||||
@ -21,6 +23,7 @@ use std::io::Read;
|
|||||||
use std::process::exit;
|
use std::process::exit;
|
||||||
use std::default::Default;
|
use std::default::Default;
|
||||||
|
|
||||||
|
mod new_repl;
|
||||||
mod repl;
|
mod repl;
|
||||||
mod language;
|
mod language;
|
||||||
mod webapp;
|
mod webapp;
|
||||||
@ -80,8 +83,11 @@ pub fn repl_main(generators: Vec<PLIGenerator>) {
|
|||||||
|
|
||||||
match option_matches.free[..] {
|
match option_matches.free[..] {
|
||||||
[] | [_] => {
|
[] | [_] => {
|
||||||
|
/*
|
||||||
let mut repl = repl::Repl::new(languages, initial_index);
|
let mut repl = repl::Repl::new(languages, initial_index);
|
||||||
repl.run();
|
repl.run();
|
||||||
|
*/
|
||||||
|
new_repl::run();
|
||||||
}
|
}
|
||||||
[_, ref filename, _..] => {
|
[_, 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