Module: Vt100::Terminal
- Defined in:
- lib/vt100/terminal.rb
Instance Method Summary collapse
Instance Method Details
#terminal_dimensions ⇒ Object
7 8 9 |
# File 'lib/vt100/terminal.rb', line 7 def terminal_dimensions $stdout.winsize end |
#unbuffer_stdin ⇒ Object
11 12 13 |
# File 'lib/vt100/terminal.rb', line 11 def unbuffer_stdin system "stty", "-f", "/dev/tty", "cbreak", "min", "1" end |
#unecho_stdin ⇒ Object
15 16 17 |
# File 'lib/vt100/terminal.rb', line 15 def unecho_stdin system "stty", "-f", "/dev/tty", "-echo" end |