Merge branch 'main' of ssh://src.le-moine.org:38172/gwh/myhunt
This commit is contained in:
commit
ed5f034bee
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