Sleep when curses is unavailable

When the curses gem is not installed and the session is running inside
tmux the user will see a flash of an opened and closed tmux pane but
will not have a chance to read the error message.
This commit is contained in:
Jack Danger Canty 2015-01-01 22:23:37 -08:00
parent 7ba93d9f83
commit d761ea5158

1
fzf
View File

@ -40,6 +40,7 @@ begin
require 'curses'
rescue LoadError
$stderr.puts 'curses gem is not installed. Try `gem install curses`.'
sleep 1
exit 1
end
require 'thread'