djinni 1.3.1 → 1.3.2
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.
- checksums.yaml +4 -4
- data/lib/djinni.rb +10 -5
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1361f183511989f53ee42ffb304c7dea2ef7edbd
|
4
|
+
data.tar.gz: 4fca8c8f6d516fe4493fa298d5801d67caaa5fca
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
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!"
|