clio 0.0.1 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (181) hide show
  1. data/CHANGES +66 -0
  2. data/MANIFEST +48 -169
  3. data/README +13 -17
  4. data/RELEASE +8 -0
  5. data/VERSION +1 -0
  6. data/lib/clio/buffer.rb +93 -0
  7. data/lib/clio/commandable.rb +71 -69
  8. data/lib/clio/commandline.rb +429 -230
  9. data/lib/clio/consoleutils.rb +0 -16
  10. data/lib/clio/facets/kernel.rb +13 -0
  11. data/lib/clio/facets/string.rb +25 -0
  12. data/lib/clio/layout.rb +14 -0
  13. data/lib/clio/layout/flow.rb +1 -0
  14. data/lib/clio/layout/line.rb +23 -0
  15. data/lib/clio/layout/list.rb +33 -0
  16. data/lib/clio/layout/split.rb +122 -0
  17. data/lib/clio/layout/stack.rb +17 -0
  18. data/lib/clio/layout/table.rb +46 -0
  19. data/lib/clio/progressbar.rb +189 -210
  20. data/lib/clio/string.rb +116 -109
  21. data/lib/clio/usage.rb +184 -0
  22. data/lib/clio/usage/argument.rb +84 -0
  23. data/lib/clio/usage/command.rb +440 -0
  24. data/lib/clio/usage/interface.rb +122 -0
  25. data/lib/clio/usage/main.rb +165 -0
  26. data/lib/clio/usage/option.rb +251 -0
  27. data/lib/clio/usage/parser.rb +191 -0
  28. data/lib/clio/usage/signature.rb +55 -0
  29. data/meta/abstract +3 -0
  30. data/meta/authors +1 -0
  31. data/meta/created +1 -0
  32. data/meta/homepage +1 -0
  33. data/meta/license +1 -0
  34. data/meta/repository +1 -0
  35. data/meta/summary +1 -0
  36. data/spec/commandline/autousage.rd +56 -0
  37. data/spec/commandline/bracket.rd +64 -0
  38. data/spec/commandline/completion.rd +38 -0
  39. data/spec/commandline/define.rd +44 -0
  40. data/spec/commandline/method.rd +60 -0
  41. data/spec/commandline/parse.rd +72 -0
  42. data/spec/commandline/scenario.rd +81 -0
  43. data/spec/commandline/subclass.rd +54 -0
  44. data/spec/string/unit.rd +58 -0
  45. data/spec/usage/define.rd +44 -0
  46. data/spec/usage/parse.rd +47 -0
  47. metadata +65 -196
  48. data/HISTORY +0 -11
  49. data/METADATA +0 -18
  50. data/NEWS +0 -10
  51. data/admin/config/reap.yaml +0 -30
  52. data/admin/depot/commandline.rb +0 -219
  53. data/admin/depot/multicommand.rb +0 -403
  54. data/admin/depot/test_multicommand.rb +0 -40
  55. data/admin/log/notes.xml +0 -28
  56. data/admin/log/stats.html +0 -25
  57. data/admin/log/syntax.log +0 -0
  58. data/admin/log/testunit.log +0 -16
  59. data/admin/pack/clio-0.0.1.gem +0 -0
  60. data/admin/share/reap/example.rb +0 -7
  61. data/admin/temps/lib/clio/about.rb.erb +0 -4
  62. data/lib/clio/command.rb +0 -296
  63. data/lib/clio/option.rb +0 -36
  64. data/lib/clio/runmode.rb +0 -126
  65. data/test/test_command.rb +0 -42
  66. data/test/test_commandline.rb +0 -83
  67. data/vendor/Console/Console.cpp +0 -1203
  68. data/vendor/Console/Console.rdoc +0 -690
  69. data/vendor/Console/Console_ANSI.rdoc +0 -302
  70. data/vendor/Console/HISTORY.txt +0 -7
  71. data/vendor/Console/INSTALL.txt +0 -18
  72. data/vendor/Console/Makefile +0 -162
  73. data/vendor/Console/README.txt +0 -26
  74. data/vendor/Console/doc/classes/Win32.html +0 -115
  75. data/vendor/Console/doc/classes/Win32/Console.html +0 -650
  76. data/vendor/Console/doc/classes/Win32/Console.src/M000001.html +0 -31
  77. data/vendor/Console/doc/classes/Win32/Console.src/M000002.html +0 -23
  78. data/vendor/Console/doc/classes/Win32/Console.src/M000003.html +0 -23
  79. data/vendor/Console/doc/classes/Win32/Console.src/M000004.html +0 -27
  80. data/vendor/Console/doc/classes/Win32/Console.src/M000005.html +0 -23
  81. data/vendor/Console/doc/classes/Win32/Console.src/M000006.html +0 -28
  82. data/vendor/Console/doc/classes/Win32/Console.src/M000007.html +0 -23
  83. data/vendor/Console/doc/classes/Win32/Console.src/M000008.html +0 -24
  84. data/vendor/Console/doc/classes/Win32/Console.src/M000009.html +0 -44
  85. data/vendor/Console/doc/classes/Win32/Console.src/M000010.html +0 -23
  86. data/vendor/Console/doc/classes/Win32/Console.src/M000011.html +0 -33
  87. data/vendor/Console/doc/classes/Win32/Console.src/M000012.html +0 -26
  88. data/vendor/Console/doc/classes/Win32/Console.src/M000013.html +0 -27
  89. data/vendor/Console/doc/classes/Win32/Console.src/M000014.html +0 -28
  90. data/vendor/Console/doc/classes/Win32/Console.src/M000015.html +0 -23
  91. data/vendor/Console/doc/classes/Win32/Console.src/M000016.html +0 -23
  92. data/vendor/Console/doc/classes/Win32/Console.src/M000017.html +0 -23
  93. data/vendor/Console/doc/classes/Win32/Console.src/M000018.html +0 -29
  94. data/vendor/Console/doc/classes/Win32/Console.src/M000019.html +0 -23
  95. data/vendor/Console/doc/classes/Win32/Console.src/M000020.html +0 -23
  96. data/vendor/Console/doc/classes/Win32/Console.src/M000021.html +0 -28
  97. data/vendor/Console/doc/classes/Win32/Console.src/M000022.html +0 -23
  98. data/vendor/Console/doc/classes/Win32/Console.src/M000023.html +0 -28
  99. data/vendor/Console/doc/classes/Win32/Console.src/M000024.html +0 -35
  100. data/vendor/Console/doc/classes/Win32/Console.src/M000025.html +0 -28
  101. data/vendor/Console/doc/classes/Win32/Console.src/M000026.html +0 -28
  102. data/vendor/Console/doc/classes/Win32/Console.src/M000027.html +0 -28
  103. data/vendor/Console/doc/classes/Win32/Console.src/M000028.html +0 -31
  104. data/vendor/Console/doc/classes/Win32/Console.src/M000029.html +0 -23
  105. data/vendor/Console/doc/classes/Win32/Console.src/M000030.html +0 -23
  106. data/vendor/Console/doc/classes/Win32/Console.src/M000031.html +0 -23
  107. data/vendor/Console/doc/classes/Win32/Console.src/M000032.html +0 -27
  108. data/vendor/Console/doc/classes/Win32/Console.src/M000033.html +0 -27
  109. data/vendor/Console/doc/classes/Win32/Console.src/M000034.html +0 -25
  110. data/vendor/Console/doc/classes/Win32/Console/ANSI.html +0 -103
  111. data/vendor/Console/doc/classes/Win32/Console/ANSI/IO.html +0 -220
  112. data/vendor/Console/doc/classes/Win32/Console/ANSI/IO.src/M000035.html +0 -32
  113. data/vendor/Console/doc/classes/Win32/Console/ANSI/IO.src/M000036.html +0 -205
  114. data/vendor/Console/doc/classes/Win32/Console/ANSI/IO.src/M000037.html +0 -40
  115. data/vendor/Console/doc/classes/Win32/Console/ANSI/IO.src/M000038.html +0 -25
  116. data/vendor/Console/doc/classes/Win32/Console/API.html +0 -758
  117. data/vendor/Console/doc/classes/Win32/Console/API.src/M000039.html +0 -27
  118. data/vendor/Console/doc/classes/Win32/Console/API.src/M000040.html +0 -27
  119. data/vendor/Console/doc/classes/Win32/Console/API.src/M000041.html +0 -27
  120. data/vendor/Console/doc/classes/Win32/Console/API.src/M000042.html +0 -32
  121. data/vendor/Console/doc/classes/Win32/Console/API.src/M000043.html +0 -32
  122. data/vendor/Console/doc/classes/Win32/Console/API.src/M000044.html +0 -28
  123. data/vendor/Console/doc/classes/Win32/Console/API.src/M000045.html +0 -26
  124. data/vendor/Console/doc/classes/Win32/Console/API.src/M000046.html +0 -26
  125. data/vendor/Console/doc/classes/Win32/Console/API.src/M000047.html +0 -27
  126. data/vendor/Console/doc/classes/Win32/Console/API.src/M000048.html +0 -30
  127. data/vendor/Console/doc/classes/Win32/Console/API.src/M000049.html +0 -29
  128. data/vendor/Console/doc/classes/Win32/Console/API.src/M000050.html +0 -27
  129. data/vendor/Console/doc/classes/Win32/Console/API.src/M000051.html +0 -28
  130. data/vendor/Console/doc/classes/Win32/Console/API.src/M000052.html +0 -30
  131. data/vendor/Console/doc/classes/Win32/Console/API.src/M000053.html +0 -27
  132. data/vendor/Console/doc/classes/Win32/Console/API.src/M000054.html +0 -29
  133. data/vendor/Console/doc/classes/Win32/Console/API.src/M000055.html +0 -29
  134. data/vendor/Console/doc/classes/Win32/Console/API.src/M000056.html +0 -28
  135. data/vendor/Console/doc/classes/Win32/Console/API.src/M000057.html +0 -27
  136. data/vendor/Console/doc/classes/Win32/Console/API.src/M000058.html +0 -47
  137. data/vendor/Console/doc/classes/Win32/Console/API.src/M000059.html +0 -32
  138. data/vendor/Console/doc/classes/Win32/Console/API.src/M000060.html +0 -47
  139. data/vendor/Console/doc/classes/Win32/Console/API.src/M000061.html +0 -34
  140. data/vendor/Console/doc/classes/Win32/Console/API.src/M000062.html +0 -32
  141. data/vendor/Console/doc/classes/Win32/Console/API.src/M000063.html +0 -32
  142. data/vendor/Console/doc/classes/Win32/Console/API.src/M000064.html +0 -35
  143. data/vendor/Console/doc/classes/Win32/Console/API.src/M000065.html +0 -26
  144. data/vendor/Console/doc/classes/Win32/Console/API.src/M000066.html +0 -27
  145. data/vendor/Console/doc/classes/Win32/Console/API.src/M000067.html +0 -29
  146. data/vendor/Console/doc/classes/Win32/Console/API.src/M000068.html +0 -27
  147. data/vendor/Console/doc/classes/Win32/Console/API.src/M000069.html +0 -27
  148. data/vendor/Console/doc/classes/Win32/Console/API.src/M000070.html +0 -28
  149. data/vendor/Console/doc/classes/Win32/Console/API.src/M000071.html +0 -27
  150. data/vendor/Console/doc/classes/Win32/Console/API.src/M000072.html +0 -26
  151. data/vendor/Console/doc/classes/Win32/Console/API.src/M000073.html +0 -27
  152. data/vendor/Console/doc/classes/Win32/Console/API.src/M000074.html +0 -31
  153. data/vendor/Console/doc/classes/Win32/Console/API.src/M000075.html +0 -27
  154. data/vendor/Console/doc/classes/Win32/Console/API.src/M000076.html +0 -32
  155. data/vendor/Console/doc/classes/Win32/Console/API.src/M000077.html +0 -27
  156. data/vendor/Console/doc/classes/Win32/Console/API.src/M000078.html +0 -32
  157. data/vendor/Console/doc/classes/Win32/Console/API.src/M000079.html +0 -32
  158. data/vendor/Console/doc/classes/Win32/Console/API.src/M000080.html +0 -32
  159. data/vendor/Console/doc/classes/Win32/Console/Constants.html +0 -360
  160. data/vendor/Console/doc/created.rid +0 -1
  161. data/vendor/Console/doc/files/Console_ANSI_rdoc.html +0 -407
  162. data/vendor/Console/doc/files/Console_cpp.html +0 -104
  163. data/vendor/Console/doc/files/Console_rdoc.html +0 -964
  164. data/vendor/Console/doc/files/lib/Win32/Console/ANSI_rb.html +0 -123
  165. data/vendor/Console/doc/files/lib/Win32/Console_rb.html +0 -297
  166. data/vendor/Console/doc/fr_class_index.html +0 -32
  167. data/vendor/Console/doc/fr_file_index.html +0 -31
  168. data/vendor/Console/doc/fr_method_index.html +0 -106
  169. data/vendor/Console/doc/index.html +0 -24
  170. data/vendor/Console/doc/rdoc-style.css +0 -172
  171. data/vendor/Console/extconf.rb +0 -18
  172. data/vendor/Console/lib/Term/ansicolor.rb +0 -76
  173. data/vendor/Console/lib/Win32/Console.rb +0 -970
  174. data/vendor/Console/lib/Win32/Console/ANSI.rb +0 -305
  175. data/vendor/Console/test/test_cursor.rb +0 -9
  176. data/vendor/Console/test/test_mouse.rb +0 -6
  177. data/vendor/Console/test/test_readinput.rb +0 -62
  178. data/vendor/Console/test/test_readoutput.rb +0 -52
  179. data/vendor/Console/test/test_sendevent.rb +0 -17
  180. data/vendor/Console/test/test_title.rb +0 -14
  181. data/vendor/Console/test/test_write.rb +0 -36
