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
|
gemfile do
|
||||||
source 'https://rubygems.org'
|
source 'https://rubygems.org'
|
||||||
gem 'curses'
|
gem 'curses'
|
||||||
gem 'ruby-termios', require: 'termios'
|
|
||||||
end
|
end
|
||||||
|
|
||||||
require 'myhunt'
|
require 'myhunt'
|
||||||
|
@ -58,10 +57,8 @@ def ncurses_main( number_of_mines )
|
||||||
Curses.noecho
|
Curses.noecho
|
||||||
Curses.stdscr.keypad = true
|
Curses.stdscr.keypad = true
|
||||||
|
|
||||||
orig_termios = Termios.tcgetattr($stdin)
|
|
||||||
at_exit do
|
at_exit do
|
||||||
# Curses.close_screen
|
Curses.close_screen
|
||||||
Termios.tcsetattr($stdin, Termios::TCSANOW, orig_termios)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
display_curses( field )
|
display_curses( field )
|
||||||
|
|
Loading…
Reference in a new issue