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,47 +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
|
-
PeekConsoleInput (Win32::Console::API)
|
9
|
-
|
10
|
-
-->
|
11
|
-
<html>
|
12
|
-
<head>
|
13
|
-
<title>PeekConsoleInput (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 322</span>
|
19
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">PeekConsoleInput</span>( <span class="ruby-identifier">hConsoleInput</span> )
|
20
|
-
<span class="ruby-keyword kw">if</span> @<span class="ruby-ivar">@m_PeekConsoleInput</span> <span class="ruby-operator">==</span> <span class="ruby-keyword kw">nil</span>
|
21
|
-
@<span class="ruby-ivar">@m_PeekConsoleInput</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">"PeekConsoleInput"</span>,
|
22
|
-
[<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> )
|
23
|
-
<span class="ruby-keyword kw">end</span>
|
24
|
-
<span class="ruby-identifier">lpNumberOfEventsRead</span> = <span class="ruby-value str">' '</span> <span class="ruby-operator">*</span> <span class="ruby-value">4</span>
|
25
|
-
<span class="ruby-identifier">lpBuffer</span> = <span class="ruby-value str">' '</span> <span class="ruby-operator">*</span> <span class="ruby-value">20</span>
|
26
|
-
<span class="ruby-identifier">nLength</span> = <span class="ruby-value">20</span>
|
27
|
-
@<span class="ruby-ivar">@m_PeekConsoleInput</span>.<span class="ruby-identifier">call</span>( <span class="ruby-identifier">hConsoleInput</span>, <span class="ruby-identifier">lpBuffer</span>, <span class="ruby-identifier">nLength</span>,
|
28
|
-
<span class="ruby-identifier">lpNumberOfEventsRead</span> )
|
29
|
-
<span class="ruby-identifier">type</span> = <span class="ruby-identifier">lpBuffer</span>.<span class="ruby-identifier">unpack</span>(<span class="ruby-value str">'s'</span>)[<span class="ruby-value">0</span>]
|
30
|
-
|
31
|
-
<span class="ruby-keyword kw">case</span> <span class="ruby-identifier">type</span>
|
32
|
-
<span class="ruby-keyword kw">when</span> <span class="ruby-constant">KEY_EVENT</span>
|
33
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">lpBuffer</span>.<span class="ruby-identifier">unpack</span>(<span class="ruby-value str">'sSSSSCS'</span>)
|
34
|
-
<span class="ruby-keyword kw">when</span> <span class="ruby-constant">MOUSE_EVENT</span>
|
35
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">lpBuffer</span>.<span class="ruby-identifier">unpack</span>(<span class="ruby-value str">'sSSSS'</span>)
|
36
|
-
<span class="ruby-keyword kw">when</span> <span class="ruby-constant">WINDOW_BUFFER_SIZE_EVENT</span>
|
37
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">lpBuffer</span>.<span class="ruby-identifier">unpack</span>(<span class="ruby-value str">'sS'</span>)
|
38
|
-
<span class="ruby-keyword kw">when</span> <span class="ruby-constant">MENU_EVENT</span>
|
39
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">lpBuffer</span>.<span class="ruby-identifier">unpack</span>(<span class="ruby-value str">'sS'</span>)
|
40
|
-
<span class="ruby-keyword kw">when</span> <span class="ruby-constant">FOCUS_EVENT</span>
|
41
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">lpBuffer</span>.<span class="ruby-identifier">unpack</span>(<span class="ruby-value str">'sS'</span>)
|
42
|
-
<span class="ruby-keyword kw">else</span>
|
43
|
-
<span class="ruby-keyword kw">return</span> []
|
44
|
-
<span class="ruby-keyword kw">end</span>
|
45
|
-
<span class="ruby-keyword kw">end</span></pre>
|
46
|
-
</body>
|
47
|
-
</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
|
-
ReadConsole (Win32::Console::API)
|
9
|
-
|
10
|
-
-->
|
11
|
-
<html>
|
12
|
-
<head>
|
13
|
-
<title>ReadConsole (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 350</span>
|
19
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">ReadConsole</span>( <span class="ruby-identifier">hConsoleInput</span>, <span class="ruby-identifier">lpBuffer</span>, <span class="ruby-identifier">nNumberOfCharsToRead</span> )
|
20
|
-
<span class="ruby-keyword kw">if</span> @<span class="ruby-ivar">@m_ReadConsole</span> <span class="ruby-operator">==</span> <span class="ruby-keyword kw">nil</span>
|
21
|
-
@<span class="ruby-ivar">@m_ReadConsole</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">"ReadConsole"</span>,
|
22
|
-
[<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">'p'</span>], <span class="ruby-value str">'l'</span> )
|
23
|
-
<span class="ruby-keyword kw">end</span>
|
24
|
-
<span class="ruby-identifier">lpBuffer</span> = <span class="ruby-value str">' '</span> <span class="ruby-operator">*</span> <span class="ruby-identifier">nNumberOfCharsToRead</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">lpBuffer</span>
|
25
|
-
<span class="ruby-identifier">lpNumberOfCharsRead</span> = <span class="ruby-value str">' '</span> <span class="ruby-operator">*</span> <span class="ruby-value">4</span>
|
26
|
-
<span class="ruby-identifier">lpReserved</span> = <span class="ruby-value str">' '</span> <span class="ruby-operator">*</span> <span class="ruby-value">4</span>
|
27
|
-
@<span class="ruby-ivar">@m_ReadConsole</span>.<span class="ruby-identifier">call</span>( <span class="ruby-identifier">hConsoleInput</span>, <span class="ruby-identifier">lpBuffer</span>, <span class="ruby-identifier">nNumberOfCharsToRead</span>,
|
28
|
-
<span class="ruby-identifier">lpNumberOfCharsRead</span>, <span class="ruby-identifier">lpReserved</span> )
|
29
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">lpNumberOfCharsRead</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,47 +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
|
-
ReadConsoleInput (Win32::Console::API)
|
9
|
-
|
10
|
-
-->
|
11
|
-
<html>
|
12
|
-
<head>
|
13
|
-
<title>ReadConsoleInput (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 363</span>
|
19
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">ReadConsoleInput</span>( <span class="ruby-identifier">hConsoleInput</span> )
|
20
|
-
<span class="ruby-keyword kw">if</span> @<span class="ruby-ivar">@m_ReadConsoleInput</span> <span class="ruby-operator">==</span> <span class="ruby-keyword kw">nil</span>
|
21
|
-
@<span class="ruby-ivar">@m_ReadConsoleInput</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">"ReadConsoleInput"</span>,
|
22
|
-
[<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> )
|
23
|
-
<span class="ruby-keyword kw">end</span>
|
24
|
-
<span class="ruby-identifier">lpNumberOfEventsRead</span> = <span class="ruby-value str">' '</span> <span class="ruby-operator">*</span> <span class="ruby-value">4</span>
|
25
|
-
<span class="ruby-identifier">lpBuffer</span> = <span class="ruby-value str">' '</span> <span class="ruby-operator">*</span> <span class="ruby-value">20</span>
|
26
|
-
<span class="ruby-identifier">nLength</span> = <span class="ruby-value">20</span>
|
27
|
-
@<span class="ruby-ivar">@m_ReadConsoleInput</span>.<span class="ruby-identifier">call</span>( <span class="ruby-identifier">hConsoleInput</span>, <span class="ruby-identifier">lpBuffer</span>, <span class="ruby-identifier">nLength</span>,
|
28
|
-
<span class="ruby-identifier">lpNumberOfEventsRead</span> )
|
29
|
-
<span class="ruby-identifier">type</span> = <span class="ruby-identifier">lpBuffer</span>.<span class="ruby-identifier">unpack</span>(<span class="ruby-value str">'s'</span>)[<span class="ruby-value">0</span>]
|
30
|
-
|
31
|
-
<span class="ruby-keyword kw">case</span> <span class="ruby-identifier">type</span>
|
32
|
-
<span class="ruby-keyword kw">when</span> <span class="ruby-constant">KEY_EVENT</span>
|
33
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">lpBuffer</span>.<span class="ruby-identifier">unpack</span>(<span class="ruby-value str">'sSSSSCS'</span>)
|
34
|
-
<span class="ruby-keyword kw">when</span> <span class="ruby-constant">MOUSE_EVENT</span>
|
35
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">lpBuffer</span>.<span class="ruby-identifier">unpack</span>(<span class="ruby-value str">'sSSSS'</span>)
|
36
|
-
<span class="ruby-keyword kw">when</span> <span class="ruby-constant">WINDOW_BUFFER_SIZE_EVENT</span>
|
37
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">lpBuffer</span>.<span class="ruby-identifier">unpack</span>(<span class="ruby-value str">'sS'</span>)
|
38
|
-
<span class="ruby-keyword kw">when</span> <span class="ruby-constant">MENU_EVENT</span>
|
39
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">lpBuffer</span>.<span class="ruby-identifier">unpack</span>(<span class="ruby-value str">'sS'</span>)
|
40
|
-
<span class="ruby-keyword kw">when</span> <span class="ruby-constant">FOCUS_EVENT</span>
|
41
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">lpBuffer</span>.<span class="ruby-identifier">unpack</span>(<span class="ruby-value str">'sS'</span>)
|
42
|
-
<span class="ruby-keyword kw">else</span>
|
43
|
-
<span class="ruby-keyword kw">return</span> []
|
44
|
-
<span class="ruby-keyword kw">end</span>
|
45
|
-
<span class="ruby-keyword kw">end</span></pre>
|
46
|
-
</body>
|
47
|
-
</html>
|
@@ -1,34 +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
|
-
ReadConsoleOutput (Win32::Console::API)
|
9
|
-
|
10
|
-
-->
|
11
|
-
<html>
|
12
|
-
<head>
|
13
|
-
<title>ReadConsoleOutput (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 391</span>
|
19
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">ReadConsoleOutput</span>( <span class="ruby-identifier">hConsoleOutput</span>, <span class="ruby-identifier">lpBuffer</span>, <span class="ruby-identifier">cols</span>, <span class="ruby-identifier">rows</span>,
|
20
|
-
<span class="ruby-identifier">bufx</span>, <span class="ruby-identifier">bufy</span>, <span class="ruby-identifier">left</span>, <span class="ruby-identifier">top</span>, <span class="ruby-identifier">right</span>, <span class="ruby-identifier">bottom</span> )
|
21
|
-
<span class="ruby-keyword kw">if</span> @<span class="ruby-ivar">@m_ReadConsoleOutput</span> <span class="ruby-operator">==</span> <span class="ruby-keyword kw">nil</span>
|
22
|
-
@<span class="ruby-ivar">@m_ReadConsoleOutput</span> = <span class="ruby-constant">Win32API</span>.<span class="ruby-identifier">new</span>( <span class="ruby-value str">"kernel32"</span>,
|
23
|
-
<span class="ruby-value str">"ReadConsoleOutput"</span>,
|
24
|
-
[<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">'l'</span>, <span class="ruby-value str">'p'</span>], <span class="ruby-value str">'l'</span> )
|
25
|
-
<span class="ruby-keyword kw">end</span>
|
26
|
-
<span class="ruby-identifier">dwBufferSize</span> = <span class="ruby-identifier">cols</span> <span class="ruby-operator">*</span> <span class="ruby-identifier">rows</span> <span class="ruby-operator">*</span> <span class="ruby-value">4</span>
|
27
|
-
<span class="ruby-identifier">lpBuffer</span> = <span class="ruby-value str">' '</span> <span class="ruby-operator">*</span> <span class="ruby-identifier">dwBufferSize</span>
|
28
|
-
<span class="ruby-identifier">dwBufferCoord</span> = (<span class="ruby-identifier">bufy</span> <span class="ruby-operator"><<</span> <span class="ruby-value">16</span>) <span class="ruby-operator">+</span> <span class="ruby-identifier">bufx</span>
|
29
|
-
<span class="ruby-identifier">lpReadRegion</span> = [ <span class="ruby-identifier">left</span>, <span class="ruby-identifier">top</span>, <span class="ruby-identifier">right</span>, <span class="ruby-identifier">bottom</span> ].<span class="ruby-identifier">pack</span>(<span class="ruby-value str">'ssss'</span>)
|
30
|
-
@<span class="ruby-ivar">@m_ReadConsoleOutput</span>.<span class="ruby-identifier">call</span>( <span class="ruby-identifier">hConsoleOutput</span>, <span class="ruby-identifier">lpBuffer</span>, <span class="ruby-identifier">dwBufferSize</span>,
|
31
|
-
<span class="ruby-identifier">dwBufferCoord</span>, <span class="ruby-identifier">lpReadRegion</span> )
|
32
|
-
<span class="ruby-keyword kw">end</span></pre>
|
33
|
-
</body>
|
34
|
-
</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
|
-
ReadConsoleOutputAttribute (Win32::Console::API)
|
9
|
-
|
10
|
-
-->
|
11
|
-
<html>
|
12
|
-
<head>
|
13
|
-
<title>ReadConsoleOutputAttribute (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 406</span>
|
19
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">ReadConsoleOutputAttribute</span>( <span class="ruby-identifier">hConsoleOutput</span>, <span class="ruby-identifier">nLength</span>, <span class="ruby-identifier">col</span>, <span class="ruby-identifier">row</span> )
|
20
|
-
<span class="ruby-keyword kw">if</span> @<span class="ruby-ivar">@m_ReadConsoleOutputAttribute</span> <span class="ruby-operator">==</span> <span class="ruby-keyword kw">nil</span>
|
21
|
-
@<span class="ruby-ivar">@m_ReadConsoleOutputAttribute</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">"ReadConsoleOutputAttribute"</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">'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">lpAttribute</span> = <span class="ruby-value str">' '</span> <span class="ruby-operator">*</span> <span class="ruby-identifier">nLength</span>
|
24
|
-
<span class="ruby-identifier">dwReadCoord</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">lpNumberOfAttrsRead</span> = <span class="ruby-value str">' '</span> <span class="ruby-operator">*</span> <span class="ruby-value">4</span>
|
26
|
-
@<span class="ruby-ivar">@m_ReadConsoleOutputAttribute</span>.<span class="ruby-identifier">call</span>( <span class="ruby-identifier">hConsoleOutput</span>, <span class="ruby-identifier">lpAttribute</span>,
|
27
|
-
<span class="ruby-identifier">nLength</span>, <span class="ruby-identifier">dwReadCoord</span>,
|
28
|
-
<span class="ruby-identifier">lpNumberOfAttrsRead</span> )
|
29
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">lpAttribute</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
|
-
ReadConsoleOutputCharacter (Win32::Console::API)
|
9
|
-
|
10
|
-
-->
|
11
|
-
<html>
|
12
|
-
<head>
|
13
|
-
<title>ReadConsoleOutputCharacter (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 419</span>
|
19
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">ReadConsoleOutputCharacter</span>( <span class="ruby-identifier">hConsoleOutput</span>, <span class="ruby-identifier">lpCharacter</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_ReadConsoleOutputCharacter</span> <span class="ruby-operator">==</span> <span class="ruby-keyword kw">nil</span>
|
22
|
-
@<span class="ruby-ivar">@m_ReadConsoleOutputCharacter</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">"ReadConsoleOutputCharacter"</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">'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">dwReadCoord</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">lpNumberOfCharsRead</span> = <span class="ruby-value str">' '</span> <span class="ruby-operator">*</span> <span class="ruby-value">4</span>
|
26
|
-
@<span class="ruby-ivar">@m_ReadConsoleOutputCharacter</span>.<span class="ruby-identifier">call</span>( <span class="ruby-identifier">hConsoleOutput</span>, <span class="ruby-identifier">lpCharacter</span>,
|
27
|
-
<span class="ruby-identifier">nLength</span>, <span class="ruby-identifier">dwReadCoord</span>,
|
28
|
-
<span class="ruby-identifier">lpNumberOfCharsRead</span> )
|
29
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">lpNumberOfCharsRead</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,35 +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
|
-
ScrollConsoleScreenBuffer (Win32::Console::API)
|
9
|
-
|
10
|
-
-->
|
11
|
-
<html>
|
12
|
-
<head>
|
13
|
-
<title>ScrollConsoleScreenBuffer (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 432</span>
|
19
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">ScrollConsoleScreenBuffer</span>( <span class="ruby-identifier">hConsoleOutput</span>,
|
20
|
-
<span class="ruby-identifier">left1</span>, <span class="ruby-identifier">top1</span>, <span class="ruby-identifier">right1</span>, <span class="ruby-identifier">bottom1</span>,
|
21
|
-
<span class="ruby-identifier">col</span>, <span class="ruby-identifier">row</span>, <span class="ruby-identifier">char</span>, <span class="ruby-identifier">attr</span>,
|
22
|
-
<span class="ruby-identifier">left2</span>, <span class="ruby-identifier">top2</span>, <span class="ruby-identifier">right2</span>, <span class="ruby-identifier">bottom2</span> )
|
23
|
-
<span class="ruby-keyword kw">if</span> @<span class="ruby-ivar">@m_ScrollConsoleScreenBuffer</span> <span class="ruby-operator">==</span> <span class="ruby-keyword kw">nil</span>
|
24
|
-
@<span class="ruby-ivar">@m_ScrollConsoleScreenBuffer</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">"ScrollConsoleScreenBuffer"</span>, [<span class="ruby-value str">'l'</span>, <span class="ruby-value str">'p'</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> )
|
25
|
-
<span class="ruby-keyword kw">end</span>
|
26
|
-
<span class="ruby-identifier">lpScrollRectangle</span> = [<span class="ruby-identifier">left1</span>, <span class="ruby-identifier">top1</span>, <span class="ruby-identifier">right1</span>, <span class="ruby-identifier">bottom1</span>].<span class="ruby-identifier">pack</span>(<span class="ruby-value str">'ssss'</span>)
|
27
|
-
<span class="ruby-identifier">lpClipRectangle</span> = [<span class="ruby-identifier">left2</span>, <span class="ruby-identifier">top2</span>, <span class="ruby-identifier">right2</span>, <span class="ruby-identifier">bottom2</span>].<span class="ruby-identifier">pack</span>(<span class="ruby-value str">'ssss'</span>)
|
28
|
-
<span class="ruby-identifier">dwDestinationOrigin</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>
|
29
|
-
<span class="ruby-identifier">lpFill</span> = [<span class="ruby-identifier">char</span>, <span class="ruby-identifier">attr</span>].<span class="ruby-identifier">pack</span>(<span class="ruby-value str">'ss'</span>)
|
30
|
-
@<span class="ruby-ivar">@m_ScrollConsoleScreenBuffer</span>.<span class="ruby-identifier">call</span>( <span class="ruby-identifier">hConsoleOutput</span>, <span class="ruby-identifier">lpScrollRectangle</span>,
|
31
|
-
<span class="ruby-identifier">lpClipRectangle</span>,
|
32
|
-
<span class="ruby-identifier">dwDestinationOrigin</span>, <span class="ruby-identifier">lpFill</span> )
|
33
|
-
<span class="ruby-keyword kw">end</span></pre>
|
34
|
-
</body>
|
35
|
-
</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
|
-
SetConsoleActiveScreenBuffer (Win32::Console::API)
|
9
|
-
|
10
|
-
-->
|
11
|
-
<html>
|
12
|
-
<head>
|
13
|
-
<title>SetConsoleActiveScreenBuffer (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 448</span>
|
19
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">SetConsoleActiveScreenBuffer</span>( <span class="ruby-identifier">hConsoleOutput</span> )
|
20
|
-
<span class="ruby-keyword kw">if</span> @<span class="ruby-ivar">@m_SetConsoleActiveScreenBuffer</span> <span class="ruby-operator">==</span> <span class="ruby-keyword kw">nil</span>
|
21
|
-
@<span class="ruby-ivar">@m_SetConsoleActiveScreenBuffer</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">"SetConsoleActiveScreenBuffer"</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_SetConsoleActiveScreenBuffer</span>.<span class="ruby-identifier">call</span>( <span class="ruby-identifier">hConsoleOutput</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
|
-
SetConsoleCP (Win32::Console::API)
|
9
|
-
|
10
|
-
-->
|
11
|
-
<html>
|
12
|
-
<head>
|
13
|
-
<title>SetConsoleCP (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 457</span>
|
19
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">SetConsoleCP</span>( <span class="ruby-identifier">wCodePageID</span> )
|
20
|
-
<span class="ruby-keyword kw">if</span> @<span class="ruby-ivar">@m_SetConsoleCP</span> <span class="ruby-operator">==</span> <span class="ruby-keyword kw">nil</span>
|
21
|
-
@<span class="ruby-ivar">@m_SetConsoleCP</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">"SetConsoleCP"</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_SetConsoleCP</span>.<span class="ruby-identifier">call</span>( <span class="ruby-identifier">wCodePageID</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
|
-
SetConsoleCursorInfo (Win32::Console::API)
|
9
|
-
|
10
|
-
-->
|
11
|
-
<html>
|
12
|
-
<head>
|
13
|
-
<title>SetConsoleCursorInfo (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 465</span>
|
19
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">SetConsoleCursorInfo</span>( <span class="ruby-identifier">hConsoleOutput</span>, <span class="ruby-identifier">col</span>, <span class="ruby-identifier">row</span> )
|
20
|
-
<span class="ruby-keyword kw">if</span> @<span class="ruby-ivar">@m_SetConsoleCursorInfo</span> <span class="ruby-operator">==</span> <span class="ruby-keyword kw">nil</span>
|
21
|
-
@<span class="ruby-ivar">@m_SetConsoleCursorInfo</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">"SetConsoleCursorInfo"</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-identifier">size</span>,<span class="ruby-identifier">visi</span>].<span class="ruby-identifier">pack</span>(<span class="ruby-value str">'LL'</span>)
|
26
|
-
@<span class="ruby-ivar">@m_SetConsoleCursorInfo</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">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
|
-
SetConsoleCursorPosition (Win32::Console::API)
|
9
|
-
|
10
|
-
-->
|
11
|
-
<html>
|
12
|
-
<head>
|
13
|
-
<title>SetConsoleCursorPosition (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 475</span>
|
19
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">SetConsoleCursorPosition</span>( <span class="ruby-identifier">hConsoleOutput</span>, <span class="ruby-identifier">col</span>, <span class="ruby-identifier">row</span> )
|
20
|
-
<span class="ruby-keyword kw">if</span> @<span class="ruby-ivar">@m_SetConsoleCursorPosition</span> <span class="ruby-operator">==</span> <span class="ruby-keyword kw">nil</span>
|
21
|
-
@<span class="ruby-ivar">@m_SetConsoleCursorPosition</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">"SetConsoleCursorPosition"</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">dwCursorPosition</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>
|
24
|
-
@<span class="ruby-ivar">@m_SetConsoleCursorPosition</span>.<span class="ruby-identifier">call</span>( <span class="ruby-identifier">hConsoleOutput</span>, <span class="ruby-identifier">dwCursorPosition</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
|
-
SetConsoleMode (Win32::Console::API)
|
9
|
-
|
10
|
-
-->
|
11
|
-
<html>
|
12
|
-
<head>
|
13
|
-
<title>SetConsoleMode (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 483</span>
|
19
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">SetConsoleMode</span>( <span class="ruby-identifier">hConsoleHandle</span>, <span class="ruby-identifier">lpMode</span> )
|
20
|
-
<span class="ruby-keyword kw">if</span> @<span class="ruby-ivar">@m_SetConsoleMode</span> <span class="ruby-operator">==</span> <span class="ruby-keyword kw">nil</span>
|
21
|
-
@<span class="ruby-ivar">@m_SetConsoleMode</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">"SetConsoleMode"</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-ivar">@m_SetConsoleMode</span>.<span class="ruby-identifier">call</span>( <span class="ruby-identifier">hConsoleHandle</span>, <span class="ruby-identifier">lpMode</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
|
-
SetConsoleOutputCP (Win32::Console::API)
|
9
|
-
|
10
|
-
-->
|
11
|
-
<html>
|
12
|
-
<head>
|
13
|
-
<title>SetConsoleOutputCP (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 491</span>
|
19
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">SetConsoleOutputCP</span>( <span class="ruby-identifier">wCodePageID</span> )
|
20
|
-
<span class="ruby-keyword kw">if</span> @<span class="ruby-ivar">@m_SetConsoleOutputCP</span> <span class="ruby-operator">==</span> <span class="ruby-keyword kw">nil</span>
|
21
|
-
@<span class="ruby-ivar">@m_SetConsoleOutputCP</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>,
|
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_SetConsoleOutputCP</span>.<span class="ruby-identifier">call</span>( <span class="ruby-identifier">wCodePageID</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
|
-
SetConsoleScreenBufferSize (Win32::Console::API)
|
9
|
-
|
10
|
-
-->
|
11
|
-
<html>
|
12
|
-
<head>
|
13
|
-
<title>SetConsoleScreenBufferSize (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 500</span>
|
19
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">SetConsoleScreenBufferSize</span>( <span class="ruby-identifier">hConsoleOutput</span>, <span class="ruby-identifier">col</span>, <span class="ruby-identifier">row</span> )
|
20
|
-
<span class="ruby-keyword kw">if</span> @<span class="ruby-ivar">@m_SetConsoleScreenBufferSize</span> <span class="ruby-operator">==</span> <span class="ruby-keyword kw">nil</span>
|
21
|
-
@<span class="ruby-ivar">@m_SetConsoleScreenBufferSize</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">"SetConsoleScreenBufferSize"</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-identifier">dwSize</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>
|
24
|
-
@<span class="ruby-ivar">@m_SetConsoleScreenBufferSize</span>.<span class="ruby-identifier">call</span>( <span class="ruby-identifier">hConsoleOutput</span>, <span class="ruby-identifier">dwSize</span> )
|
25
|
-
<span class="ruby-keyword kw">end</span></pre>
|
26
|
-
</body>
|
27
|
-
</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
|
-
SetConsoleTextAttribute (Win32::Console::API)
|
9
|
-
|
10
|
-
-->
|
11
|
-
<html>
|
12
|
-
<head>
|
13
|
-
<title>SetConsoleTextAttribute (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 508</span>
|
19
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">SetConsoleTextAttribute</span>( <span class="ruby-identifier">hConsoleOutput</span>, <span class="ruby-identifier">wAttributes</span> )
|
20
|
-
<span class="ruby-keyword kw">if</span> @<span class="ruby-ivar">@m_SetConsoleTextAttribute</span> <span class="ruby-operator">==</span> <span class="ruby-keyword kw">nil</span>
|
21
|
-
@<span class="ruby-ivar">@m_SetConsoleTextAttribute</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">"SetConsoleTextAttribute"</span>, [<span class="ruby-value str">'l'</span>, <span class="ruby-value str">'i'</span>], <span class="ruby-value str">'l'</span> )
|
22
|
-
<span class="ruby-keyword kw">end</span>
|
23
|
-
@<span class="ruby-ivar">@m_SetConsoleTextAttribute</span>.<span class="ruby-identifier">call</span>( <span class="ruby-identifier">hConsoleOutput</span>, <span class="ruby-identifier">wAttributes</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
|
-
SetConsoleTitle (Win32::Console::API)
|
9
|
-
|
10
|
-
-->
|
11
|
-
<html>
|
12
|
-
<head>
|
13
|
-
<title>SetConsoleTitle (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 515</span>
|
19
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">SetConsoleTitle</span>( <span class="ruby-identifier">lpConsoleTitle</span> )
|
20
|
-
<span class="ruby-keyword kw">if</span> @<span class="ruby-ivar">@m_SetConsoleTitle</span> <span class="ruby-operator">==</span> <span class="ruby-keyword kw">nil</span>
|
21
|
-
@<span class="ruby-ivar">@m_SetConsoleTitle</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">"SetConsoleTitle"</span>,
|
22
|
-
[<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-ivar">@m_SetConsoleTitle</span>.<span class="ruby-identifier">call</span>( <span class="ruby-identifier">lpConsoleTitle</span> )
|
25
|
-
<span class="ruby-keyword kw">end</span></pre>
|
26
|
-
</body>
|
27
|
-
</html>
|
@@ -1,31 +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
|
-
SetConsoleWindowInfo (Win32::Console::API)
|
9
|
-
|
10
|
-
-->
|
11
|
-
<html>
|
12
|
-
<head>
|
13
|
-
<title>SetConsoleWindowInfo (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 523</span>
|
19
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">SetConsoleWindowInfo</span>( <span class="ruby-identifier">hConsoleOutput</span>, <span class="ruby-identifier">bAbsolute</span>,
|
20
|
-
<span class="ruby-identifier">left</span>, <span class="ruby-identifier">top</span>, <span class="ruby-identifier">right</span>, <span class="ruby-identifier">bottom</span> )
|
21
|
-
<span class="ruby-keyword kw">if</span> @<span class="ruby-ivar">@m_SetConsoleWindowInfo</span> <span class="ruby-operator">==</span> <span class="ruby-keyword kw">nil</span>
|
22
|
-
@<span class="ruby-ivar">@m_SetConsoleWindowInfo</span> = <span class="ruby-constant">Win32API</span>.<span class="ruby-identifier">new</span>( <span class="ruby-value str">"kernel32"</span>,
|
23
|
-
<span class="ruby-value str">"SetConsoleWindowInfo"</span>,
|
24
|
-
[<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> )
|
25
|
-
<span class="ruby-keyword kw">end</span>
|
26
|
-
<span class="ruby-identifier">lpConsoleWindow</span> = [ <span class="ruby-identifier">left</span>, <span class="ruby-identifier">top</span>, <span class="ruby-identifier">right</span>, <span class="ruby-identifier">bottom</span> ].<span class="ruby-identifier">pack</span>(<span class="ruby-value str">'ssss'</span>)
|
27
|
-
@<span class="ruby-ivar">@m_SetConsoleWindowInfo</span>.<span class="ruby-identifier">call</span>( <span class="ruby-identifier">hConsoleOutput</span>, <span class="ruby-identifier">bAbsolute</span>,
|
28
|
-
<span class="ruby-identifier">lpConsoleWindow</span> )
|
29
|
-
<span class="ruby-keyword kw">end</span></pre>
|
30
|
-
</body>
|
31
|
-
</html>
|