win32console 1.0.8-i386-mswin32

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.
Files changed (119) hide show
  1. data/Console-i386-mswin32.def +2 -0
  2. data/Console.cpp +1203 -0
  3. data/Console.rdoc +690 -0
  4. data/Console_ANSI.rdoc +302 -0
  5. data/HISTORY.txt +7 -0
  6. data/INSTALL.txt +18 -0
  7. data/README.txt +26 -0
  8. data/Rakefile +38 -0
  9. data/doc/classes/Win32.html +115 -0
  10. data/doc/classes/Win32/Console.html +650 -0
  11. data/doc/classes/Win32/Console.src/M000001.html +31 -0
  12. data/doc/classes/Win32/Console.src/M000002.html +23 -0
  13. data/doc/classes/Win32/Console.src/M000003.html +23 -0
  14. data/doc/classes/Win32/Console.src/M000004.html +27 -0
  15. data/doc/classes/Win32/Console.src/M000005.html +23 -0
  16. data/doc/classes/Win32/Console.src/M000006.html +28 -0
  17. data/doc/classes/Win32/Console.src/M000007.html +23 -0
  18. data/doc/classes/Win32/Console.src/M000008.html +24 -0
  19. data/doc/classes/Win32/Console.src/M000009.html +44 -0
  20. data/doc/classes/Win32/Console.src/M000010.html +23 -0
  21. data/doc/classes/Win32/Console.src/M000011.html +33 -0
  22. data/doc/classes/Win32/Console.src/M000012.html +26 -0
  23. data/doc/classes/Win32/Console.src/M000013.html +27 -0
  24. data/doc/classes/Win32/Console.src/M000014.html +28 -0
  25. data/doc/classes/Win32/Console.src/M000015.html +23 -0
  26. data/doc/classes/Win32/Console.src/M000016.html +23 -0
  27. data/doc/classes/Win32/Console.src/M000017.html +23 -0
  28. data/doc/classes/Win32/Console.src/M000018.html +29 -0
  29. data/doc/classes/Win32/Console.src/M000019.html +23 -0
  30. data/doc/classes/Win32/Console.src/M000020.html +23 -0
  31. data/doc/classes/Win32/Console.src/M000021.html +28 -0
  32. data/doc/classes/Win32/Console.src/M000022.html +23 -0
  33. data/doc/classes/Win32/Console.src/M000023.html +28 -0
  34. data/doc/classes/Win32/Console.src/M000024.html +35 -0
  35. data/doc/classes/Win32/Console.src/M000025.html +28 -0
  36. data/doc/classes/Win32/Console.src/M000026.html +28 -0
  37. data/doc/classes/Win32/Console.src/M000027.html +28 -0
  38. data/doc/classes/Win32/Console.src/M000028.html +31 -0
  39. data/doc/classes/Win32/Console.src/M000029.html +23 -0
  40. data/doc/classes/Win32/Console.src/M000030.html +23 -0
  41. data/doc/classes/Win32/Console.src/M000031.html +23 -0
  42. data/doc/classes/Win32/Console.src/M000032.html +27 -0
  43. data/doc/classes/Win32/Console.src/M000033.html +27 -0
  44. data/doc/classes/Win32/Console.src/M000034.html +25 -0
  45. data/doc/classes/Win32/Console/ANSI.html +103 -0
  46. data/doc/classes/Win32/Console/ANSI/IO.html +220 -0
  47. data/doc/classes/Win32/Console/ANSI/IO.src/M000035.html +32 -0
  48. data/doc/classes/Win32/Console/ANSI/IO.src/M000036.html +205 -0
  49. data/doc/classes/Win32/Console/ANSI/IO.src/M000037.html +40 -0
  50. data/doc/classes/Win32/Console/ANSI/IO.src/M000038.html +25 -0
  51. data/doc/classes/Win32/Console/API.html +758 -0
  52. data/doc/classes/Win32/Console/API.src/M000039.html +27 -0
  53. data/doc/classes/Win32/Console/API.src/M000040.html +27 -0
  54. data/doc/classes/Win32/Console/API.src/M000041.html +27 -0
  55. data/doc/classes/Win32/Console/API.src/M000042.html +32 -0
  56. data/doc/classes/Win32/Console/API.src/M000043.html +32 -0
  57. data/doc/classes/Win32/Console/API.src/M000044.html +28 -0
  58. data/doc/classes/Win32/Console/API.src/M000045.html +26 -0
  59. data/doc/classes/Win32/Console/API.src/M000046.html +26 -0
  60. data/doc/classes/Win32/Console/API.src/M000047.html +27 -0
  61. data/doc/classes/Win32/Console/API.src/M000048.html +30 -0
  62. data/doc/classes/Win32/Console/API.src/M000049.html +29 -0
  63. data/doc/classes/Win32/Console/API.src/M000050.html +27 -0
  64. data/doc/classes/Win32/Console/API.src/M000051.html +28 -0
  65. data/doc/classes/Win32/Console/API.src/M000052.html +30 -0
  66. data/doc/classes/Win32/Console/API.src/M000053.html +27 -0
  67. data/doc/classes/Win32/Console/API.src/M000054.html +29 -0
  68. data/doc/classes/Win32/Console/API.src/M000055.html +29 -0
  69. data/doc/classes/Win32/Console/API.src/M000056.html +28 -0
  70. data/doc/classes/Win32/Console/API.src/M000057.html +27 -0
  71. data/doc/classes/Win32/Console/API.src/M000058.html +47 -0
  72. data/doc/classes/Win32/Console/API.src/M000059.html +32 -0
  73. data/doc/classes/Win32/Console/API.src/M000060.html +47 -0
  74. data/doc/classes/Win32/Console/API.src/M000061.html +34 -0
  75. data/doc/classes/Win32/Console/API.src/M000062.html +32 -0
  76. data/doc/classes/Win32/Console/API.src/M000063.html +32 -0
  77. data/doc/classes/Win32/Console/API.src/M000064.html +35 -0
  78. data/doc/classes/Win32/Console/API.src/M000065.html +26 -0
  79. data/doc/classes/Win32/Console/API.src/M000066.html +27 -0
  80. data/doc/classes/Win32/Console/API.src/M000067.html +29 -0
  81. data/doc/classes/Win32/Console/API.src/M000068.html +27 -0
  82. data/doc/classes/Win32/Console/API.src/M000069.html +27 -0
  83. data/doc/classes/Win32/Console/API.src/M000070.html +28 -0
  84. data/doc/classes/Win32/Console/API.src/M000071.html +27 -0
  85. data/doc/classes/Win32/Console/API.src/M000072.html +26 -0
  86. data/doc/classes/Win32/Console/API.src/M000073.html +27 -0
  87. data/doc/classes/Win32/Console/API.src/M000074.html +31 -0
  88. data/doc/classes/Win32/Console/API.src/M000075.html +27 -0
  89. data/doc/classes/Win32/Console/API.src/M000076.html +32 -0
  90. data/doc/classes/Win32/Console/API.src/M000077.html +27 -0
  91. data/doc/classes/Win32/Console/API.src/M000078.html +32 -0
  92. data/doc/classes/Win32/Console/API.src/M000079.html +32 -0
  93. data/doc/classes/Win32/Console/API.src/M000080.html +32 -0
  94. data/doc/classes/Win32/Console/Constants.html +360 -0
  95. data/doc/created.rid +1 -0
  96. data/doc/files/Console_ANSI_rdoc.html +407 -0
  97. data/doc/files/Console_cpp.html +104 -0
  98. data/doc/files/Console_rdoc.html +964 -0
  99. data/doc/files/lib/Win32/Console/ANSI_rb.html +123 -0
  100. data/doc/files/lib/Win32/Console_rb.html +297 -0
  101. data/doc/fr_class_index.html +32 -0
  102. data/doc/fr_file_index.html +31 -0
  103. data/doc/fr_method_index.html +106 -0
  104. data/doc/index.html +24 -0
  105. data/doc/rdoc-style.css +172 -0
  106. data/lib/Console.so +0 -0
  107. data/lib/README_GEM.txt +64 -0
  108. data/lib/Term/ansicolor.rb +76 -0
  109. data/lib/Win32/Console.rb +970 -0
  110. data/lib/Win32/Console/ANSI.rb +305 -0
  111. data/lib/win32console.rb +3 -0
  112. data/test/test_cursor.rb +9 -0
  113. data/test/test_mouse.rb +6 -0
  114. data/test/test_readinput.rb +62 -0
  115. data/test/test_readoutput.rb +52 -0
  116. data/test/test_sendevent.rb +17 -0
  117. data/test/test_title.rb +14 -0
  118. data/test/test_write.rb +36 -0
  119. metadata +180 -0
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "Win32/Console"
4
+
5
+ a = Win32::Console.new()
6
+
7
+ title = a.Title()
8
+ puts "Old title: \"#{title}\""
9
+
10
+ a.Title("This is a new title")
11
+ title = a.Title()
12
+ puts "I just changed the title to '#{title}'"
13
+
14
+ sleep(5)
@@ -0,0 +1,36 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ if $0 == __FILE__
4
+ require "Term/ANSIColor"
5
+ include Term::ANSIColor
6
+
7
+ require "benchmark"
8
+ include Benchmark
9
+
10
+ require "Win32/Console/ANSI"
11
+
12
+ bm do |x|
13
+ num = 100
14
+ x.report("#{num} times") {
15
+ 0.upto(num) {
16
+ print "\e[2J"
17
+
18
+ print red, bold, "Usage as constants:", reset, "\n"
19
+
20
+ print clear, "clear", reset, reset, "reset", reset,
21
+ bold, "bold", reset, dark, "dark", reset,
22
+ underscore, "underscore", reset, blink, "blink", reset,
23
+ negative, "negative", reset, concealed, "concealed", reset, "|\n",
24
+ black, "black", reset, red, "red", reset, green, "green", reset,
25
+ yellow, "yellow", reset, blue, "blue", reset, magenta, "magenta", reset,
26
+ cyan, "cyan", reset, white, "white", reset, "|\n",
27
+ on_black, "on_black", reset, on_red, "on_red", reset,
28
+ on_green, "on_green", reset, on_yellow, "on_yellow", reset,
29
+ on_blue, "on_blue", reset, on_magenta, "on_magenta", reset,
30
+ on_cyan, "on_cyan", reset, on_white, "on_white", reset, "|\n\n"
31
+ print "\e[s\e[20P.................."
32
+ }
33
+ }
34
+ end
35
+ end
36
+
metadata ADDED
@@ -0,0 +1,180 @@
1
+ --- !ruby/object:Gem::Specification
2
+ rubygems_version: 0.8.11
3
+ specification_version: 1
4
+ name: win32console
5
+ version: !ruby/object:Gem::Version
6
+ version: 1.0.8
7
+ date: 2006-06-05 00:00:00 -07:00
8
+ summary: A library giving the Win32 console ANSI escape sequence support.
9
+ require_paths:
10
+ - lib
11
+ email: ggarra @nospam@ advancedsl.com.ar, jgbailey @nospan@ gmail.com
12
+ homepage: http://rubyforge.org/projects/winconsole
13
+ rubyforge_project: http://rubyforge.org/projects/winconsole
14
+ description: "This gem packages Gonzalo Garramuno's Win32::Console project, and includes a compiled binary for speed. The Win32::Console project's home can be found at: http://rubyforge.org/projects/win32console The gem project can be found at http://rubyforge.org/projects/winconsole"
15
+ autorequire: win32console
16
+ default_executable:
17
+ bindir: bin
18
+ has_rdoc: true
19
+ required_ruby_version: !ruby/object:Gem::Version::Requirement
20
+ requirements:
21
+ - - ">"
22
+ - !ruby/object:Gem::Version
23
+ version: 0.0.0
24
+ version:
25
+ platform: i386-mswin32
26
+ signing_key:
27
+ cert_chain:
28
+ authors:
29
+ - Original Library by Gonzalo Garramuno, Gem by Justin Bailey
30
+ files:
31
+ - lib/Console.so
32
+ - lib/README_GEM.txt
33
+ - lib/Term
34
+ - lib/Win32
35
+ - lib/win32console.rb
36
+ - lib/Term/ansicolor.rb
37
+ - lib/Win32/Console
38
+ - lib/Win32/Console.rb
39
+ - lib/Win32/Console/ANSI.rb
40
+ - test/test_cursor.rb
41
+ - test/test_mouse.rb
42
+ - test/test_readinput.rb
43
+ - test/test_readoutput.rb
44
+ - test/test_sendevent.rb
45
+ - test/test_title.rb
46
+ - test/test_write.rb
47
+ - doc/classes
48
+ - doc/created.rid
49
+ - doc/files
50
+ - doc/fr_class_index.html
51
+ - doc/fr_file_index.html
52
+ - doc/fr_method_index.html
53
+ - doc/index.html
54
+ - doc/rdoc-style.css
55
+ - doc/classes/Win32
56
+ - doc/classes/Win32.html
57
+ - doc/classes/Win32/Console
58
+ - doc/classes/Win32/Console.html
59
+ - doc/classes/Win32/Console.src
60
+ - doc/classes/Win32/Console/ANSI
61
+ - doc/classes/Win32/Console/ANSI.html
62
+ - doc/classes/Win32/Console/API.html
63
+ - doc/classes/Win32/Console/API.src
64
+ - doc/classes/Win32/Console/Constants.html
65
+ - doc/classes/Win32/Console/ANSI/IO.html
66
+ - doc/classes/Win32/Console/ANSI/IO.src
67
+ - doc/classes/Win32/Console/ANSI/IO.src/M000035.html
68
+ - doc/classes/Win32/Console/ANSI/IO.src/M000036.html
69
+ - doc/classes/Win32/Console/ANSI/IO.src/M000037.html
70
+ - doc/classes/Win32/Console/ANSI/IO.src/M000038.html
71
+ - doc/classes/Win32/Console/API.src/M000039.html
72
+ - doc/classes/Win32/Console/API.src/M000040.html
73
+ - doc/classes/Win32/Console/API.src/M000041.html
74
+ - doc/classes/Win32/Console/API.src/M000042.html
75
+ - doc/classes/Win32/Console/API.src/M000043.html
76
+ - doc/classes/Win32/Console/API.src/M000044.html
77
+ - doc/classes/Win32/Console/API.src/M000045.html
78
+ - doc/classes/Win32/Console/API.src/M000046.html
79
+ - doc/classes/Win32/Console/API.src/M000047.html
80
+ - doc/classes/Win32/Console/API.src/M000048.html
81
+ - doc/classes/Win32/Console/API.src/M000049.html
82
+ - doc/classes/Win32/Console/API.src/M000050.html
83
+ - doc/classes/Win32/Console/API.src/M000051.html
84
+ - doc/classes/Win32/Console/API.src/M000052.html
85
+ - doc/classes/Win32/Console/API.src/M000053.html
86
+ - doc/classes/Win32/Console/API.src/M000054.html
87
+ - doc/classes/Win32/Console/API.src/M000055.html
88
+ - doc/classes/Win32/Console/API.src/M000056.html
89
+ - doc/classes/Win32/Console/API.src/M000057.html
90
+ - doc/classes/Win32/Console/API.src/M000058.html
91
+ - doc/classes/Win32/Console/API.src/M000059.html
92
+ - doc/classes/Win32/Console/API.src/M000060.html
93
+ - doc/classes/Win32/Console/API.src/M000061.html
94
+ - doc/classes/Win32/Console/API.src/M000062.html
95
+ - doc/classes/Win32/Console/API.src/M000063.html
96
+ - doc/classes/Win32/Console/API.src/M000064.html
97
+ - doc/classes/Win32/Console/API.src/M000065.html
98
+ - doc/classes/Win32/Console/API.src/M000066.html
99
+ - doc/classes/Win32/Console/API.src/M000067.html
100
+ - doc/classes/Win32/Console/API.src/M000068.html
101
+ - doc/classes/Win32/Console/API.src/M000069.html
102
+ - doc/classes/Win32/Console/API.src/M000070.html
103
+ - doc/classes/Win32/Console/API.src/M000071.html
104
+ - doc/classes/Win32/Console/API.src/M000072.html
105
+ - doc/classes/Win32/Console/API.src/M000073.html
106
+ - doc/classes/Win32/Console/API.src/M000074.html
107
+ - doc/classes/Win32/Console/API.src/M000075.html
108
+ - doc/classes/Win32/Console/API.src/M000076.html
109
+ - doc/classes/Win32/Console/API.src/M000077.html
110
+ - doc/classes/Win32/Console/API.src/M000078.html
111
+ - doc/classes/Win32/Console/API.src/M000079.html
112
+ - doc/classes/Win32/Console/API.src/M000080.html
113
+ - doc/classes/Win32/Console.src/M000001.html
114
+ - doc/classes/Win32/Console.src/M000002.html
115
+ - doc/classes/Win32/Console.src/M000003.html
116
+ - doc/classes/Win32/Console.src/M000004.html
117
+ - doc/classes/Win32/Console.src/M000005.html
118
+ - doc/classes/Win32/Console.src/M000006.html
119
+ - doc/classes/Win32/Console.src/M000007.html
120
+ - doc/classes/Win32/Console.src/M000008.html
121
+ - doc/classes/Win32/Console.src/M000009.html
122
+ - doc/classes/Win32/Console.src/M000010.html
123
+ - doc/classes/Win32/Console.src/M000011.html
124
+ - doc/classes/Win32/Console.src/M000012.html
125
+ - doc/classes/Win32/Console.src/M000013.html
126
+ - doc/classes/Win32/Console.src/M000014.html
127
+ - doc/classes/Win32/Console.src/M000015.html
128
+ - doc/classes/Win32/Console.src/M000016.html
129
+ - doc/classes/Win32/Console.src/M000017.html
130
+ - doc/classes/Win32/Console.src/M000018.html
131
+ - doc/classes/Win32/Console.src/M000019.html
132
+ - doc/classes/Win32/Console.src/M000020.html
133
+ - doc/classes/Win32/Console.src/M000021.html
134
+ - doc/classes/Win32/Console.src/M000022.html
135
+ - doc/classes/Win32/Console.src/M000023.html
136
+ - doc/classes/Win32/Console.src/M000024.html
137
+ - doc/classes/Win32/Console.src/M000025.html
138
+ - doc/classes/Win32/Console.src/M000026.html
139
+ - doc/classes/Win32/Console.src/M000027.html
140
+ - doc/classes/Win32/Console.src/M000028.html
141
+ - doc/classes/Win32/Console.src/M000029.html
142
+ - doc/classes/Win32/Console.src/M000030.html
143
+ - doc/classes/Win32/Console.src/M000031.html
144
+ - doc/classes/Win32/Console.src/M000032.html
145
+ - doc/classes/Win32/Console.src/M000033.html
146
+ - doc/classes/Win32/Console.src/M000034.html
147
+ - doc/files/Console_ANSI_rdoc.html
148
+ - doc/files/Console_cpp.html
149
+ - doc/files/Console_rdoc.html
150
+ - doc/files/lib
151
+ - doc/files/lib/Win32
152
+ - doc/files/lib/Win32/Console
153
+ - doc/files/lib/Win32/Console_rb.html
154
+ - doc/files/lib/Win32/Console/ANSI_rb.html
155
+ - Console-i386-mswin32.def
156
+ - Console.cpp
157
+ - Console.rdoc
158
+ - Console_ANSI.rdoc
159
+ - HISTORY.txt
160
+ - INSTALL.txt
161
+ - README.txt
162
+ - Rakefile
163
+ test_files: []
164
+
165
+ rdoc_options:
166
+ - --title
167
+ - Win32Console Gem -- Gem for Win32::Console Project
168
+ - --main
169
+ - lib/README_GEM.txt
170
+ - --line-numbers
171
+ extra_rdoc_files:
172
+ - lib/README_GEM.txt
173
+ executables: []
174
+
175
+ extensions: []
176
+
177
+ requirements: []
178
+
179
+ dependencies: []
180
+