pty-exec
use ;
use Pty;
// spawn Pty
let pty = spawn?;
// (optional) create new pty, this maintains the on_read and on_death callbacks
// this means a RawFd can be passed to client like in a tauri app
let pty = unsafe ;
// write to original pty with new pty from_raw_fd
pty.write?;
pty.kill;