pub fn run_procs_for_non_tty(sh: &mut Shell) {
    let mut buffer = String::new();
    let stdin = io::stdin();
    let mut handle = stdin.lock();
    match handle.read_to_string(&mut buffer) {
        Ok(_) => {
            log!("run non tty command: {}", &buffer);
            run_command_line(sh, &buffer, false, false);
        }
        Err(e) => {
            println!("cicada: stdin.read_to_string() failed: {:?}", e);
        }
    }
}
/// Entry point for non-ttys (e.g. Cmd-N on MacVim)
Entry point for non-ttys
Entry point for non - ttys
pub fn run_procs_for_non_tty(sh: &mut Shell) {
    let mut buffer = String::new();
    let stdin = io::stdin();
    let mut handle = stdin.lock();
    match handle.read_to_string(&mut buffer) {
        Ok(_) => {
            log!("run non tty command: {}", &buffer);
            run_command_line(sh, &buffer, false, false);
        }
        Err(e) => {
            println!("cicada: stdin.read_to_string() failed: {:?}", e);
        }
    }
}
pub fn run_procs_for_non_tty ( sh : & mut Shell ) { let mut buffer = String :: new ( ) ; let stdin = io :: stdin ( ) ; let mut handle = stdin . lock ( ) ; match handle . read_to_string ( & mut buffer ) { Ok ( _ ) => { log ! ( " " buffer ) ; run_command_line ( sh , & buffer , false , false ) ; } Err ( e ) => { println ! ( " " e ) ; } } }
Entry point for non-ttys (e.g.
Entry point for non - ttys ( e . g .
sh
&mut Shell
sh
&mut Shell