module Vt100::Terminal

Public Instance Methods

terminal_dimensions() click to toggle source
# File lib/vt100/terminal.rb, line 7
def terminal_dimensions
  $stdout.winsize
end
unbuffer_stdin() click to toggle source
# File lib/vt100/terminal.rb, line 11
def unbuffer_stdin
  system "stty", "-f", "/dev/tty", "cbreak", "min", "1"
end
unecho_stdin() click to toggle source
# File lib/vt100/terminal.rb, line 15
def unecho_stdin
  system "stty", "-f", "/dev/tty", "-echo"
end