Function cargo_credential::stdio::stdin_stdout_to_console

source ยท
pub fn stdin_stdout_to_console<F, T>(f: F) -> Result<T, Error>
where F: FnOnce() -> T,
Expand description

Reset stdin and stdout to the attached console / tty for the duration of the closure. If no console is available, stdin and stdout will be redirected to null.