diff options
| author | Jack Nagel | 2014-05-01 10:10:24 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-05-01 10:10:24 -0500 |
| commit | 0613b85bf308ee7a10e33355014811d4911e4e0a (patch) | |
| tree | b9af1b16ceff1ecd7746ac1b453e91f4bf754330 | |
| parent | 4f7d6849e5fc5a27889af51246b34c88536521c8 (diff) | |
| download | homebrew-0613b85bf308ee7a10e33355014811d4911e4e0a.tar.bz2 | |
Use feature detection
| -rwxr-xr-x | install | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -42,7 +42,7 @@ end def getc # NOTE only tested on OS X system "/bin/stty raw -echo" - if RUBY_VERSION >= '1.8.7' + if STDIN.respond_to?(:getbyte) STDIN.getbyte else STDIN.getc |
