win32console 1.0.8-i386-mswin32 → 1.1.0-i386-mswin32
Sign up to get free protection for your applications and to get access to all the features.
- data/Console.cpp +15 -0
- data/HISTORY_GEM.txt +34 -0
- data/README.txt +0 -1
- data/{lib/README_GEM.txt → README_GEM.txt} +1 -1
- data/Rakefile +5 -5
- data/lib/Console.so +0 -0
- data/lib/Win32/Console/ANSI.rb +283 -240
- data/lib/Win32/Console/api.rb +342 -0
- data/lib/Win32/Console/constants.rb +66 -0
- data/lib/Win32/Console.rb +77 -675
- metadata +10 -114
- data/doc/classes/Win32/Console/ANSI/IO.html +0 -220
- data/doc/classes/Win32/Console/ANSI/IO.src/M000035.html +0 -32
- data/doc/classes/Win32/Console/ANSI/IO.src/M000036.html +0 -205
- data/doc/classes/Win32/Console/ANSI/IO.src/M000037.html +0 -40
- data/doc/classes/Win32/Console/ANSI/IO.src/M000038.html +0 -25
- data/doc/classes/Win32/Console/ANSI.html +0 -103
- data/doc/classes/Win32/Console/API.html +0 -758
- data/doc/classes/Win32/Console/API.src/M000039.html +0 -27
- data/doc/classes/Win32/Console/API.src/M000040.html +0 -27
- data/doc/classes/Win32/Console/API.src/M000041.html +0 -27
- data/doc/classes/Win32/Console/API.src/M000042.html +0 -32
- data/doc/classes/Win32/Console/API.src/M000043.html +0 -32
- data/doc/classes/Win32/Console/API.src/M000044.html +0 -28
- data/doc/classes/Win32/Console/API.src/M000045.html +0 -26
- data/doc/classes/Win32/Console/API.src/M000046.html +0 -26
- data/doc/classes/Win32/Console/API.src/M000047.html +0 -27
- data/doc/classes/Win32/Console/API.src/M000048.html +0 -30
- data/doc/classes/Win32/Console/API.src/M000049.html +0 -29
- data/doc/classes/Win32/Console/API.src/M000050.html +0 -27
- data/doc/classes/Win32/Console/API.src/M000051.html +0 -28
- data/doc/classes/Win32/Console/API.src/M000052.html +0 -30
- data/doc/classes/Win32/Console/API.src/M000053.html +0 -27
- data/doc/classes/Win32/Console/API.src/M000054.html +0 -29
- data/doc/classes/Win32/Console/API.src/M000055.html +0 -29
- data/doc/classes/Win32/Console/API.src/M000056.html +0 -28
- data/doc/classes/Win32/Console/API.src/M000057.html +0 -27
- data/doc/classes/Win32/Console/API.src/M000058.html +0 -47
- data/doc/classes/Win32/Console/API.src/M000059.html +0 -32
- data/doc/classes/Win32/Console/API.src/M000060.html +0 -47
- data/doc/classes/Win32/Console/API.src/M000061.html +0 -34
- data/doc/classes/Win32/Console/API.src/M000062.html +0 -32
- data/doc/classes/Win32/Console/API.src/M000063.html +0 -32
- data/doc/classes/Win32/Console/API.src/M000064.html +0 -35
- data/doc/classes/Win32/Console/API.src/M000065.html +0 -26
- data/doc/classes/Win32/Console/API.src/M000066.html +0 -27
- data/doc/classes/Win32/Console/API.src/M000067.html +0 -29
- data/doc/classes/Win32/Console/API.src/M000068.html +0 -27
- data/doc/classes/Win32/Console/API.src/M000069.html +0 -27
- data/doc/classes/Win32/Console/API.src/M000070.html +0 -28
- data/doc/classes/Win32/Console/API.src/M000071.html +0 -27
- data/doc/classes/Win32/Console/API.src/M000072.html +0 -26
- data/doc/classes/Win32/Console/API.src/M000073.html +0 -27
- data/doc/classes/Win32/Console/API.src/M000074.html +0 -31
- data/doc/classes/Win32/Console/API.src/M000075.html +0 -27
- data/doc/classes/Win32/Console/API.src/M000076.html +0 -32
- data/doc/classes/Win32/Console/API.src/M000077.html +0 -27
- data/doc/classes/Win32/Console/API.src/M000078.html +0 -32
- data/doc/classes/Win32/Console/API.src/M000079.html +0 -32
- data/doc/classes/Win32/Console/API.src/M000080.html +0 -32
- data/doc/classes/Win32/Console/Constants.html +0 -360
- data/doc/classes/Win32/Console.html +0 -650
- data/doc/classes/Win32/Console.src/M000001.html +0 -31
- data/doc/classes/Win32/Console.src/M000002.html +0 -23
- data/doc/classes/Win32/Console.src/M000003.html +0 -23
- data/doc/classes/Win32/Console.src/M000004.html +0 -27
- data/doc/classes/Win32/Console.src/M000005.html +0 -23
- data/doc/classes/Win32/Console.src/M000006.html +0 -28
- data/doc/classes/Win32/Console.src/M000007.html +0 -23
- data/doc/classes/Win32/Console.src/M000008.html +0 -24
- data/doc/classes/Win32/Console.src/M000009.html +0 -44
- data/doc/classes/Win32/Console.src/M000010.html +0 -23
- data/doc/classes/Win32/Console.src/M000011.html +0 -33
- data/doc/classes/Win32/Console.src/M000012.html +0 -26
- data/doc/classes/Win32/Console.src/M000013.html +0 -27
- data/doc/classes/Win32/Console.src/M000014.html +0 -28
- data/doc/classes/Win32/Console.src/M000015.html +0 -23
- data/doc/classes/Win32/Console.src/M000016.html +0 -23
- data/doc/classes/Win32/Console.src/M000017.html +0 -23
- data/doc/classes/Win32/Console.src/M000018.html +0 -29
- data/doc/classes/Win32/Console.src/M000019.html +0 -23
- data/doc/classes/Win32/Console.src/M000020.html +0 -23
- data/doc/classes/Win32/Console.src/M000021.html +0 -28
- data/doc/classes/Win32/Console.src/M000022.html +0 -23
- data/doc/classes/Win32/Console.src/M000023.html +0 -28
- data/doc/classes/Win32/Console.src/M000024.html +0 -35
- data/doc/classes/Win32/Console.src/M000025.html +0 -28
- data/doc/classes/Win32/Console.src/M000026.html +0 -28
- data/doc/classes/Win32/Console.src/M000027.html +0 -28
- data/doc/classes/Win32/Console.src/M000028.html +0 -31
- data/doc/classes/Win32/Console.src/M000029.html +0 -23
- data/doc/classes/Win32/Console.src/M000030.html +0 -23
- data/doc/classes/Win32/Console.src/M000031.html +0 -23
- data/doc/classes/Win32/Console.src/M000032.html +0 -27
- data/doc/classes/Win32/Console.src/M000033.html +0 -27
- data/doc/classes/Win32/Console.src/M000034.html +0 -25
- data/doc/classes/Win32.html +0 -115
- data/doc/created.rid +0 -1
- data/doc/files/Console_ANSI_rdoc.html +0 -407
- data/doc/files/Console_cpp.html +0 -104
- data/doc/files/Console_rdoc.html +0 -964
- data/doc/files/lib/Win32/Console/ANSI_rb.html +0 -123
- data/doc/files/lib/Win32/Console_rb.html +0 -297
- data/doc/fr_class_index.html +0 -32
- data/doc/fr_file_index.html +0 -31
- data/doc/fr_method_index.html +0 -106
- data/doc/index.html +0 -24
- data/doc/rdoc-style.css +0 -172
@@ -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">"return Win32::Console::Constants::#{t}"</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">"kernel32"</span>, <span class="ruby-value str">"AllocConsole"</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">"kernel32"</span>, <span class="ruby-value str">"CreateConsoleScreenBuffer"</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">"kernel32"</span>, <span class="ruby-value str">"FillConsoleOutputAttribute"</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"><<</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">"kernel32"</span>, <span class="ruby-value str">"FillConsoleOutputCharacter"</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"><<</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">"kernel32"</span>,
|
22
|
-
<span class="ruby-value str">"FillConsoleInputBuffer"</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">"kernel32"</span>, <span class="ruby-value str">"FreeConsole"</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">"kernel32"</span>, <span class="ruby-value str">"GenerateConsoleCtrlEvent"</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">"kernel32"</span>, <span class="ruby-value str">"GetConsoleCP"</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">"kernel32"</span>,
|
22
|
-
<span class="ruby-value str">"GetConsoleCursorInfo"</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">"kernel32"</span>, <span class="ruby-value str">"GetConsoleMode"</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">"kernel32"</span>,
|
22
|
-
<span class="ruby-value str">"GetConsoleOutputCP"</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">"kernel32"</span>, <span class="ruby-value str">"GetConsoleScreenBufferInfo"</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">"kernel32"</span>, <span class="ruby-value str">"GetConsoleTitle"</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">"kernel32"</span>, <span class="ruby-value str">"GetConsoleWindow"</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>
|
@@ -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
|
-
GetLargestConsoleWindowSize (Win32::Console::API)
|
9
|
-
|
10
|
-
-->
|
11
|
-
<html>
|
12
|
-
<head>
|
13
|
-
<title>GetLargestConsoleWindowSize (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 283</span>
|
19
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">GetLargestConsoleWindowSize</span>( <span class="ruby-identifier">hConsoleOutput</span> )
|
20
|
-
<span class="ruby-keyword kw">if</span> @<span class="ruby-ivar">@m_GetLargestConsoleWindowSize</span> <span class="ruby-operator">==</span> <span class="ruby-keyword kw">nil</span>
|
21
|
-
@<span class="ruby-ivar">@m_GetLargestConsoleWindowSize</span> = <span class="ruby-constant">Win32API</span>.<span class="ruby-identifier">new</span>( <span class="ruby-value str">"kernel32"</span>, <span class="ruby-value str">"GetLargestConsoleWindowSize"</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-identifier">coord</span> = @<span class="ruby-ivar">@m_GetLargestConsoleWindowSize</span>.<span class="ruby-identifier">call</span>( <span class="ruby-identifier">hConsoleOutput</span> )
|
24
|
-
<span class="ruby-identifier">x</span> = <span class="ruby-identifier">coord</span> <span class="ruby-operator">>></span> <span class="ruby-value">16</span>
|
25
|
-
<span class="ruby-identifier">y</span> = <span class="ruby-identifier">coord</span> <span class="ruby-operator">&</span> <span class="ruby-value">0x0000ffff</span>
|
26
|
-
<span class="ruby-keyword kw">return</span> [<span class="ruby-identifier">x</span>,<span class="ruby-identifier">y</span>]
|
27
|
-
<span class="ruby-keyword kw">end</span></pre>
|
28
|
-
</body>
|
29
|
-
</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
|
-
GetNumberOfConsoleInputEvents (Win32::Console::API)
|
9
|
-
|
10
|
-
-->
|
11
|
-
<html>
|
12
|
-
<head>
|
13
|
-
<title>GetNumberOfConsoleInputEvents (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 293</span>
|
19
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">GetNumberOfConsoleInputEvents</span>( <span class="ruby-identifier">hConsoleInput</span> )
|
20
|
-
<span class="ruby-keyword kw">if</span> @<span class="ruby-ivar">@m_GetNumberOfConsoleInputEvents</span> <span class="ruby-operator">==</span> <span class="ruby-keyword kw">nil</span>
|
21
|
-
@<span class="ruby-ivar">@m_GetNumberOfConsoleInputEvents</span> = <span class="ruby-constant">Win32API</span>.<span class="ruby-identifier">new</span>( <span class="ruby-value str">"kernel32"</span>, <span class="ruby-value str">"GetNumberOfConsoleInputEvents"</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">lpcNumberOfEvents</span> = <span class="ruby-value">0</span>
|
24
|
-
@<span class="ruby-ivar">@m_GetNumberOfConsoleInputEvents</span>.<span class="ruby-identifier">call</span>( <span class="ruby-identifier">hConsoleInput</span>,
|
25
|
-
<span class="ruby-identifier">lpcNumberOfEvents</span> )
|
26
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">lpcNumberOfEvents</span>
|
27
|
-
<span class="ruby-keyword kw">end</span></pre>
|
28
|
-
</body>
|
29
|
-
</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
|
-
GetNumberOfConsoleMouseButtons (Win32::Console::API)
|
9
|
-
|
10
|
-
-->
|
11
|
-
<html>
|
12
|
-
<head>
|
13
|
-
<title>GetNumberOfConsoleMouseButtons (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 303</span>
|
19
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">GetNumberOfConsoleMouseButtons</span>( )
|
20
|
-
<span class="ruby-keyword kw">if</span> @<span class="ruby-ivar">@m_GetNumberOfConsoleMouseButtons</span> <span class="ruby-operator">==</span> <span class="ruby-keyword kw">nil</span>
|
21
|
-
@<span class="ruby-ivar">@m_GetNumberOfConsoleMouseButtons</span> = <span class="ruby-constant">Win32API</span>.<span class="ruby-identifier">new</span>( <span class="ruby-value str">"kernel32"</span>, <span class="ruby-value str">"GetNumberOfConsoleMouseButtons"</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">lpNumberOfMouseButtons</span> = <span class="ruby-value">0</span>
|
24
|
-
@<span class="ruby-ivar">@m_GetNumberOfConsoleMouseButtons</span>.<span class="ruby-identifier">call</span>( <span class="ruby-identifier">lpNumberOfMouseButtons</span> )
|
25
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">lpNumberOfMouseButtons</span>
|
26
|
-
<span class="ruby-keyword kw">end</span></pre>
|
27
|
-
</body>
|
28
|
-
</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
|
-
GetStdHandle (Win32::Console::API)
|
9
|
-
|
10
|
-
-->
|
11
|
-
<html>
|
12
|
-
<head>
|
13
|
-
<title>GetStdHandle (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 312</span>
|
19
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">GetStdHandle</span>( <span class="ruby-identifier">nStdHandle</span> )
|
20
|
-
<span class="ruby-keyword kw">if</span> @<span class="ruby-ivar">@m_GetStdHandle</span> <span class="ruby-operator">==</span> <span class="ruby-keyword kw">nil</span>
|
21
|
-
@<span class="ruby-ivar">@m_GetStdHandle</span> = <span class="ruby-constant">Win32API</span>.<span class="ruby-identifier">new</span>( <span class="ruby-value str">"kernel32"</span>, <span class="ruby-value str">"GetStdHandle"</span>,
|
22
|
-
[<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-ivar">@m_GetStdHandle</span>.<span class="ruby-identifier">call</span>( <span class="ruby-identifier">nStdHandle</span> )
|
25
|
-
<span class="ruby-keyword kw">end</span></pre>
|
26
|
-
</body>
|
27
|
-
</html>
|