class Guard::Jobs::TerminalSettings
def configurable?
def configurable? @works end
def echo
def echo return unless configurable? Shellany::Sheller.run("stty echo 2>#{IO::NULL}") end
def initialize
def initialize @settings = nil @works = Shellany::Sheller.run("hash", "stty") || false end
def restore
def restore return unless configurable? && @settings Shellany::Sheller.run("stty #{ @setting } 2>#{IO::NULL}") end
def save
def save return unless configurable? @settings = Shellany::Sheller.stdout("stty -g 2>#{IO::NULL}").chomp end