class

Pty::Process

Inherits Reference < Object

Wrap ::Process.run with a pipe for stdin and Pty for stdout/stderr

Instance methods

run(cmd : String, args = nil, *, shell : Bool = false, width = nil, height = nil, win_size = nil, &)

Run with a pipe as input. Make sure to close the pipe or cmd may not exit

See ::Process#new for a description of parameters

Source
run(cmd : String, args = nil, *, input : IO::FileDescriptor, shell : Bool = false, width = nil, height = nil, win_size = nil, &)

Run with the specified input. Make sure to close input or cmd may not exit

See ::Process#new for a description of parameters

Source
signal?(sig) : Bool

Attempt to signal running Process Beware of race conditions

Source