drop termios, it leaves the terminal in a broken state anyway
This commit is contained in:
parent
9fc8946428
commit
2fd33b0188
1 changed files with 1 additions and 4 deletions
|
@ -6,7 +6,6 @@ require 'bundler/inline'
|
|||
gemfile do
|
||||
source 'https://rubygems.org'
|
||||
gem 'curses'
|
||||
gem 'ruby-termios', require: 'termios'
|
||||
end
|
||||
|
||||
require 'myhunt'
|
||||
|
@ -58,10 +57,8 @@ def ncurses_main( number_of_mines )
|
|||
Curses.noecho
|
||||
Curses.stdscr.keypad = true
|
||||
|
||||
orig_termios = Termios.tcgetattr($stdin)
|
||||
at_exit do
|
||||
# Curses.close_screen
|
||||
Termios.tcsetattr($stdin, Termios::TCSANOW, orig_termios)
|
||||
Curses.close_screen
|
||||
end
|
||||
|
||||
display_curses( field )
|
||||
|
|
Loading…
Reference in a new issue