Function nix::unistd::ttyname

source ยท
pub fn ttyname<F: AsFd>(fd: F) -> Result<PathBuf>
Expand description

Get the name of the terminal device that is open on file descriptor fd (see ttyname(3)).