Skip to main content

pty_path

Function pty_path 

Source
pub fn pty_path() -> (String, File, File)
Expand description

Create a PTY (pseudo-terminal) for testing utilities that require a TTY.

Returns a tuple of (path, controller, replica) where:

  • path: The filesystem path to the PTY replica device
  • controller: The controller file
  • replica: The replica file