@@ -1,27 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "DTD/xhtml1-transitional.dtd">
5
-
6
- <!--
7
-
8
- constant (Win32::Console::API)
9
-
10
- -->
11
- <html>
12
- <head>
13
- <title>constant (Win32::Console::API)</title>
14
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
15
- <link rel="stylesheet" href="http://www.FaerieMUD.org/stylesheets/rdoc.css" type="text/css" />
16
- </head>
17
- <body>
18
- <pre><span class="ruby-comment cmt"># File lib\Win32/Console.rb, line 137</span>
19
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">constant</span>(<span class="ruby-identifier">t</span>)
20
- <span class="ruby-keyword kw">begin</span>
21
- <span class="ruby-identifier">eval</span> <span class="ruby-node">&quot;return Win32::Console::Constants::#{t}&quot;</span>
22
- <span class="ruby-keyword kw">rescue</span>
23
- <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">nil</span>
24
- <span class="ruby-keyword kw">end</span>
25
- <span class="ruby-keyword kw">end</span></pre>
26
- </body>
27
- </html>
@@ -1,27 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "DTD/xhtml1-transitional.dtd">
5
-
6
- <!--
7
-
8
- AllocConsole (Win32::Console::API)
9
-
10
- -->
11
- <html>
12
- <head>
13
- <title>AllocConsole (Win32::Console::API)</title>
14
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
15
- <link rel="stylesheet" href="http://www.FaerieMUD.org/stylesheets/rdoc.css" type="text/css" />
16
- </head>
17
- <body>
18
- <pre><span class="ruby-comment cmt"># File lib\Win32/Console.rb, line 146</span>
19
- <span class="ruby-keyword kw">def</span> <span class="ruby-constant">AllocConsole</span>()
20
- <span class="ruby-keyword kw">if</span> @<span class="ruby-ivar">@m_AllocConsole</span> <span class="ruby-operator">==</span> <span class="ruby-keyword kw">nil</span>
21
- @<span class="ruby-ivar">@m_AllocConsole</span> = <span class="ruby-constant">Win32API</span>.<span class="ruby-identifier">new</span>( <span class="ruby-value str">&quot;kernel32&quot;</span>, <span class="ruby-value str">&quot;AllocConsole&quot;</span>,
22
- [], <span class="ruby-value str">'l'</span> )
23
- <span class="ruby-keyword kw">end</span>
24
- @<span class="ruby-ivar">@m_AllocConsole</span>.<span class="ruby-identifier">call</span>()
25
- <span class="ruby-keyword kw">end</span></pre>
26
- </body>
27
- </html>
@@ -1,27 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "DTD/xhtml1-transitional.dtd">
5
-
6
- <!--
7
-
8
- CreateConsoleScreenBuffer (Win32::Console::API)
9
-
10
- -->
11
- <html>
12
- <head>
13
- <title>CreateConsoleScreenBuffer (Win32::Console::API)</title>
14
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
15
- <link rel="stylesheet" href="http://www.FaerieMUD.org/stylesheets/rdoc.css" type="text/css" />
16
- </head>
17
- <body>
18
- <pre><span class="ruby-comment cmt"># File lib\Win32/Console.rb, line 154</span>
19
- <span class="ruby-keyword kw">def</span> <span class="ruby-constant">CreateConsoleScreenBuffer</span>( <span class="ruby-identifier">dwDesiredAccess</span>, <span class="ruby-identifier">dwShareMode</span>, <span class="ruby-identifier">dwFlags</span> )
20
- <span class="ruby-keyword kw">if</span> @<span class="ruby-ivar">@m_CreateConsoleScreenBuffer</span> <span class="ruby-operator">==</span> <span class="ruby-keyword kw">nil</span>
21
- @<span class="ruby-ivar">@m_CreateConsoleScreenBuffer</span> = <span class="ruby-constant">Win32API</span>.<span class="ruby-identifier">new</span>( <span class="ruby-value str">&quot;kernel32&quot;</span>, <span class="ruby-value str">&quot;CreateConsoleScreenBuffer&quot;</span>, [<span class="ruby-value str">'l'</span>, <span class="ruby-value str">'l'</span>, <span class="ruby-value str">'p'</span>, <span class="ruby-value str">'l'</span>, <span class="ruby-value str">'p'</span>], <span class="ruby-value str">'l'</span> )
22
- <span class="ruby-keyword kw">end</span>
23
- @<span class="ruby-ivar">@m_CreateConsoleScreenBuffer</span>.<span class="ruby-identifier">call</span>( <span class="ruby-identifier">dwDesiredAccess</span>, <span class="ruby-identifier">dwShareMode</span>,
24
- <span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">dwFlags</span>, <span class="ruby-keyword kw">nil</span> )
25
- <span class="ruby-keyword kw">end</span></pre>
26
- </body>
27
- </html>
@@ -1,32 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "DTD/xhtml1-transitional.dtd">
5
-
6
- <!--
7
-
8
- FillConsoleOutputAttribute (Win32::Console::API)
9
-
10
- -->
11
- <html>
12
- <head>
13
- <title>FillConsoleOutputAttribute (Win32::Console::API)</title>
14
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
15
- <link rel="stylesheet" href="http://www.FaerieMUD.org/stylesheets/rdoc.css" type="text/css" />
16
- </head>
17
- <body>
18
- <pre><span class="ruby-comment cmt"># File lib\Win32/Console.rb, line 164</span>
19
- <span class="ruby-keyword kw">def</span> <span class="ruby-constant">FillConsoleOutputAttribute</span>( <span class="ruby-identifier">hConsoleOutput</span>, <span class="ruby-identifier">wAttribute</span>, <span class="ruby-identifier">nLength</span>,
20
- <span class="ruby-identifier">col</span>, <span class="ruby-identifier">row</span> )
21
- <span class="ruby-keyword kw">if</span> @<span class="ruby-ivar">@m_FillConsoleOutputAttribute</span> <span class="ruby-operator">==</span> <span class="ruby-keyword kw">nil</span>
22
- @<span class="ruby-ivar">@m_FillConsoleOutputAttribute</span> = <span class="ruby-constant">Win32API</span>.<span class="ruby-identifier">new</span>( <span class="ruby-value str">&quot;kernel32&quot;</span>, <span class="ruby-value str">&quot;FillConsoleOutputAttribute&quot;</span>, [<span class="ruby-value str">'l'</span>, <span class="ruby-value str">'i'</span>, <span class="ruby-value str">'l'</span>, <span class="ruby-value str">'l'</span>, <span class="ruby-value str">'p'</span>], <span class="ruby-value str">'l'</span> )
23
- <span class="ruby-keyword kw">end</span>
24
- <span class="ruby-identifier">dwWriteCoord</span> = (<span class="ruby-identifier">row</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value">16</span>) <span class="ruby-operator">+</span> <span class="ruby-identifier">col</span>
25
- <span class="ruby-identifier">lpNumberOfAttrsWritten</span> = <span class="ruby-value str">' '</span> <span class="ruby-operator">*</span> <span class="ruby-value">4</span>
26
- @<span class="ruby-ivar">@m_FillConsoleOutputAttribute</span>.<span class="ruby-identifier">call</span>( <span class="ruby-identifier">hConsoleOutput</span>, <span class="ruby-identifier">wAttribute</span>,
27
- <span class="ruby-identifier">nLength</span>, <span class="ruby-identifier">dwWriteCoord</span>,
28
- <span class="ruby-identifier">lpNumberOfAttrsWritten</span> )
29
- <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">lpNumberOfAttrsWritten</span>.<span class="ruby-identifier">unpack</span>(<span class="ruby-value str">'L'</span>)
30
- <span class="ruby-keyword kw">end</span></pre>
31
- </body>
32
- </html>
@@ -1,32 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "DTD/xhtml1-transitional.dtd">
5
-
6
- <!--
7
-
8
- FillConsoleOutputCharacter (Win32::Console::API)
9
-
10
- -->
11
- <html>
12
- <head>
13
- <title>FillConsoleOutputCharacter (Win32::Console::API)</title>
14
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
15
- <link rel="stylesheet" href="http://www.FaerieMUD.org/stylesheets/rdoc.css" type="text/css" />
16
- </head>
17
- <body>
18
- <pre><span class="ruby-comment cmt"># File lib\Win32/Console.rb, line 179</span>
19
- <span class="ruby-keyword kw">def</span> <span class="ruby-constant">FillConsoleOutputCharacter</span>( <span class="ruby-identifier">hConsoleOutput</span>, <span class="ruby-identifier">cCharacter</span>, <span class="ruby-identifier">nLength</span>,
20
- <span class="ruby-identifier">col</span>, <span class="ruby-identifier">row</span> )
21
- <span class="ruby-keyword kw">if</span> @<span class="ruby-ivar">@m_FillConsoleOutputCharacter</span> <span class="ruby-operator">==</span> <span class="ruby-keyword kw">nil</span>
22
- @<span class="ruby-ivar">@m_FillConsoleOutputCharacter</span> = <span class="ruby-constant">Win32API</span>.<span class="ruby-identifier">new</span>( <span class="ruby-value str">&quot;kernel32&quot;</span>, <span class="ruby-value str">&quot;FillConsoleOutputCharacter&quot;</span>, [<span class="ruby-value str">'l'</span>, <span class="ruby-value str">'i'</span>, <span class="ruby-value str">'l'</span>, <span class="ruby-value str">'l'</span>, <span class="ruby-value str">'p'</span>], <span class="ruby-value str">'l'</span> )
23
- <span class="ruby-keyword kw">end</span>
24
- <span class="ruby-identifier">dwWriteCoord</span> = (<span class="ruby-identifier">row</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value">16</span>) <span class="ruby-operator">+</span> <span class="ruby-identifier">col</span>
25
- <span class="ruby-identifier">lpNumberOfAttrsWritten</span> = <span class="ruby-value str">' '</span> <span class="ruby-operator">*</span> <span class="ruby-value">4</span>
26
- @<span class="ruby-ivar">@m_FillConsoleOutputCharacter</span>.<span class="ruby-identifier">call</span>( <span class="ruby-identifier">hConsoleOutput</span>, <span class="ruby-identifier">cCharacter</span>,
27
- <span class="ruby-identifier">nLength</span>, <span class="ruby-identifier">dwWriteCoord</span>,
28
- <span class="ruby-identifier">lpNumberOfAttrsWritten</span> )
29
- <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">lpNumberOfAttrsWritten</span>.<span class="ruby-identifier">unpack</span>(<span class="ruby-value str">'L'</span>)
30
- <span class="ruby-keyword kw">end</span></pre>
31
- </body>
32
- </html>
@@ -1,28 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "DTD/xhtml1-transitional.dtd">
5
-
6
- <!--
7
-
8
- FlushConsoleInputBuffer (Win32::Console::API)
9
-
10
- -->
11
- <html>
12
- <head>
13
- <title>FlushConsoleInputBuffer (Win32::Console::API)</title>
14
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
15
- <link rel="stylesheet" href="http://www.FaerieMUD.org/stylesheets/rdoc.css" type="text/css" />
16
- </head>
17
- <body>
18
- <pre><span class="ruby-comment cmt"># File lib\Win32/Console.rb, line 193</span>
19
- <span class="ruby-keyword kw">def</span> <span class="ruby-constant">FlushConsoleInputBuffer</span>( <span class="ruby-identifier">hConsoleInput</span> )
20
- <span class="ruby-keyword kw">if</span> @<span class="ruby-ivar">@m_FlushConsoleInputBuffer</span> <span class="ruby-operator">==</span> <span class="ruby-keyword kw">nil</span>
21
- @<span class="ruby-ivar">@m_FlushConsoleInputBuffer</span> = <span class="ruby-constant">Win32API</span>.<span class="ruby-identifier">new</span>( <span class="ruby-value str">&quot;kernel32&quot;</span>,
22
- <span class="ruby-value str">&quot;FillConsoleInputBuffer&quot;</span>,
23
- [<span class="ruby-value str">'l'</span>], <span class="ruby-value str">'l'</span> )
24
- <span class="ruby-keyword kw">end</span>
25
- @<span class="ruby-ivar">@m_FlushConsoleInputBuffer</span>.<span class="ruby-identifier">call</span>( <span class="ruby-identifier">hConsoleInput</span> )
26
- <span class="ruby-keyword kw">end</span></pre>
27
- </body>
28
- </html>
@@ -1,26 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "DTD/xhtml1-transitional.dtd">
5
-
6
- <!--
7
-
8
- FreeConsole (Win32::Console::API)
9
-
10
- -->
11
- <html>
12
- <head>
13
- <title>FreeConsole (Win32::Console::API)</title>
14
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
15
- <link rel="stylesheet" href="http://www.FaerieMUD.org/stylesheets/rdoc.css" type="text/css" />
16
- </head>
17
- <body>
18
- <pre><span class="ruby-comment cmt"># File lib\Win32/Console.rb, line 203</span>
19
- <span class="ruby-keyword kw">def</span> <span class="ruby-constant">FreeConsole</span>()
20
- <span class="ruby-keyword kw">if</span> @<span class="ruby-ivar">@m_FreeConsole</span> <span class="ruby-operator">==</span> <span class="ruby-keyword kw">nil</span>
21
- @<span class="ruby-ivar">@m_FreeConsole</span> = <span class="ruby-constant">Win32API</span>.<span class="ruby-identifier">new</span>( <span class="ruby-value str">&quot;kernel32&quot;</span>, <span class="ruby-value str">&quot;FreeConsole&quot;</span>, [], <span class="ruby-value str">'l'</span> )
22
- <span class="ruby-keyword kw">end</span>
23
- @<span class="ruby-ivar">@m_FreeConsole</span>.<span class="ruby-identifier">call</span>()
24
- <span class="ruby-keyword kw">end</span></pre>
25
- </body>
26
- </html>
@@ -1,26 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "DTD/xhtml1-transitional.dtd">
5
-
6
- <!--
7
-
8
- GenerateConsoleCtrlEvent (Win32::Console::API)
9
-
10
- -->
11
- <html>
12
- <head>
13
- <title>GenerateConsoleCtrlEvent (Win32::Console::API)</title>
14
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
15
- <link rel="stylesheet" href="http://www.FaerieMUD.org/stylesheets/rdoc.css" type="text/css" />
16
- </head>
17
- <body>
18
- <pre><span class="ruby-comment cmt"># File lib\Win32/Console.rb, line 211</span>
19
- <span class="ruby-keyword kw">def</span> <span class="ruby-constant">GenerateConsoleCtrlEvent</span>( <span class="ruby-identifier">dwCtrlEvent</span>, <span class="ruby-identifier">dwProcessGroupId</span> )
20
- <span class="ruby-keyword kw">if</span> @<span class="ruby-ivar">@m_GenerateConsoleCtrlEvent</span> <span class="ruby-operator">==</span> <span class="ruby-keyword kw">nil</span>
21
- @<span class="ruby-ivar">@m_GenerateConsoleCtrlEvent</span> = <span class="ruby-constant">Win32API</span>.<span class="ruby-identifier">new</span>( <span class="ruby-value str">&quot;kernel32&quot;</span>, <span class="ruby-value str">&quot;GenerateConsoleCtrlEvent&quot;</span>, [<span class="ruby-value str">'l'</span>, <span class="ruby-value str">'l'</span>], <span class="ruby-value str">'l'</span> )
22
- <span class="ruby-keyword kw">end</span>
23
- @<span class="ruby-ivar">@m_GenerateConsoleCtrlEvent</span>.<span class="ruby-identifier">call</span>( <span class="ruby-identifier">dwCtrlEvent</span>, <span class="ruby-identifier">dwProcessGroupId</span> )
24
- <span class="ruby-keyword kw">end</span></pre>
25
- </body>
26
- </html>
@@ -1,27 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "DTD/xhtml1-transitional.dtd">
5
-
6
- <!--
7
-
8
- GetConsoleCP (Win32::Console::API)
9
-
10
- -->
11
- <html>
12
- <head>
13
- <title>GetConsoleCP (Win32::Console::API)</title>
14
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
15
- <link rel="stylesheet" href="http://www.FaerieMUD.org/stylesheets/rdoc.css" type="text/css" />
16
- </head>
17
- <body>
18
- <pre><span class="ruby-comment cmt"># File lib\Win32/Console.rb, line 218</span>
19
- <span class="ruby-keyword kw">def</span> <span class="ruby-constant">GetConsoleCP</span>()
20
- <span class="ruby-keyword kw">if</span> @<span class="ruby-ivar">@m_GetConsoleCP</span> <span class="ruby-operator">==</span> <span class="ruby-keyword kw">nil</span>
21
- @<span class="ruby-ivar">@m_GetConsoleCP</span> = <span class="ruby-constant">Win32API</span>.<span class="ruby-identifier">new</span>( <span class="ruby-value str">&quot;kernel32&quot;</span>, <span class="ruby-value str">&quot;GetConsoleCP&quot;</span>,
22
- [], <span class="ruby-value str">'l'</span> )
23
- <span class="ruby-keyword kw">end</span>
24
- @<span class="ruby-ivar">@m_GetConsoleCP</span>.<span class="ruby-identifier">call</span>()
25
- <span class="ruby-keyword kw">end</span></pre>
26
- </body>
27
- </html>
@@ -1,30 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "DTD/xhtml1-transitional.dtd">
5
-
6
- <!--
7
-
8
- GetConsoleCursorInfo (Win32::Console::API)
9
-
10
- -->
11
- <html>
12
- <head>
13
- <title>GetConsoleCursorInfo (Win32::Console::API)</title>
14
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
15
- <link rel="stylesheet" href="http://www.FaerieMUD.org/stylesheets/rdoc.css" type="text/css" />
16
- </head>
17
- <body>
18
- <pre><span class="ruby-comment cmt"># File lib\Win32/Console.rb, line 226</span>
19
- <span class="ruby-keyword kw">def</span> <span class="ruby-constant">GetConsoleCursorInfo</span>( <span class="ruby-identifier">hConsoleOutput</span> )
20
- <span class="ruby-keyword kw">if</span> @<span class="ruby-ivar">@m_GetConsoleCursorInfo</span> <span class="ruby-operator">==</span> <span class="ruby-keyword kw">nil</span>
21
- @<span class="ruby-ivar">@m_GetConsoleCursorInfo</span> = <span class="ruby-constant">Win32API</span>.<span class="ruby-identifier">new</span>( <span class="ruby-value str">&quot;kernel32&quot;</span>,
22
- <span class="ruby-value str">&quot;GetConsoleCursorInfo&quot;</span>,
23
- [<span class="ruby-value str">'l'</span>, <span class="ruby-value str">'p'</span>], <span class="ruby-value str">'l'</span> )
24
- <span class="ruby-keyword kw">end</span>
25
- <span class="ruby-identifier">lpConsoleCursorInfo</span> = <span class="ruby-value str">' '</span> <span class="ruby-operator">*</span> <span class="ruby-value">8</span>
26
- @<span class="ruby-ivar">@m_GetConsoleCursorInfo</span>.<span class="ruby-identifier">call</span>( <span class="ruby-identifier">hConsoleOutput</span>, <span class="ruby-identifier">lpConsoleCursorInfo</span> )
27
- <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">lpConsoleCursorInfo</span>.<span class="ruby-identifier">unpack</span>(<span class="ruby-value str">'LL'</span>)
28
- <span class="ruby-keyword kw">end</span></pre>
29
- </body>
30
- </html>
@@ -1,29 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "DTD/xhtml1-transitional.dtd">
5
-
6
- <!--
7
-
8
- GetConsoleMode (Win32::Console::API)
9
-
10
- -->
11
- <html>
12
- <head>
13
- <title>GetConsoleMode (Win32::Console::API)</title>
14
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
15
- <link rel="stylesheet" href="http://www.FaerieMUD.org/stylesheets/rdoc.css" type="text/css" />
16
- </head>
17
- <body>
18
- <pre><span class="ruby-comment cmt"># File lib\Win32/Console.rb, line 237</span>
19
- <span class="ruby-keyword kw">def</span> <span class="ruby-constant">GetConsoleMode</span>( <span class="ruby-identifier">hConsoleHandle</span> )
20
- <span class="ruby-keyword kw">if</span> @<span class="ruby-ivar">@m_GetConsoleMode</span> <span class="ruby-operator">==</span> <span class="ruby-keyword kw">nil</span>
21
- @<span class="ruby-ivar">@m_GetConsoleMode</span> = <span class="ruby-constant">Win32API</span>.<span class="ruby-identifier">new</span>( <span class="ruby-value str">&quot;kernel32&quot;</span>, <span class="ruby-value str">&quot;GetConsoleMode&quot;</span>,
22
- [<span class="ruby-value str">'l'</span>, <span class="ruby-value str">'p'</span>], <span class="ruby-value str">'l'</span> )
23
- <span class="ruby-keyword kw">end</span>
24
- <span class="ruby-identifier">lpMode</span> = <span class="ruby-value str">' '</span> <span class="ruby-operator">*</span> <span class="ruby-value">4</span>
25
- @<span class="ruby-ivar">@m_GetConsoleMode</span>.<span class="ruby-identifier">call</span>( <span class="ruby-identifier">hConsoleHandle</span>, <span class="ruby-identifier">lpMode</span> )
26
- <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">lpMode</span>.<span class="ruby-identifier">unpack</span>(<span class="ruby-value str">'L'</span>)
27
- <span class="ruby-keyword kw">end</span></pre>
28
- </body>
29
- </html>
@@ -1,27 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "DTD/xhtml1-transitional.dtd">
5
-
6
- <!--
7
-
8
- GetConsoleOutputCP (Win32::Console::API)
9
-
10
- -->
11
- <html>
12
- <head>
13
- <title>GetConsoleOutputCP (Win32::Console::API)</title>
14
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
15
- <link rel="stylesheet" href="http://www.FaerieMUD.org/stylesheets/rdoc.css" type="text/css" />
16
- </head>
17
- <body>
18
- <pre><span class="ruby-comment cmt"># File lib\Win32/Console.rb, line 247</span>
19
- <span class="ruby-keyword kw">def</span> <span class="ruby-constant">GetConsoleOutputCP</span>()
20
- <span class="ruby-keyword kw">if</span> @<span class="ruby-ivar">@m_GetConsoleOutputCP</span> <span class="ruby-operator">==</span> <span class="ruby-keyword kw">nil</span>
21
- @<span class="ruby-ivar">@m_GetConsoleOutputCP</span> = <span class="ruby-constant">Win32API</span>.<span class="ruby-identifier">new</span>( <span class="ruby-value str">&quot;kernel32&quot;</span>,
22
- <span class="ruby-value str">&quot;GetConsoleOutputCP&quot;</span>, [], <span class="ruby-value str">'l'</span> )
23
- <span class="ruby-keyword kw">end</span>
24
- @<span class="ruby-ivar">@m_GetConsoleOutputCP</span>.<span class="ruby-identifier">call</span>()
25
- <span class="ruby-keyword kw">end</span></pre>
26
- </body>
27
- </html>
@@ -1,28 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "DTD/xhtml1-transitional.dtd">
5
-
6
- <!--
7
-
8
- GetConsoleScreenBufferInfo (Win32::Console::API)
9
-
10
- -->
11
- <html>
12
- <head>
13
- <title>GetConsoleScreenBufferInfo (Win32::Console::API)</title>
14
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
15
- <link rel="stylesheet" href="http://www.FaerieMUD.org/stylesheets/rdoc.css" type="text/css" />
16
- </head>
17
- <body>
18
- <pre><span class="ruby-comment cmt"># File lib\Win32/Console.rb, line 255</span>
19
- <span class="ruby-keyword kw">def</span> <span class="ruby-constant">GetConsoleScreenBufferInfo</span>( <span class="ruby-identifier">hConsoleOutput</span> )
20
- <span class="ruby-keyword kw">if</span> @<span class="ruby-ivar">@m_GetConsoleScreenBufferInfo</span> <span class="ruby-operator">==</span> <span class="ruby-keyword kw">nil</span>
21
- @<span class="ruby-ivar">@m_GetConsoleScreenBufferInfo</span> = <span class="ruby-constant">Win32API</span>.<span class="ruby-identifier">new</span>( <span class="ruby-value str">&quot;kernel32&quot;</span>, <span class="ruby-value str">&quot;GetConsoleScreenBufferInfo&quot;</span>, [<span class="ruby-value str">'l'</span>, <span class="ruby-value str">'p'</span>], <span class="ruby-value str">'l'</span> )
22
- <span class="ruby-keyword kw">end</span>
23
- <span class="ruby-identifier">lpBuffer</span> = <span class="ruby-value str">' '</span> <span class="ruby-operator">*</span> <span class="ruby-value">22</span>
24
- @<span class="ruby-ivar">@m_GetConsoleScreenBufferInfo</span>.<span class="ruby-identifier">call</span>( <span class="ruby-identifier">hConsoleOutput</span>, <span class="ruby-identifier">lpBuffer</span> )
25
- <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">lpBuffer</span>.<span class="ruby-identifier">unpack</span>(<span class="ruby-value str">'SSSSSssssSS'</span>)
26
- <span class="ruby-keyword kw">end</span></pre>
27
- </body>
28
- </html>
@@ -1,30 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "DTD/xhtml1-transitional.dtd">
5
-
6
- <!--
7
-
8
- GetConsoleTitle (Win32::Console::API)
9
-
10
- -->
11
- <html>
12
- <head>
13
- <title>GetConsoleTitle (Win32::Console::API)</title>
14
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
15
- <link rel="stylesheet" href="http://www.FaerieMUD.org/stylesheets/rdoc.css" type="text/css" />
16
- </head>
17
- <body>
18
- <pre><span class="ruby-comment cmt"># File lib\Win32/Console.rb, line 264</span>
19
- <span class="ruby-keyword kw">def</span> <span class="ruby-constant">GetConsoleTitle</span>()
20
- <span class="ruby-keyword kw">if</span> @<span class="ruby-ivar">@m_GetConsoleTitle</span> <span class="ruby-operator">==</span> <span class="ruby-keyword kw">nil</span>
21
- @<span class="ruby-ivar">@m_GetConsoleTitle</span> = <span class="ruby-constant">Win32API</span>.<span class="ruby-identifier">new</span>( <span class="ruby-value str">&quot;kernel32&quot;</span>, <span class="ruby-value str">&quot;GetConsoleTitle&quot;</span>,
22
- [<span class="ruby-value str">'p'</span>, <span class="ruby-value str">'l'</span>], <span class="ruby-value str">'l'</span> )
23
- <span class="ruby-keyword kw">end</span>
24
- <span class="ruby-identifier">nSize</span> = <span class="ruby-value">120</span>
25
- <span class="ruby-identifier">lpConsoleTitle</span> = <span class="ruby-value str">' '</span> <span class="ruby-operator">*</span> <span class="ruby-identifier">nSize</span>
26
- @<span class="ruby-ivar">@m_GetConsoleTitle</span>.<span class="ruby-identifier">call</span>( <span class="ruby-identifier">lpConsoleTitle</span>, <span class="ruby-identifier">nSize</span> )
27
- <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">lpConsoleTitle</span>.<span class="ruby-identifier">strip</span>
28
- <span class="ruby-keyword kw">end</span></pre>
29
- </body>
30
- </html>
@@ -1,27 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "DTD/xhtml1-transitional.dtd">
5
-
6
- <!--
7
-
8
- GetConsoleWindow (Win32::Console::API)
9
-
10
- -->
11
- <html>
12
- <head>
13
- <title>GetConsoleWindow (Win32::Console::API)</title>
14
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
15
- <link rel="stylesheet" href="http://www.FaerieMUD.org/stylesheets/rdoc.css" type="text/css" />
16
- </head>
17
- <body>
18
- <pre><span class="ruby-comment cmt"># File lib\Win32/Console.rb, line 275</span>
19
- <span class="ruby-keyword kw">def</span> <span class="ruby-constant">GetConsoleWindow</span>()
20
- <span class="ruby-keyword kw">if</span> @<span class="ruby-ivar">@m_GetConsoleWindow</span> <span class="ruby-operator">==</span> <span class="ruby-keyword kw">nil</span>
21
- @<span class="ruby-ivar">@m_GetConsoleWindow</span> = <span class="ruby-constant">Win32API</span>.<span class="ruby-identifier">new</span>( <span class="ruby-value str">&quot;kernel32&quot;</span>, <span class="ruby-value str">&quot;GetConsoleWindow&quot;</span>,
22
- [], <span class="ruby-value str">'l'</span> )
23
- <span class="ruby-keyword kw">end</span>
24
- @<span class="ruby-ivar">@m_GetConsoleWindow</span>.<span class="ruby-identifier">call</span>()
25
- <span class="ruby-keyword kw">end</span></pre>
26
- </body>
27
- </html>