Skip to content
Myr

Sleep when curses is unavailable

Before adoption: this commit came in with the history the project adopted, so no landing records it.

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.

authored by Jack Danger Canty · committed by Jack Danger Canty · parent 7ba93d9 · Browse files · 1 file+1 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−0 removed

  • other:+1 added−0 removed

1 file+1 added−0 removed

modified:fzf+1 added
38 unmodified lines
39begin40 require 'curses'41rescue LoadError42 $stderr.puts 'curses gem is not installed. Try `gem install curses`.'43 sleep 144 exit 145end46require 'thread'47require 'set'
1283 unmodified lines