interact 0.4 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -0
- data/lib/interact/interactive.rb +3 -2
- data/lib/interact/rewindable.rb +1 -1
- data/lib/{version.rb → interact/version.rb} +1 -1
- metadata +5 -4
data/Rakefile
CHANGED
data/lib/interact/interactive.rb
CHANGED
@@ -21,7 +21,8 @@ module Interactive
|
|
21
21
|
"[D" => :left, "K" => :left,
|
22
22
|
"[3~" => :delete, "S" => :delete,
|
23
23
|
"[H" => :home, "G" => :home,
|
24
|
-
"[F" => :end, "O" => :end
|
24
|
+
"[F" => :end, "O" => :end,
|
25
|
+
"[Z" => :shift_tab
|
25
26
|
}
|
26
27
|
|
27
28
|
# Wrap around the input options, the current answer, and the current
|
@@ -458,7 +459,7 @@ module Interactive
|
|
458
459
|
|
459
460
|
def set_input_state(input)
|
460
461
|
return nil unless input.tty?
|
461
|
-
before =
|
462
|
+
before = Termios.getattr(input)
|
462
463
|
|
463
464
|
new = before.dup
|
464
465
|
new.c_lflag &= ~(Termios::ECHO | Termios::ICANON)
|
data/lib/interact/rewindable.rb
CHANGED
metadata
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: interact
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 13
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 4
|
9
|
-
|
9
|
+
- 1
|
10
|
+
version: 0.4.1
|
10
11
|
platform: ruby
|
11
12
|
authors:
|
12
13
|
- Alex Suraci
|
@@ -14,7 +15,7 @@ autorequire:
|
|
14
15
|
bindir: bin
|
15
16
|
cert_chain: []
|
16
17
|
|
17
|
-
date: 2012-
|
18
|
+
date: 2012-03-07 00:00:00 -08:00
|
18
19
|
default_executable:
|
19
20
|
dependencies:
|
20
21
|
- !ruby/object:Gem::Dependency
|
@@ -61,8 +62,8 @@ files:
|
|
61
62
|
- Rakefile
|
62
63
|
- lib/interact/interactive.rb
|
63
64
|
- lib/interact/rewindable.rb
|
65
|
+
- lib/interact/version.rb
|
64
66
|
- lib/interact.rb
|
65
|
-
- lib/version.rb
|
66
67
|
has_rdoc: true
|
67
68
|
homepage: http://github.com/vito/interact
|
68
69
|
licenses: []
|