jimmy_jukebox 0.5.0 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -33,7 +33,18 @@ user_input_thread = Thread.new do
33
33
  begin
34
34
  loop do
35
35
  display_options_after_delay
36
- case char = STDIN.getch
36
+ if $running_jruby
37
+ char = STDIN.getch
38
+ else
39
+ begin
40
+ stty_state = `stty -g`
41
+ system("stty raw opost -echo -icanon isig")
42
+ char = STDIN.getc.chr
43
+ ensure
44
+ `stty #{stty_state}`
45
+ end
46
+ end
47
+ case char
37
48
  when "q", "Q"
38
49
  raise Interrupt
39
50
  when "e", "E"
@@ -1,4 +1,4 @@
1
1
  module JimmyJukebox
2
- VERSION = '0.5.0'
2
+ VERSION = '0.5.1'
3
3
  DATE = '2013-03-01'
4
4
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: jimmy_jukebox
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.5.0
5
+ version: 0.5.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - James Lavin