Polysemy.Process.Pty
Description
The effect Pty abstracts pseudo terminals.
Pty
data Pty :: Effect where Source #
A pseudo terminal, to be scoped with withPty.
withPty
Constructors
The file descriptor that can be connected to stdio of a process.
Set the size of the terminal.
Get the size of the terminal.
withPty :: Member (Scoped_ Pty) r => InterpreterFor Pty r Source #
Bracket an action with the creation and destruction of a pseudo terminal.
interpretPty :: Members [Resource, Embed IO] r => InterpreterFor (Scoped_ Pty !! PtyError) r Source #
Interpret Pty as a Pty.