Early work on scripting features

This commit is contained in:
2025-03-16 02:56:29 -04:00
parent c0fb3f5914
commit 92d7766765
14 changed files with 376 additions and 132 deletions

View File

@@ -13,6 +13,7 @@ pub mod tests;
use libsh::error::ShResult;
use parse::{execute::Dispatcher, lex::{LexFlags, LexStream}, ParseStream};
use signal::sig_setup;
use termios::{LocalFlags, Termios};
use crate::prelude::*;
@@ -64,6 +65,7 @@ pub fn exec_input(input: &str) -> ShResult<()> {
fn main() {
save_termios();
set_termios();
sig_setup();
loop {
let input = prompt::read_line().unwrap();
let start = Instant::now();