module

PTY::Run

Instance methods

run(command : String, *, rows : Int32 | Nil = nil, columns : Int32 | Nil = nil, &stream_callback : String -> Nil) : Tuple(String, Int32)

Runs a one-shot shell command in a pseudo-terminal. The transcript combines stdout and stderr because both are attached to the same terminal.

Source
run(command : String, *, rows : Int32 | Nil = nil, columns : Int32 | Nil = nil) : Tuple(String, Int32)
Source