Expand description
Run a function or closure in a pseudoterminal.
This library works by forking the current process into a pseudoterminal, running the closure, and then reporting the resulting status code.
0: success, returned asOk(())- Anything else: failure, returned as [
Err(Error)]
See run_in_pty for usage.
Enums§
- Error
- The possible errors encountered when calling
run_in_pty.
Functions§
- run_
in_ ⚠pty - Run a closure in a forked pseudoterminal process.