Skip to main content

device

Function device 

Source
pub fn device() -> Result<File>
Expand description

Opens the terminal this process is attached to.

Neither inherited stream is safe to write to. stdout belongs to the shell integration, which reads the chosen command from it, and a PSReadLine key handler hands the child a redirected stderr, so anything written there disappears into a pipe.