class

TTY::PTY

Inherits Reference < Object

Constructors

new(master_fd : Int32, slave_fd : Int32, slave_name : String)
Source
open
Source

Class methods

run(command : String, args : Array(String), options : SpawnOptions) : Tuple(String, ChildStatus)
Source
run(command : String, args : Array(String) = [] of String, **options) : Tuple(String, ChildStatus)
Source
spawn(command : String, args : Array(String), options : SpawnOptions) : Process
Source
spawn(command : String, args : Array(String) = [] of String, **options) : Process
Source
spawn(command : String, args : Array(String), options : SpawnOptions, & : Process -> U) : U forall U
Source
spawn(command : String, args : Array(String) = [] of String, **options, & : Process -> U) : U forall U
Source
wait(pid : Int32) : ChildStatus
Source

Instance methods

close
Source
close_slave
Source
closed?
Source
eof_on_error
Source
eof_on_error=(eof_on_error : Bool)
Source
locked?
Source
master_fd
Source
master_io
Source
modify_termios
Source
packet_mode=(enabled : Bool) : Bool
Source
packet_mode?
Source
read_master(buffer : Bytes) : Int32
Source
read_packet(buffer : Bytes) : Packet
Source
read_slave(buffer : Bytes) : Int32
Source
slave_fd
Source
slave_io
Source
slave_name
Source
termios
Source
termios=(termios : Termios) : Termios
Source
wait_priority(timeout : Timeout = nil) : Bool
Source
wait_readable(timeout : Timeout = nil) : Bool
Source
wait_writable(timeout : Timeout = nil) : Bool
Source
winsize
Source
winsize=(winsize : Winsize) : Winsize
Source
write_master(data : String) : Int32
Source
write_slave(data : String) : Int32
Source

Nested types