Skip to content
Myr

Use IO.console when possible

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

authored by Junegunn Choi · committed by Junegunn Choi · parent 4c923a2 · Browse files · 1 file+7 added−1 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+7 added−1 removed

  • other:+7 added−1 removed

1 file+7 added−1 removed

modified:fzf+7 added-1 removed
839 unmodified lines
840 end841 end842843 def get_input actions844 @tty ||=845 begin846 require 'io/console'847 IO.console848 rescue LoadError844 @tty ||= IO.open(IO.sysopen('/dev/tty'), 'r')849 IO.open(IO.sysopen('/dev/tty'), 'r')850 end851852 if pending = @pending853 @pending = nil854 return pending
424 unmodified lines