diff options
author | Jack Danger Canty <jackdanger@squareup.com> | 2015-01-01 22:23:37 -0800 |
---|---|---|
committer | Jack Danger Canty <jackdanger@squareup.com> | 2015-01-01 22:23:37 -0800 |
commit | d761ea5158de9cccd7cf8ea8e370606feda25453 (patch) | |
tree | 2dbc3dbd58f6f07ef25174b045422912e8dce8bf | |
parent | 7ba93d9f8351be64b37c65ae04d594ee261d5d26 (diff) |
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.
-rwxr-xr-x | fzf | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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' |