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
|
-
SetStdHandle (Win32::Console::API)
|
9
|
-
|
10
|
-
-->
|
11
|
-
<html>
|
12
|
-
<head>
|
13
|
-
<title>SetStdHandle (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 535</span>
|
19
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">SetStdHandle</span>( <span class="ruby-identifier">nStdHandle</span>, <span class="ruby-identifier">hHandle</span> )
|
20
|
-
<span class="ruby-keyword kw">if</span> @<span class="ruby-ivar">@m_SetStdHandle</span> <span class="ruby-operator">==</span> <span class="ruby-keyword kw">nil</span>
|
21
|
-
@<span class="ruby-ivar">@m_SetStdHandle</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">"SetStdHandle"</span>,
|
22
|
-
[<span class="ruby-value str">'l'</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-ivar">@m_SetStdHandle</span>.<span class="ruby-identifier">call</span>( <span class="ruby-identifier">nStdHandle</span>, <span class="ruby-identifier">hHandle</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
|
-
WriteConsole (Win32::Console::API)
|
9
|
-
|
10
|
-
-->
|
11
|
-
<html>
|
12
|
-
<head>
|
13
|
-
<title>WriteConsole (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 543</span>
|
19
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">WriteConsole</span>( <span class="ruby-identifier">hConsoleOutput</span>, <span class="ruby-identifier">lpBuffer</span> )
|
20
|
-
<span class="ruby-keyword kw">if</span> @<span class="ruby-ivar">@m_WriteConsole</span> <span class="ruby-operator">==</span> <span class="ruby-keyword kw">nil</span>
|
21
|
-
@<span class="ruby-ivar">@m_WriteConsole</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">"WriteConsole"</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">nNumberOfCharsToWrite</span> = <span class="ruby-identifier">lpBuffer</span>.<span class="ruby-identifier">length</span>()
|
25
|
-
<span class="ruby-identifier">lpNumberOfCharsWritten</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_WriteConsole</span>.<span class="ruby-identifier">call</span>( <span class="ruby-identifier">hConsoleOutput</span>, <span class="ruby-identifier">lpBuffer</span>, <span class="ruby-identifier">nNumberOfCharsToWrite</span>,
|
28
|
-
<span class="ruby-identifier">lpNumberOfCharsWritten</span>, <span class="ruby-identifier">lpReserved</span> )
|
29
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">lpNumberOfCharsWritten</span>
|
30
|
-
<span class="ruby-keyword kw">end</span></pre>
|
31
|
-
</body>
|
32
|
-
</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
|
-
WriteConsoleInput (Win32::Console::API)
|
9
|
-
|
10
|
-
-->
|
11
|
-
<html>
|
12
|
-
<head>
|
13
|
-
<title>WriteConsoleInput (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 556</span>
|
19
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">WriteConsoleInput</span>( <span class="ruby-identifier">hConsoleInput</span>, <span class="ruby-identifier">lpBuffer</span> )
|
20
|
-
<span class="ruby-keyword kw">if</span> @<span class="ruby-ivar">@m_WriteConsoleInput</span> <span class="ruby-operator">==</span> <span class="ruby-keyword kw">nil</span>
|
21
|
-
@<span class="ruby-ivar">@m_WriteConsoleInput</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">"WriteConsoleInput"</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_WriteConsoleInput</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>,
|
24
|
-
<span class="ruby-identifier">lpNumberOfEventsWritten</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
|
-
WriteConsoleOutput (Win32::Console::API)
|
9
|
-
|
10
|
-
-->
|
11
|
-
<html>
|
12
|
-
<head>
|
13
|
-
<title>WriteConsoleOutput (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 565</span>
|
19
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">WriteConsoleOutput</span>( <span class="ruby-identifier">hConsoleOutput</span>, <span class="ruby-identifier">buffer</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_WriteConsoleOutput</span> <span class="ruby-operator">==</span> <span class="ruby-keyword kw">nil</span>
|
22
|
-
@<span class="ruby-ivar">@m_WriteConsoleOutput</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">"WriteConsoleOutput"</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">lpBuffer</span> = <span class="ruby-identifier">buffer</span>.<span class="ruby-identifier">flatten</span>.<span class="ruby-identifier">pack</span>(<span class="ruby-value str">'ss'</span> <span class="ruby-operator">*</span> <span class="ruby-identifier">buffer</span>.<span class="ruby-identifier">length</span>() <span class="ruby-operator">*</span> <span class="ruby-value">2</span>)
|
25
|
-
<span class="ruby-identifier">dwBufferSize</span> = (<span class="ruby-identifier">buffer</span>.<span class="ruby-identifier">length</span>() <span class="ruby-operator"><<</span> <span class="ruby-value">16</span>) <span class="ruby-operator">+</span> <span class="ruby-value">2</span>
|
26
|
-
<span class="ruby-identifier">dwBufferCoord</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>
|
27
|
-
<span class="ruby-identifier">lpWriteRegion</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>)
|
28
|
-
@<span class="ruby-ivar">@m_WriteConsoleOutput</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>,
|
29
|
-
<span class="ruby-identifier">dwBufferCoord</span>, <span class="ruby-identifier">lpWriteRegion</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
|
-
WriteConsoleOutputAttribute (Win32::Console::API)
|
9
|
-
|
10
|
-
-->
|
11
|
-
<html>
|
12
|
-
<head>
|
13
|
-
<title>WriteConsoleOutputAttribute (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 578</span>
|
19
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">WriteConsoleOutputAttribute</span>( <span class="ruby-identifier">hConsoleOutput</span>, <span class="ruby-identifier">lpAttribute</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_WriteConsoleOutputAttribute</span> <span class="ruby-operator">==</span> <span class="ruby-keyword kw">nil</span>
|
21
|
-
@<span class="ruby-ivar">@m_WriteConsoleOutputAttribute</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">"WriteConsoleOutputAttribute"</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">nLength</span> = <span class="ruby-identifier">lpAttribute</span>.<span class="ruby-identifier">length</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_WriteConsoleOutputAttribute</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">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
|
-
WriteConsoleOutputCharacter (Win32::Console::API)
|
9
|
-
|
10
|
-
-->
|
11
|
-
<html>
|
12
|
-
<head>
|
13
|
-
<title>WriteConsoleOutputCharacter (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 591</span>
|
19
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">WriteConsoleOutputCharacter</span>( <span class="ruby-identifier">hConsoleOutput</span>, <span class="ruby-identifier">lpCharacter</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_WriteConsoleOutputCharacter</span> <span class="ruby-operator">==</span> <span class="ruby-keyword kw">nil</span>
|
21
|
-
@<span class="ruby-ivar">@m_WriteConsoleOutputCharacter</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">"WriteConsoleOutputCharacter"</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">nLength</span> = <span class="ruby-identifier">lpCharacter</span>.<span class="ruby-identifier">length</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">lpNumberOfCharsWritten</span> = <span class="ruby-value str">' '</span> <span class="ruby-operator">*</span> <span class="ruby-value">4</span>
|
26
|
-
@<span class="ruby-ivar">@m_WriteConsoleOutputCharacter</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">dwWriteCoord</span>,
|
28
|
-
<span class="ruby-identifier">lpNumberOfCharsWritten</span> )
|
29
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">lpNumberOfCharsWritten</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,360 +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
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
7
|
-
<head>
|
8
|
-
<title>Module: Win32::Console::Constants</title>
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
11
|
-
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
12
|
-
<script type="text/javascript">
|
13
|
-
// <![CDATA[
|
14
|
-
|
15
|
-
function popupCode( url ) {
|
16
|
-
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
17
|
-
}
|
18
|
-
|
19
|
-
function toggleCode( id ) {
|
20
|
-
if ( document.getElementById )
|
21
|
-
elem = document.getElementById( id );
|
22
|
-
else if ( document.all )
|
23
|
-
elem = eval( "document.all." + id );
|
24
|
-
else
|
25
|
-
return false;
|
26
|
-
|
27
|
-
elemStyle = elem.style;
|
28
|
-
|
29
|
-
if ( elemStyle.display != "block" ) {
|
30
|
-
elemStyle.display = "block"
|
31
|
-
} else {
|
32
|
-
elemStyle.display = "none"
|
33
|
-
}
|
34
|
-
|
35
|
-
return true;
|
36
|
-
}
|
37
|
-
|
38
|
-
// Make codeblocks hidden by default
|
39
|
-
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
40
|
-
|
41
|
-
// ]]>
|
42
|
-
</script>
|
43
|
-
|
44
|
-
</head>
|
45
|
-
<body>
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
<div id="classHeader">
|
50
|
-
<h1>Win32::Console::Constants <sup class="type-note">(Module)</sup></h1>
|
51
|
-
<table class="header-table">
|
52
|
-
<tr class="top-aligned-row">
|
53
|
-
<td><strong>In:</strong></td>
|
54
|
-
<td>
|
55
|
-
<a href="../../../files/lib\Win32/Console_rb.html">
|
56
|
-
lib\Win32/Console.rb
|
57
|
-
</a>
|
58
|
-
<br />
|
59
|
-
</td>
|
60
|
-
</tr>
|
61
|
-
|
62
|
-
</table>
|
63
|
-
</div>
|
64
|
-
<!-- banner header -->
|
65
|
-
|
66
|
-
<div id="bodyContent">
|
67
|
-
|
68
|
-
|
69
|
-
<div id="contextContent">
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
<div id="constants-list">
|
75
|
-
<h2 class="section-bar">Constants</h2>
|
76
|
-
|
77
|
-
<div class="name-list">
|
78
|
-
<table summary="Constants">
|
79
|
-
<tr class="top-aligned-row context-row">
|
80
|
-
<td class="context-item-name">STD_INPUT_HANDLE</td>
|
81
|
-
<td>=</td>
|
82
|
-
<td class="context-item-value">0xFFFFFFF6</td>
|
83
|
-
</tr>
|
84
|
-
<tr class="top-aligned-row context-row">
|
85
|
-
<td class="context-item-name">STD_OUTPUT_HANDLE</td>
|
86
|
-
<td>=</td>
|
87
|
-
<td class="context-item-value">0xFFFFFFF5</td>
|
88
|
-
</tr>
|
89
|
-
<tr class="top-aligned-row context-row">
|
90
|
-
<td class="context-item-name">STD_ERROR_HANDLE</td>
|
91
|
-
<td>=</td>
|
92
|
-
<td class="context-item-value">0xFFFFFFF4</td>
|
93
|
-
</tr>
|
94
|
-
<tr class="top-aligned-row context-row">
|
95
|
-
<td class="context-item-name">INVALID_HANDLE_VALUE</td>
|
96
|
-
<td>=</td>
|
97
|
-
<td class="context-item-value">0xFFFFFFFF</td>
|
98
|
-
</tr>
|
99
|
-
<tr class="top-aligned-row context-row">
|
100
|
-
<td class="context-item-name">GENERIC_READ</td>
|
101
|
-
<td>=</td>
|
102
|
-
<td class="context-item-value">0x80000000</td>
|
103
|
-
</tr>
|
104
|
-
<tr class="top-aligned-row context-row">
|
105
|
-
<td class="context-item-name">GENERIC_WRITE</td>
|
106
|
-
<td>=</td>
|
107
|
-
<td class="context-item-value">0x40000000</td>
|
108
|
-
</tr>
|
109
|
-
<tr class="top-aligned-row context-row">
|
110
|
-
<td class="context-item-name">FILE_SHARE_READ</td>
|
111
|
-
<td>=</td>
|
112
|
-
<td class="context-item-value">0x00000001</td>
|
113
|
-
</tr>
|
114
|
-
<tr class="top-aligned-row context-row">
|
115
|
-
<td class="context-item-name">FILE_SHARE_WRITE</td>
|
116
|
-
<td>=</td>
|
117
|
-
<td class="context-item-value">0x00000002</td>
|
118
|
-
</tr>
|
119
|
-
<tr class="top-aligned-row context-row">
|
120
|
-
<td class="context-item-name">CONSOLE_TEXTMODE_BUFFER</td>
|
121
|
-
<td>=</td>
|
122
|
-
<td class="context-item-value">0x00000001</td>
|
123
|
-
</tr>
|
124
|
-
<tr class="top-aligned-row context-row">
|
125
|
-
<td class="context-item-name">FOREGROUND_BLUE</td>
|
126
|
-
<td>=</td>
|
127
|
-
<td class="context-item-value">0x0001</td>
|
128
|
-
</tr>
|
129
|
-
<tr class="top-aligned-row context-row">
|
130
|
-
<td class="context-item-name">FOREGROUND_GREEN</td>
|
131
|
-
<td>=</td>
|
132
|
-
<td class="context-item-value">0x0002</td>
|
133
|
-
</tr>
|
134
|
-
<tr class="top-aligned-row context-row">
|
135
|
-
<td class="context-item-name">FOREGROUND_RED</td>
|
136
|
-
<td>=</td>
|
137
|
-
<td class="context-item-value">0x0004</td>
|
138
|
-
</tr>
|
139
|
-
<tr class="top-aligned-row context-row">
|
140
|
-
<td class="context-item-name">FOREGROUND_INTENSITY</td>
|
141
|
-
<td>=</td>
|
142
|
-
<td class="context-item-value">0x0008</td>
|
143
|
-
</tr>
|
144
|
-
<tr class="top-aligned-row context-row">
|
145
|
-
<td class="context-item-name">BACKGROUND_BLUE</td>
|
146
|
-
<td>=</td>
|
147
|
-
<td class="context-item-value">0x0010</td>
|
148
|
-
</tr>
|
149
|
-
<tr class="top-aligned-row context-row">
|
150
|
-
<td class="context-item-name">BACKGROUND_GREEN</td>
|
151
|
-
<td>=</td>
|
152
|
-
<td class="context-item-value">0x0020</td>
|
153
|
-
</tr>
|
154
|
-
<tr class="top-aligned-row context-row">
|
155
|
-
<td class="context-item-name">BACKGROUND_RED</td>
|
156
|
-
<td>=</td>
|
157
|
-
<td class="context-item-value">0x0040</td>
|
158
|
-
</tr>
|
159
|
-
<tr class="top-aligned-row context-row">
|
160
|
-
<td class="context-item-name">BACKGROUND_INTENSITY</td>
|
161
|
-
<td>=</td>
|
162
|
-
<td class="context-item-value">0x0080</td>
|
163
|
-
</tr>
|
164
|
-
<tr class="top-aligned-row context-row">
|
165
|
-
<td class="context-item-name">ENABLE_PROCESSED_INPUT</td>
|
166
|
-
<td>=</td>
|
167
|
-
<td class="context-item-value">0x0001</td>
|
168
|
-
</tr>
|
169
|
-
<tr class="top-aligned-row context-row">
|
170
|
-
<td class="context-item-name">ENABLE_LINE_INPUT</td>
|
171
|
-
<td>=</td>
|
172
|
-
<td class="context-item-value">0x0002</td>
|
173
|
-
</tr>
|
174
|
-
<tr class="top-aligned-row context-row">
|
175
|
-
<td class="context-item-name">ENABLE_ECHO_INPUT</td>
|
176
|
-
<td>=</td>
|
177
|
-
<td class="context-item-value">0x0004</td>
|
178
|
-
</tr>
|
179
|
-
<tr class="top-aligned-row context-row">
|
180
|
-
<td class="context-item-name">ENABLE_WINDOW_INPUT</td>
|
181
|
-
<td>=</td>
|
182
|
-
<td class="context-item-value">0x0008</td>
|
183
|
-
</tr>
|
184
|
-
<tr class="top-aligned-row context-row">
|
185
|
-
<td class="context-item-name">ENABLE_MOUSE_INPUT</td>
|
186
|
-
<td>=</td>
|
187
|
-
<td class="context-item-value">0x0010</td>
|
188
|
-
</tr>
|
189
|
-
<tr class="top-aligned-row context-row">
|
190
|
-
<td class="context-item-name">ENABLE_PROCESSED_OUTPUT</td>
|
191
|
-
<td>=</td>
|
192
|
-
<td class="context-item-value">0x0001</td>
|
193
|
-
</tr>
|
194
|
-
<tr class="top-aligned-row context-row">
|
195
|
-
<td class="context-item-name">ENABLE_WRAP_AT_EOL_OUTPUT</td>
|
196
|
-
<td>=</td>
|
197
|
-
<td class="context-item-value">0x0002</td>
|
198
|
-
</tr>
|
199
|
-
<tr class="top-aligned-row context-row">
|
200
|
-
<td class="context-item-name">KEY_EVENT</td>
|
201
|
-
<td>=</td>
|
202
|
-
<td class="context-item-value">0x0001</td>
|
203
|
-
</tr>
|
204
|
-
<tr class="top-aligned-row context-row">
|
205
|
-
<td class="context-item-name">MOUSE_EVENT</td>
|
206
|
-
<td>=</td>
|
207
|
-
<td class="context-item-value">0x0002</td>
|
208
|
-
</tr>
|
209
|
-
<tr class="top-aligned-row context-row">
|
210
|
-
<td class="context-item-name">WINDOW_BUFFER_SIZE_EVENT</td>
|
211
|
-
<td>=</td>
|
212
|
-
<td class="context-item-value">0x0004</td>
|
213
|
-
</tr>
|
214
|
-
<tr class="top-aligned-row context-row">
|
215
|
-
<td class="context-item-name">MENU_EVENT</td>
|
216
|
-
<td>=</td>
|
217
|
-
<td class="context-item-value">0x0008</td>
|
218
|
-
</tr>
|
219
|
-
<tr class="top-aligned-row context-row">
|
220
|
-
<td class="context-item-name">FOCUS_EVENT</td>
|
221
|
-
<td>=</td>
|
222
|
-
<td class="context-item-value">0x0010</td>
|
223
|
-
</tr>
|
224
|
-
<tr class="top-aligned-row context-row">
|
225
|
-
<td class="context-item-name">CAPSLOCK_ON</td>
|
226
|
-
<td>=</td>
|
227
|
-
<td class="context-item-value">0x0080</td>
|
228
|
-
</tr>
|
229
|
-
<tr class="top-aligned-row context-row">
|
230
|
-
<td class="context-item-name">ENHANCED_KEY</td>
|
231
|
-
<td>=</td>
|
232
|
-
<td class="context-item-value">0x0100</td>
|
233
|
-
</tr>
|
234
|
-
<tr class="top-aligned-row context-row">
|
235
|
-
<td class="context-item-name">NUMLOCK_ON</td>
|
236
|
-
<td>=</td>
|
237
|
-
<td class="context-item-value">0x0020</td>
|
238
|
-
</tr>
|
239
|
-
<tr class="top-aligned-row context-row">
|
240
|
-
<td class="context-item-name">SHIFT_PRESSED</td>
|
241
|
-
<td>=</td>
|
242
|
-
<td class="context-item-value">0x0010</td>
|
243
|
-
</tr>
|
244
|
-
<tr class="top-aligned-row context-row">
|
245
|
-
<td class="context-item-name">LEFT_CTRL_PRESSED</td>
|
246
|
-
<td>=</td>
|
247
|
-
<td class="context-item-value">0x0008</td>
|
248
|
-
</tr>
|
249
|
-
<tr class="top-aligned-row context-row">
|
250
|
-
<td class="context-item-name">RIGHT_CTRL_PRESSED</td>
|
251
|
-
<td>=</td>
|
252
|
-
<td class="context-item-value">0x0004</td>
|
253
|
-
</tr>
|
254
|
-
<tr class="top-aligned-row context-row">
|
255
|
-
<td class="context-item-name">LEFT_ALT_PRESSED</td>
|
256
|
-
<td>=</td>
|
257
|
-
<td class="context-item-value">0x0002</td>
|
258
|
-
</tr>
|
259
|
-
<tr class="top-aligned-row context-row">
|
260
|
-
<td class="context-item-name">RIGHT_ALT_PRESSED</td>
|
261
|
-
<td>=</td>
|
262
|
-
<td class="context-item-value">0x0001</td>
|
263
|
-
</tr>
|
264
|
-
<tr class="top-aligned-row context-row">
|
265
|
-
<td class="context-item-name">SCROLLLOCK_ON</td>
|
266
|
-
<td>=</td>
|
267
|
-
<td class="context-item-value">0x0040</td>
|
268
|
-
</tr>
|
269
|
-
<tr class="top-aligned-row context-row">
|
270
|
-
<td class="context-item-name">MOUSE_WHEELED</td>
|
271
|
-
<td>=</td>
|
272
|
-
<td class="context-item-value">0x0004</td>
|
273
|
-
</tr>
|
274
|
-
<tr class="top-aligned-row context-row">
|
275
|
-
<td class="context-item-name">DOUBLE_CLICK</td>
|
276
|
-
<td>=</td>
|
277
|
-
<td class="context-item-value">0x0002</td>
|
278
|
-
</tr>
|
279
|
-
<tr class="top-aligned-row context-row">
|
280
|
-
<td class="context-item-name">MOUSE_MOVED</td>
|
281
|
-
<td>=</td>
|
282
|
-
<td class="context-item-value">0x0001</td>
|
283
|
-
</tr>
|
284
|
-
<tr class="top-aligned-row context-row">
|
285
|
-
<td class="context-item-name">FROM_LEFT_1ST_BUTTON_PRESSED</td>
|
286
|
-
<td>=</td>
|
287
|
-
<td class="context-item-value">0x0001</td>
|
288
|
-
</tr>
|
289
|
-
<tr class="top-aligned-row context-row">
|
290
|
-
<td class="context-item-name">FROM_LEFT_2ND_BUTTON_PRESSED</td>
|
291
|
-
<td>=</td>
|
292
|
-
<td class="context-item-value">0x0004</td>
|
293
|
-
</tr>
|
294
|
-
<tr class="top-aligned-row context-row">
|
295
|
-
<td class="context-item-name">FROM_LEFT_3RD_BUTTON_PRESSED</td>
|
296
|
-
<td>=</td>
|
297
|
-
<td class="context-item-value">0x0008</td>
|
298
|
-
</tr>
|
299
|
-
<tr class="top-aligned-row context-row">
|
300
|
-
<td class="context-item-name">FROM_LEFT_4TH_BUTTON_PRESSED</td>
|
301
|
-
<td>=</td>
|
302
|
-
<td class="context-item-value">0x0010</td>
|
303
|
-
</tr>
|
304
|
-
<tr class="top-aligned-row context-row">
|
305
|
-
<td class="context-item-name">RIGHTMOST_BUTTON_PRESSED</td>
|
306
|
-
<td>=</td>
|
307
|
-
<td class="context-item-value">0x0002</td>
|
308
|
-
</tr>
|
309
|
-
<tr class="top-aligned-row context-row">
|
310
|
-
<td class="context-item-name">CTRL_C_EVENT</td>
|
311
|
-
<td>=</td>
|
312
|
-
<td class="context-item-value">0x0000</td>
|
313
|
-
</tr>
|
314
|
-
<tr class="top-aligned-row context-row">
|
315
|
-
<td class="context-item-name">CTRL_BREAK_EVENT</td>
|
316
|
-
<td>=</td>
|
317
|
-
<td class="context-item-value">0x0001</td>
|
318
|
-
</tr>
|
319
|
-
<tr class="top-aligned-row context-row">
|
320
|
-
<td class="context-item-name">CTRL_CLOSE_EVENT</td>
|
321
|
-
<td>=</td>
|
322
|
-
<td class="context-item-value">0x0002</td>
|
323
|
-
</tr>
|
324
|
-
<tr class="top-aligned-row context-row">
|
325
|
-
<td class="context-item-name">CTRL_LOGOFF_EVENT</td>
|
326
|
-
<td>=</td>
|
327
|
-
<td class="context-item-value">0x0005</td>
|
328
|
-
</tr>
|
329
|
-
<tr class="top-aligned-row context-row">
|
330
|
-
<td class="context-item-name">CTRL_SHUTDOWN_EVENT</td>
|
331
|
-
<td>=</td>
|
332
|
-
<td class="context-item-value">0x0006</td>
|
333
|
-
</tr>
|
334
|
-
</table>
|
335
|
-
</div>
|
336
|
-
</div>
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
</div>
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
<!-- if includes -->
|
347
|
-
|
348
|
-
|
349
|
-
<!-- if method_list -->
|
350
|
-
|
351
|
-
|
352
|
-
</div>
|
353
|
-
|
354
|
-
|
355
|
-
<div id="validator-badges">
|
356
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
357
|
-
</div>
|
358
|
-
|
359
|
-
</body>
|
360
|
-
</html>
|