aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2019-06-08 18:11:38 -0400
committerJesse Luehrs <doy@tozt.net>2019-06-08 18:11:38 -0400
commit59abbab62e936a46ceea7bb7ebac5ca9ef4ba2da (patch)
treef9051679b288203a4c05cff097c6738dfda94fa3 /src/main.rs
parent9168c7fca9043d48bc65eaca6837a537d220a1ed (diff)
downloadnbsh-old-59abbab62e936a46ceea7bb7ebac5ca9ef4ba2da.tar.gz
nbsh-old-59abbab62e936a46ceea7bb7ebac5ca9ef4ba2da.zip
basic readline implementation
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index e7a11a9..105450f 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -1,3 +1,8 @@
+mod readline;
+mod repl;
+
fn main() {
- println!("Hello, world!");
+ let _screen = crossterm::RawScreen::into_raw_mode().unwrap();
+
+ repl::repl();
}