struct

TTY::SpawnOptions

Inherits Struct < Value < Object

Constants

DEFAULT_PATH = "/usr/bin:/bin"
DEFAULT_TERM = "xterm-256color"
SHELL = "/bin/sh"
SHELL_ARGS = "\"$@\""

Constructors

new(env : Process::Env = nil, clear_env : Bool = false, shell : Bool = false, winsize : Winsize | Nil = nil, working_dir : String | Nil = nil, close_fds : Bool = true)
Source

Instance methods

argv(command : String, args : Array(String)) : Array(String)
Source
clear_env
Source
clear_env=(clear_env : Bool)
Source
close_fds
Source
close_fds=(close_fds : Bool)
Source
environment
Source
shell
Source
shell=(shell : Bool)
Source
winsize
Source
winsize=(winsize : Winsize | Nil)
Source
working_dir
Source
working_dir=(working_dir : String | Nil)
Source