From d761ea5158de9cccd7cf8ea8e370606feda25453 Mon Sep 17 00:00:00 2001 From: Jack Danger Canty Date: Thu, 1 Jan 2015 22:23:37 -0800 Subject: [PATCH] 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. --- fzf | 1 + 1 file changed, 1 insertion(+) diff --git a/fzf b/fzf index abfd97e9..3b049b92 100755 --- a/fzf +++ b/fzf @@ -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'