win32console 1.3.0.beta2-x86-mingw32 → 1.3.0.beta3-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +6 -0
- data/lib/1.8/Console_ext.so +0 -0
- data/lib/1.9/Console_ext.so +0 -0
- data/lib/Win32/Console/ANSI.rb +6 -3
- data/tasks/gem.rake +1 -1
- metadata +2 -2
data/History.txt
CHANGED
data/lib/1.8/Console_ext.so
CHANGED
Binary file
|
data/lib/1.9/Console_ext.so
CHANGED
Binary file
|
data/lib/Win32/Console/ANSI.rb
CHANGED
@@ -101,8 +101,10 @@ module Win32
|
|
101
101
|
# this redefined #putc buffers escape sequences but passes
|
102
102
|
# other values to #write as normal.
|
103
103
|
def putc(int)
|
104
|
+
int = int.ord if RUBY_VERSION >= "1.9"
|
104
105
|
if @buffer.empty?
|
105
|
-
|
106
|
+
# match \e
|
107
|
+
unless int == 27
|
106
108
|
write(int.chr)
|
107
109
|
else
|
108
110
|
@buffer << int
|
@@ -110,8 +112,9 @@ module Win32
|
|
110
112
|
else
|
111
113
|
@buffer << int
|
112
114
|
case int
|
113
|
-
|
114
|
-
|
115
|
+
# match m, J, L, M, @, P, A, B, C, D, E, F, G, H, f, s, u, U, K, X
|
116
|
+
when 109, 74, 76, 77, 64, 80, 65, 66, 67, 68,
|
117
|
+
69, 70, 71, 72, 102, 115, 117, 85, 75, 88
|
115
118
|
write(@buffer.pack("c*"))
|
116
119
|
@buffer.clear
|
117
120
|
end
|
data/tasks/gem.rake
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: win32console
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.0.
|
4
|
+
version: 1.3.0.beta3
|
5
5
|
platform: x86-mingw32
|
6
6
|
authors:
|
7
7
|
- Gonzalo Garramuno
|
@@ -11,7 +11,7 @@ autorequire:
|
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
13
|
|
14
|
-
date: 2010-03-
|
14
|
+
date: 2010-03-12 00:00:00 -03:00
|
15
15
|
default_executable:
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|