Merge branch 'main' of ssh://src.le-moine.org:38172/gwh/myhunt

This commit is contained in:
Gwenhael Le Moine 2022-10-31 22:49:29 +01:00
commit ed5f034bee
No known key found for this signature in database
GPG key ID: FDFE3669426707A7

View file

@ -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 )