pub fn read_from_tty<F>( byte_callback: F, run_before_input: bool, run_after_input: bool) -> Result<Vec<u8>> where F: Fn(&[u8], u8, &mut File),