win32console 1.0.8-i386-mswin32
Sign up to get free protection for your applications and to get access to all the features.
- data/Console-i386-mswin32.def +2 -0
- data/Console.cpp +1203 -0
- data/Console.rdoc +690 -0
- data/Console_ANSI.rdoc +302 -0
- data/HISTORY.txt +7 -0
- data/INSTALL.txt +18 -0
- data/README.txt +26 -0
- data/Rakefile +38 -0
- data/doc/classes/Win32.html +115 -0
- data/doc/classes/Win32/Console.html +650 -0
- data/doc/classes/Win32/Console.src/M000001.html +31 -0
- data/doc/classes/Win32/Console.src/M000002.html +23 -0
- data/doc/classes/Win32/Console.src/M000003.html +23 -0
- data/doc/classes/Win32/Console.src/M000004.html +27 -0
- data/doc/classes/Win32/Console.src/M000005.html +23 -0
- data/doc/classes/Win32/Console.src/M000006.html +28 -0
- data/doc/classes/Win32/Console.src/M000007.html +23 -0
- data/doc/classes/Win32/Console.src/M000008.html +24 -0
- data/doc/classes/Win32/Console.src/M000009.html +44 -0
- data/doc/classes/Win32/Console.src/M000010.html +23 -0
- data/doc/classes/Win32/Console.src/M000011.html +33 -0
- data/doc/classes/Win32/Console.src/M000012.html +26 -0
- data/doc/classes/Win32/Console.src/M000013.html +27 -0
- data/doc/classes/Win32/Console.src/M000014.html +28 -0
- data/doc/classes/Win32/Console.src/M000015.html +23 -0
- data/doc/classes/Win32/Console.src/M000016.html +23 -0
- data/doc/classes/Win32/Console.src/M000017.html +23 -0
- data/doc/classes/Win32/Console.src/M000018.html +29 -0
- data/doc/classes/Win32/Console.src/M000019.html +23 -0
- data/doc/classes/Win32/Console.src/M000020.html +23 -0
- data/doc/classes/Win32/Console.src/M000021.html +28 -0
- data/doc/classes/Win32/Console.src/M000022.html +23 -0
- data/doc/classes/Win32/Console.src/M000023.html +28 -0
- data/doc/classes/Win32/Console.src/M000024.html +35 -0
- data/doc/classes/Win32/Console.src/M000025.html +28 -0
- data/doc/classes/Win32/Console.src/M000026.html +28 -0
- data/doc/classes/Win32/Console.src/M000027.html +28 -0
- data/doc/classes/Win32/Console.src/M000028.html +31 -0
- data/doc/classes/Win32/Console.src/M000029.html +23 -0
- data/doc/classes/Win32/Console.src/M000030.html +23 -0
- data/doc/classes/Win32/Console.src/M000031.html +23 -0
- data/doc/classes/Win32/Console.src/M000032.html +27 -0
- data/doc/classes/Win32/Console.src/M000033.html +27 -0
- data/doc/classes/Win32/Console.src/M000034.html +25 -0
- data/doc/classes/Win32/Console/ANSI.html +103 -0
- data/doc/classes/Win32/Console/ANSI/IO.html +220 -0
- data/doc/classes/Win32/Console/ANSI/IO.src/M000035.html +32 -0
- data/doc/classes/Win32/Console/ANSI/IO.src/M000036.html +205 -0
- data/doc/classes/Win32/Console/ANSI/IO.src/M000037.html +40 -0
- data/doc/classes/Win32/Console/ANSI/IO.src/M000038.html +25 -0
- data/doc/classes/Win32/Console/API.html +758 -0
- data/doc/classes/Win32/Console/API.src/M000039.html +27 -0
- data/doc/classes/Win32/Console/API.src/M000040.html +27 -0
- data/doc/classes/Win32/Console/API.src/M000041.html +27 -0
- data/doc/classes/Win32/Console/API.src/M000042.html +32 -0
- data/doc/classes/Win32/Console/API.src/M000043.html +32 -0
- data/doc/classes/Win32/Console/API.src/M000044.html +28 -0
- data/doc/classes/Win32/Console/API.src/M000045.html +26 -0
- data/doc/classes/Win32/Console/API.src/M000046.html +26 -0
- data/doc/classes/Win32/Console/API.src/M000047.html +27 -0
- data/doc/classes/Win32/Console/API.src/M000048.html +30 -0
- data/doc/classes/Win32/Console/API.src/M000049.html +29 -0
- data/doc/classes/Win32/Console/API.src/M000050.html +27 -0
- data/doc/classes/Win32/Console/API.src/M000051.html +28 -0
- data/doc/classes/Win32/Console/API.src/M000052.html +30 -0
- data/doc/classes/Win32/Console/API.src/M000053.html +27 -0
- data/doc/classes/Win32/Console/API.src/M000054.html +29 -0
- data/doc/classes/Win32/Console/API.src/M000055.html +29 -0
- data/doc/classes/Win32/Console/API.src/M000056.html +28 -0
- data/doc/classes/Win32/Console/API.src/M000057.html +27 -0
- data/doc/classes/Win32/Console/API.src/M000058.html +47 -0
- data/doc/classes/Win32/Console/API.src/M000059.html +32 -0
- data/doc/classes/Win32/Console/API.src/M000060.html +47 -0
- data/doc/classes/Win32/Console/API.src/M000061.html +34 -0
- data/doc/classes/Win32/Console/API.src/M000062.html +32 -0
- data/doc/classes/Win32/Console/API.src/M000063.html +32 -0
- data/doc/classes/Win32/Console/API.src/M000064.html +35 -0
- data/doc/classes/Win32/Console/API.src/M000065.html +26 -0
- data/doc/classes/Win32/Console/API.src/M000066.html +27 -0
- data/doc/classes/Win32/Console/API.src/M000067.html +29 -0
- data/doc/classes/Win32/Console/API.src/M000068.html +27 -0
- data/doc/classes/Win32/Console/API.src/M000069.html +27 -0
- data/doc/classes/Win32/Console/API.src/M000070.html +28 -0
- data/doc/classes/Win32/Console/API.src/M000071.html +27 -0
- data/doc/classes/Win32/Console/API.src/M000072.html +26 -0
- data/doc/classes/Win32/Console/API.src/M000073.html +27 -0
- data/doc/classes/Win32/Console/API.src/M000074.html +31 -0
- data/doc/classes/Win32/Console/API.src/M000075.html +27 -0
- data/doc/classes/Win32/Console/API.src/M000076.html +32 -0
- data/doc/classes/Win32/Console/API.src/M000077.html +27 -0
- data/doc/classes/Win32/Console/API.src/M000078.html +32 -0
- data/doc/classes/Win32/Console/API.src/M000079.html +32 -0
- data/doc/classes/Win32/Console/API.src/M000080.html +32 -0
- data/doc/classes/Win32/Console/Constants.html +360 -0
- data/doc/created.rid +1 -0
- data/doc/files/Console_ANSI_rdoc.html +407 -0
- data/doc/files/Console_cpp.html +104 -0
- data/doc/files/Console_rdoc.html +964 -0
- data/doc/files/lib/Win32/Console/ANSI_rb.html +123 -0
- data/doc/files/lib/Win32/Console_rb.html +297 -0
- data/doc/fr_class_index.html +32 -0
- data/doc/fr_file_index.html +31 -0
- data/doc/fr_method_index.html +106 -0
- data/doc/index.html +24 -0
- data/doc/rdoc-style.css +172 -0
- data/lib/Console.so +0 -0
- data/lib/README_GEM.txt +64 -0
- data/lib/Term/ansicolor.rb +76 -0
- data/lib/Win32/Console.rb +970 -0
- data/lib/Win32/Console/ANSI.rb +305 -0
- data/lib/win32console.rb +3 -0
- data/test/test_cursor.rb +9 -0
- data/test/test_mouse.rb +6 -0
- data/test/test_readinput.rb +62 -0
- data/test/test_readoutput.rb +52 -0
- data/test/test_sendevent.rb +17 -0
- data/test/test_title.rb +14 -0
- data/test/test_write.rb +36 -0
- metadata +180 -0
@@ -0,0 +1,23 @@
|
|
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
|
+
Flush (Win32::Console)
|
9
|
+
|
10
|
+
-->
|
11
|
+
<html>
|
12
|
+
<head>
|
13
|
+
<title>Flush (Win32::Console)</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 749</span>
|
19
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">Flush</span>()
|
20
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-constant">API</span>.<span class="ruby-constant">FlushConsoleInputBuffer</span>(<span class="ruby-ivar">@handle</span>)
|
21
|
+
<span class="ruby-keyword kw">end</span></pre>
|
22
|
+
</body>
|
23
|
+
</html>
|
@@ -0,0 +1,29 @@
|
|
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
|
+
InputChar (Win32::Console)
|
9
|
+
|
10
|
+
-->
|
11
|
+
<html>
|
12
|
+
<head>
|
13
|
+
<title>InputChar (Win32::Console)</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 753</span>
|
19
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">InputChar</span>(<span class="ruby-identifier">number</span> = <span class="ruby-keyword kw">nil</span>)
|
20
|
+
<span class="ruby-identifier">number</span> = <span class="ruby-value">1</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">number</span>
|
21
|
+
<span class="ruby-identifier">buffer</span> = <span class="ruby-value str">' '</span> <span class="ruby-operator">*</span> <span class="ruby-identifier">number</span>
|
22
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-constant">API</span>.<span class="ruby-constant">ReadConsole</span>(<span class="ruby-ivar">@handle</span>, <span class="ruby-identifier">buffer</span>, <span class="ruby-identifier">number</span>) <span class="ruby-operator">==</span> <span class="ruby-identifier">number</span>
|
23
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">buffer</span>
|
24
|
+
<span class="ruby-keyword kw">else</span>
|
25
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">nil</span>
|
26
|
+
<span class="ruby-keyword kw">end</span>
|
27
|
+
<span class="ruby-keyword kw">end</span></pre>
|
28
|
+
</body>
|
29
|
+
</html>
|
@@ -0,0 +1,23 @@
|
|
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
|
+
Input (Win32::Console)
|
9
|
+
|
10
|
+
-->
|
11
|
+
<html>
|
12
|
+
<head>
|
13
|
+
<title>Input (Win32::Console)</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 764</span>
|
19
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">Input</span>()
|
20
|
+
<span class="ruby-constant">API</span>.<span class="ruby-constant">ReadConsoleInput</span>(<span class="ruby-ivar">@handle</span>)
|
21
|
+
<span class="ruby-keyword kw">end</span></pre>
|
22
|
+
</body>
|
23
|
+
</html>
|
@@ -0,0 +1,23 @@
|
|
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
|
+
PeekInput (Win32::Console)
|
9
|
+
|
10
|
+
-->
|
11
|
+
<html>
|
12
|
+
<head>
|
13
|
+
<title>PeekInput (Win32::Console)</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 769</span>
|
19
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">PeekInput</span>()
|
20
|
+
<span class="ruby-constant">API</span>.<span class="ruby-constant">PeekConsoleInput</span>(<span class="ruby-ivar">@handle</span>)
|
21
|
+
<span class="ruby-keyword kw">end</span></pre>
|
22
|
+
</body>
|
23
|
+
</html>
|
@@ -0,0 +1,28 @@
|
|
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
|
+
Mode (Win32::Console)
|
9
|
+
|
10
|
+
-->
|
11
|
+
<html>
|
12
|
+
<head>
|
13
|
+
<title>Mode (Win32::Console)</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 774</span>
|
19
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">Mode</span>(<span class="ruby-identifier">mode</span> = <span class="ruby-keyword kw">nil</span>)
|
20
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">mode</span>
|
21
|
+
<span class="ruby-identifier">mode</span> = <span class="ruby-identifier">mode</span>.<span class="ruby-identifier">pack</span>(<span class="ruby-value str">'L'</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">mode</span> <span class="ruby-operator">===</span> <span class="ruby-constant">Array</span>
|
22
|
+
<span class="ruby-constant">API</span>.<span class="ruby-constant">SetConsoleMode</span>(<span class="ruby-ivar">@handle</span>, <span class="ruby-identifier">mode</span>)
|
23
|
+
<span class="ruby-keyword kw">else</span>
|
24
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-constant">API</span>.<span class="ruby-constant">GetConsoleMode</span>(<span class="ruby-ivar">@handle</span>)
|
25
|
+
<span class="ruby-keyword kw">end</span>
|
26
|
+
<span class="ruby-keyword kw">end</span></pre>
|
27
|
+
</body>
|
28
|
+
</html>
|
@@ -0,0 +1,23 @@
|
|
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
|
+
WriteInput (Win32::Console)
|
9
|
+
|
10
|
+
-->
|
11
|
+
<html>
|
12
|
+
<head>
|
13
|
+
<title>WriteInput (Win32::Console)</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 783</span>
|
19
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">WriteInput</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">t</span>)
|
20
|
+
<span class="ruby-constant">API</span>.<span class="ruby-constant">WriteConsoleInput</span>(<span class="ruby-ivar">@handle</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">t</span>)
|
21
|
+
<span class="ruby-keyword kw">end</span></pre>
|
22
|
+
</body>
|
23
|
+
</html>
|
@@ -0,0 +1,28 @@
|
|
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
|
+
Attr (Win32::Console)
|
9
|
+
|
10
|
+
-->
|
11
|
+
<html>
|
12
|
+
<head>
|
13
|
+
<title>Attr (Win32::Console)</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 787</span>
|
19
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">Attr</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">attr</span>)
|
20
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">attr</span>.<span class="ruby-identifier">size</span> <span class="ruby-operator">></span> <span class="ruby-value">0</span>
|
21
|
+
<span class="ruby-constant">API</span>.<span class="ruby-constant">SetConsoleTextAttribute</span>( <span class="ruby-ivar">@handle</span>, <span class="ruby-identifier">attr</span>[<span class="ruby-value">0</span>] )
|
22
|
+
<span class="ruby-keyword kw">else</span>
|
23
|
+
<span class="ruby-identifier">info</span> = <span class="ruby-constant">API</span>.<span class="ruby-constant">GetConsoleScreenBufferInfo</span>( <span class="ruby-ivar">@handle</span> )
|
24
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">info</span>[<span class="ruby-value">4</span>]
|
25
|
+
<span class="ruby-keyword kw">end</span>
|
26
|
+
<span class="ruby-keyword kw">end</span></pre>
|
27
|
+
</body>
|
28
|
+
</html>
|
@@ -0,0 +1,35 @@
|
|
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
|
+
Size (Win32::Console)
|
9
|
+
|
10
|
+
-->
|
11
|
+
<html>
|
12
|
+
<head>
|
13
|
+
<title>Size (Win32::Console)</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 797</span>
|
19
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">Size</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">t</span>)
|
20
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">t</span>.<span class="ruby-identifier">size</span> <span class="ruby-operator">==</span> <span class="ruby-value">0</span>
|
21
|
+
<span class="ruby-identifier">col</span>, <span class="ruby-identifier">row</span> = <span class="ruby-constant">API</span>.<span class="ruby-constant">GetConsoleScreenBufferInfo</span>(<span class="ruby-ivar">@handle</span> )
|
22
|
+
<span class="ruby-keyword kw">return</span> [<span class="ruby-identifier">col</span>, <span class="ruby-identifier">row</span>]
|
23
|
+
<span class="ruby-keyword kw">else</span>
|
24
|
+
<span class="ruby-identifier">row</span> = <span class="ruby-value">-1</span> <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">t</span>[<span class="ruby-value">1</span>]
|
25
|
+
<span class="ruby-identifier">col</span> = <span class="ruby-value">-1</span> <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">t</span>[<span class="ruby-value">0</span>]
|
26
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">col</span> <span class="ruby-operator"><</span> <span class="ruby-value">0</span> <span class="ruby-keyword kw">or</span> <span class="ruby-identifier">row</span> <span class="ruby-operator"><</span> <span class="ruby-value">0</span>
|
27
|
+
<span class="ruby-identifier">curr_col</span>, <span class="ruby-identifier">curr_row</span> = <span class="ruby-constant">Size</span>()
|
28
|
+
<span class="ruby-identifier">col</span> = <span class="ruby-identifier">curr_col</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">col</span> <span class="ruby-operator"><</span> <span class="ruby-value">0</span>
|
29
|
+
<span class="ruby-identifier">row</span> = <span class="ruby-identifier">curr_row</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">row</span> <span class="ruby-operator"><</span> <span class="ruby-value">0</span>
|
30
|
+
<span class="ruby-keyword kw">end</span>
|
31
|
+
<span class="ruby-constant">API</span>.<span class="ruby-constant">SetConsoleScreenBufferSize</span>(<span class="ruby-ivar">@handle</span>, <span class="ruby-identifier">row</span>, <span class="ruby-identifier">col</span>)
|
32
|
+
<span class="ruby-keyword kw">end</span>
|
33
|
+
<span class="ruby-keyword kw">end</span></pre>
|
34
|
+
</body>
|
35
|
+
</html>
|
@@ -0,0 +1,28 @@
|
|
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
|
+
Window (Win32::Console)
|
9
|
+
|
10
|
+
-->
|
11
|
+
<html>
|
12
|
+
<head>
|
13
|
+
<title>Window (Win32::Console)</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 813</span>
|
19
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">Window</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">t</span>)
|
20
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">t</span>.<span class="ruby-identifier">size</span> <span class="ruby-operator">!=</span> <span class="ruby-value">5</span>
|
21
|
+
<span class="ruby-identifier">info</span> = <span class="ruby-constant">API</span>.<span class="ruby-constant">GetConsoleScreenBufferInfo</span>( <span class="ruby-ivar">@handle</span> )
|
22
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">info</span>[<span class="ruby-value">5</span><span class="ruby-operator">..</span><span class="ruby-value">8</span>]
|
23
|
+
<span class="ruby-keyword kw">else</span>
|
24
|
+
<span class="ruby-constant">API</span>.<span class="ruby-constant">SetConsoleWindowInfo</span>(<span class="ruby-ivar">@handle</span>, <span class="ruby-identifier">t</span>[<span class="ruby-value">0</span>], <span class="ruby-identifier">t</span>[<span class="ruby-value">1</span>], <span class="ruby-identifier">t</span>[<span class="ruby-value">2</span>], <span class="ruby-identifier">t</span>[<span class="ruby-value">3</span>], <span class="ruby-identifier">t</span>[<span class="ruby-value">4</span>])
|
25
|
+
<span class="ruby-keyword kw">end</span>
|
26
|
+
<span class="ruby-keyword kw">end</span></pre>
|
27
|
+
</body>
|
28
|
+
</html>
|
@@ -0,0 +1,28 @@
|
|
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
|
+
FillAttr (Win32::Console)
|
9
|
+
|
10
|
+
-->
|
11
|
+
<html>
|
12
|
+
<head>
|
13
|
+
<title>FillAttr (Win32::Console)</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 822</span>
|
19
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">FillAttr</span>(<span class="ruby-identifier">attr</span>, <span class="ruby-identifier">number</span> = <span class="ruby-value">1</span>, <span class="ruby-identifier">col</span> = <span class="ruby-value">-1</span>, <span class="ruby-identifier">row</span> = <span class="ruby-value">-1</span>)
|
20
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">col</span> <span class="ruby-operator"><</span> <span class="ruby-value">0</span> <span class="ruby-keyword kw">or</span> <span class="ruby-identifier">row</span> <span class="ruby-operator"><</span> <span class="ruby-value">0</span>
|
21
|
+
<span class="ruby-identifier">d</span>, <span class="ruby-identifier">d</span>, <span class="ruby-identifier">curr_col</span>, <span class="ruby-identifier">curr_row</span> = <span class="ruby-constant">API</span>.<span class="ruby-constant">GetConsoleScreenBufferInfo</span>(<span class="ruby-ivar">@handle</span>)
|
22
|
+
<span class="ruby-identifier">col</span> = <span class="ruby-identifier">curr_col</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">col</span> <span class="ruby-operator"><</span> <span class="ruby-value">0</span>
|
23
|
+
<span class="ruby-identifier">row</span> = <span class="ruby-identifier">curr_row</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">row</span> <span class="ruby-operator"><</span> <span class="ruby-value">0</span>
|
24
|
+
<span class="ruby-keyword kw">end</span>
|
25
|
+
<span class="ruby-constant">API</span>.<span class="ruby-constant">FillConsoleOutputAttribute</span>(<span class="ruby-ivar">@handle</span>, <span class="ruby-identifier">attr</span>, <span class="ruby-identifier">number</span>, <span class="ruby-identifier">col</span>, <span class="ruby-identifier">row</span>)
|
26
|
+
<span class="ruby-keyword kw">end</span></pre>
|
27
|
+
</body>
|
28
|
+
</html>
|
@@ -0,0 +1,28 @@
|
|
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
|
+
FillChar (Win32::Console)
|
9
|
+
|
10
|
+
-->
|
11
|
+
<html>
|
12
|
+
<head>
|
13
|
+
<title>FillChar (Win32::Console)</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 831</span>
|
19
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">FillChar</span>(<span class="ruby-identifier">char</span>, <span class="ruby-identifier">number</span>, <span class="ruby-identifier">col</span> = <span class="ruby-value">-1</span>, <span class="ruby-identifier">row</span> = <span class="ruby-value">-1</span>)
|
20
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">col</span> <span class="ruby-operator"><</span> <span class="ruby-value">0</span> <span class="ruby-keyword kw">or</span> <span class="ruby-identifier">row</span> <span class="ruby-operator"><</span> <span class="ruby-value">0</span>
|
21
|
+
<span class="ruby-identifier">d</span>, <span class="ruby-identifier">d</span>, <span class="ruby-identifier">curr_col</span>, <span class="ruby-identifier">curr_row</span> = <span class="ruby-constant">API</span>.<span class="ruby-constant">GetConsoleScreenBufferInfo</span>(<span class="ruby-ivar">@handle</span>)
|
22
|
+
<span class="ruby-identifier">col</span> = <span class="ruby-identifier">curr_col</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">col</span> <span class="ruby-operator"><</span> <span class="ruby-value">0</span>
|
23
|
+
<span class="ruby-identifier">row</span> = <span class="ruby-identifier">curr_row</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">row</span> <span class="ruby-operator"><</span> <span class="ruby-value">0</span>
|
24
|
+
<span class="ruby-keyword kw">end</span>
|
25
|
+
<span class="ruby-constant">API</span>.<span class="ruby-constant">FillConsoleOutputCharacter</span>(<span class="ruby-ivar">@handle</span>, <span class="ruby-identifier">char</span>[<span class="ruby-value">0</span>], <span class="ruby-identifier">number</span>, <span class="ruby-identifier">col</span>, <span class="ruby-identifier">row</span>)
|
26
|
+
<span class="ruby-keyword kw">end</span></pre>
|
27
|
+
</body>
|
28
|
+
</html>
|
@@ -0,0 +1,31 @@
|
|
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
|
+
Cls (Win32::Console)
|
9
|
+
|
10
|
+
-->
|
11
|
+
<html>
|
12
|
+
<head>
|
13
|
+
<title>Cls (Win32::Console)</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 840</span>
|
19
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">Cls</span>()
|
20
|
+
<span class="ruby-identifier">attr</span> = <span class="ruby-constant">ATTR_NORMAL</span>
|
21
|
+
<span class="ruby-identifier">x</span>, <span class="ruby-identifier">y</span> = <span class="ruby-constant">Size</span>()
|
22
|
+
<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-constant">Window</span>()
|
23
|
+
<span class="ruby-identifier">vx</span> = <span class="ruby-identifier">right</span> <span class="ruby-operator">-</span> <span class="ruby-identifier">left</span>
|
24
|
+
<span class="ruby-identifier">vy</span> = <span class="ruby-identifier">bottom</span> <span class="ruby-operator">-</span> <span class="ruby-identifier">top</span>
|
25
|
+
<span class="ruby-constant">FillChar</span>(<span class="ruby-value str">' '</span>, <span class="ruby-identifier">x</span><span class="ruby-operator">*</span><span class="ruby-identifier">y</span>, <span class="ruby-value">0</span>, <span class="ruby-value">0</span>)
|
26
|
+
<span class="ruby-constant">FillAttr</span>(<span class="ruby-identifier">attr</span>, <span class="ruby-identifier">x</span><span class="ruby-operator">*</span><span class="ruby-identifier">y</span>, <span class="ruby-value">0</span>, <span class="ruby-value">0</span>)
|
27
|
+
<span class="ruby-constant">Cursor</span>(<span class="ruby-value">0</span>,<span class="ruby-value">0</span>)
|
28
|
+
<span class="ruby-constant">Window</span>(<span class="ruby-value">1</span>,<span class="ruby-value">0</span>,<span class="ruby-value">0</span>,<span class="ruby-identifier">vx</span>,<span class="ruby-identifier">vy</span>)
|
29
|
+
<span class="ruby-keyword kw">end</span></pre>
|
30
|
+
</body>
|
31
|
+
</html>
|
@@ -0,0 +1,23 @@
|
|
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
|
+
Free (Win32::Console)
|
9
|
+
|
10
|
+
-->
|
11
|
+
<html>
|
12
|
+
<head>
|
13
|
+
<title>Free (Win32::Console)</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 852</span>
|
19
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">Console</span>.<span class="ruby-constant">Free</span>()
|
20
|
+
<span class="ruby-constant">API</span>.<span class="ruby-constant">FreeConsole</span>()
|
21
|
+
<span class="ruby-keyword kw">end</span></pre>
|
22
|
+
</body>
|
23
|
+
</html>
|
@@ -0,0 +1,23 @@
|
|
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
|
+
Alloc (Win32::Console)
|
9
|
+
|
10
|
+
-->
|
11
|
+
<html>
|
12
|
+
<head>
|
13
|
+
<title>Alloc (Win32::Console)</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 856</span>
|
19
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">Console</span>.<span class="ruby-constant">Alloc</span>()
|
20
|
+
<span class="ruby-constant">API</span>.<span class="ruby-constant">AllocConsole</span>()
|
21
|
+
<span class="ruby-keyword kw">end</span></pre>
|
22
|
+
</body>
|
23
|
+
</html>
|
@@ -0,0 +1,23 @@
|
|
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
|
+
MouseButtons (Win32::Console)
|
9
|
+
|
10
|
+
-->
|
11
|
+
<html>
|
12
|
+
<head>
|
13
|
+
<title>MouseButtons (Win32::Console)</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 860</span>
|
19
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">Console</span>.<span class="ruby-constant">MouseButtons</span>()
|
20
|
+
<span class="ruby-constant">API</span>.<span class="ruby-constant">GetNumberOfConsoleMouseButtons</span>()
|
21
|
+
<span class="ruby-keyword kw">end</span></pre>
|
22
|
+
</body>
|
23
|
+
</html>
|
@@ -0,0 +1,27 @@
|
|
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
|
+
InputCP (Win32::Console)
|
9
|
+
|
10
|
+
-->
|
11
|
+
<html>
|
12
|
+
<head>
|
13
|
+
<title>InputCP (Win32::Console)</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 864</span>
|
19
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">Console</span>.<span class="ruby-constant">InputCP</span>(<span class="ruby-identifier">codepage</span>=<span class="ruby-keyword kw">nil</span>)
|
20
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">codepage</span>
|
21
|
+
<span class="ruby-constant">API</span>.<span class="ruby-constant">SetConsoleCP</span>(<span class="ruby-identifier">codepage</span>)
|
22
|
+
<span class="ruby-keyword kw">else</span>
|
23
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-constant">API</span>.<span class="ruby-constant">GetConsoleCP</span>()
|
24
|
+
<span class="ruby-keyword kw">end</span>
|
25
|
+
<span class="ruby-keyword kw">end</span></pre>
|
26
|
+
</body>
|
27
|
+
</html>
|