djinni 1.3.1 → 1.3.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/djinni.rb +10 -5
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ba9a7aa0be1cacf772934737cb9229fbc02207b1
4
- data.tar.gz: 39ae226e7127c943b5ae0cb493e6ed027aaaca28
3
+ metadata.gz: 1361f183511989f53ee42ffb304c7dea2ef7edbd
4
+ data.tar.gz: 4fca8c8f6d516fe4493fa298d5801d67caaa5fca
5
5
  SHA512:
6
- metadata.gz: 46365265bcab6099effea42a362cd06094886b1ba8235a8e6ebc58b1b30289f01cc389a0a986fdfd18b8df67de89772326b265e63afbc25f1edec0d3fe78474d
7
- data.tar.gz: 01f5aa57708f8a7da7abc528d91fcce53bde0a5a0a6025ed6e85c102656e8c1fbb5438c56395ba5a0182208543c316d68699538f511ca209b0dfab79a91fd23d
6
+ metadata.gz: 452366ed45e373d2bdb4f83c2f3d50ae571980064b98052b822eac94bfc149cb6c356129b9b74ff7d8f35a975a5461dc77959977dd1f7d826070a524dd834335
7
+ data.tar.gz: 3df2b875ffe1df13471c6e6183d0d59b529b7f17f60dfcfc4a682512ea77fb90bf2955fef3dceea60c3b3d4e980349304e681ae51142012aec302b0719b3515b
data/lib/djinni.rb CHANGED
@@ -160,12 +160,17 @@ class Djinni
160
160
  print "\r#{djinni_prompt}#{buff}"
161
161
 
162
162
  # Process input
163
- begin
164
- buff = grant_wish(buff + STDIN.getch, djinni_env)
165
- rescue
166
- puts if (@interactive)
167
- return ""
163
+ input = nil
164
+ system("stty raw -echo")
165
+ while (input.nil?)
166
+ begin
167
+ input = STDIN.getch
168
+ rescue
169
+ puts if (@interactive)
170
+ end
168
171
  end
172
+ system("stty -raw echo")
173
+ buff = grant_wish(buff + input, djinni_env)
169
174
 
170
175
  if (buff.nil?)
171
176
  puts "Command not found!"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: djinni
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.1
4
+ version: 1.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miles Whittaker