<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://www.computercraft.info/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Keeree</id>
		<title>ComputerCraft Wiki - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="https://www.computercraft.info/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Keeree"/>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/Special:Contributions/Keeree"/>
		<updated>2026-07-11T08:46:40Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.24.1</generator>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Monitor.setTextScale&amp;diff=5040</id>
		<title>Monitor.setTextScale</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Monitor.setTextScale&amp;diff=5040"/>
				<updated>2013-01-26T09:59:30Z</updated>
		
		<summary type="html">&lt;p&gt;Keeree: Fixed documentation to include information about limits.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{lowercase}}&lt;br /&gt;
{{Function&lt;br /&gt;
|name=monitor.setTextScale&lt;br /&gt;
|args=[[Float_(type)|float]] scale&lt;br /&gt;
|api=monitor&lt;br /&gt;
|addon=ComputerCraft&lt;br /&gt;
|desc=Sets the size of all text on the monitor. scale can be any multiple of 0.5, starting at 0.5 and ending at 5.&lt;br /&gt;
|examples=&lt;br /&gt;
{{Example&lt;br /&gt;
|desc=Sets the monitor's text scale to 2.&lt;br /&gt;
|code=monitor.setTextScale(2)&lt;br /&gt;
|output=none&lt;br /&gt;
}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
[[Category:API_Functions]]&lt;/div&gt;</summary>
		<author><name>Keeree</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Redstone_(event)&amp;diff=4922</id>
		<title>Redstone (event)</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Redstone_(event)&amp;diff=4922"/>
				<updated>2013-01-13T09:27:30Z</updated>
		
		<summary type="html">&lt;p&gt;Keeree: Added a second more complete example of usage, and how you might treat this event.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{NeedsWork|A demonstration on the use and handling of this event would be beneficial. ''[[User:AfterLifeLochie|AfterLifeLochie]] 16:13, 30 November 2012 (MSK)''}}&lt;br /&gt;
&lt;br /&gt;
{{Event&lt;br /&gt;
|name=redstone&lt;br /&gt;
|desc=Fired when any Redstone inputs change on any of the sides of the computer.&lt;br /&gt;
}}=== Basic Usage ===&lt;br /&gt;
{{Example&lt;br /&gt;
|desc=Alerts via console output when a redstone input changes.&lt;br /&gt;
|code=&lt;br /&gt;
 while true do&lt;br /&gt;
   event = os.pullEvent(&amp;quot;redstone&amp;quot;)&lt;br /&gt;
   print(&amp;quot;Redstone input changed.&amp;quot;)&lt;br /&gt;
 end&lt;br /&gt;
|output=This will tell one when the redstone event is triggered. Note this doesn't tell you the side of the event.&lt;br /&gt;
}}=== Application ===&lt;br /&gt;
{{Example&lt;br /&gt;
|desc=This program will store the values of each redstone signal on load, and on each state change. It will further display on the screen which state was changed.&lt;br /&gt;
|code=&lt;br /&gt;
 -- Set up a list which contains the sides as keys, and the current redstone state of each side as a boolean value&lt;br /&gt;
 statelist = {&lt;br /&gt;
   [&amp;quot;top&amp;quot;] = rs.getInput(&amp;quot;top&amp;quot;),&lt;br /&gt;
   [&amp;quot;front&amp;quot;] = rs.getInput(&amp;quot;front&amp;quot;),&lt;br /&gt;
   [&amp;quot;left&amp;quot;] = rs.getInput(&amp;quot;left&amp;quot;),&lt;br /&gt;
   [&amp;quot;right&amp;quot;] = rs.getInput(&amp;quot;right&amp;quot;),&lt;br /&gt;
   [&amp;quot;back&amp;quot;] = rs.getInput(&amp;quot;back&amp;quot;),&lt;br /&gt;
   [&amp;quot;bottom&amp;quot;] = rs.getInput(&amp;quot;bottom&amp;quot;),&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 -- Ready the terminal for printing to&lt;br /&gt;
 term.clear()&lt;br /&gt;
 term.setCursorPos(1,1)&lt;br /&gt;
 &lt;br /&gt;
 while true do -- Start an endless loop&lt;br /&gt;
   os.pullEvent(&amp;quot;redstone&amp;quot;) -- Yeild the computer until some redstone changes&lt;br /&gt;
   -- We don't care what the event returns, since the first variable will be &amp;quot;redstone&amp;quot; and the rest will be nil. &lt;br /&gt;
 &lt;br /&gt;
   --Now we check each side to see if it's changed.&lt;br /&gt;
   for side, state in pairs(statelist) do -- Run the lines of code in this loop for each key/value pair in statelist&lt;br /&gt;
     if rs.getInput(side) ~= state then -- If the side we're checking doesn't match what it was last time we checked then&lt;br /&gt;
       print(side..&amp;quot; is now &amp;quot;..tostring(rs.getInput(side))) -- Print the new state of the side.&lt;br /&gt;
       statelist[side] = rs.getInput(side) -- Update the statelist with the new change&lt;br /&gt;
     end&lt;br /&gt;
   end&lt;br /&gt;
 end&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>Keeree</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Redstone_(event)&amp;diff=4913</id>
		<title>Redstone (event)</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Redstone_(event)&amp;diff=4913"/>
				<updated>2013-01-09T05:46:48Z</updated>
		
		<summary type="html">&lt;p&gt;Keeree: Adding Example code&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{NeedsWork|A demonstration on the use and handling of this event would be beneficial. ''[[User:AfterLifeLochie|AfterLifeLochie]] 16:13, 30 November 2012 (MSK)''}}&lt;br /&gt;
&lt;br /&gt;
{{Event&lt;br /&gt;
|name=redstone&lt;br /&gt;
|desc=Fired when any Redstone inputs change on any of the sides of the computer.&lt;br /&gt;
}}&lt;br /&gt;
{{Example&lt;br /&gt;
|desc=Alerts via console output when a redstone input changes.&lt;br /&gt;
|code=&lt;br /&gt;
 while true do&lt;br /&gt;
   event = os.pullEvent(&amp;quot;redstone&amp;quot;)&lt;br /&gt;
   print(&amp;quot;Redstone input changed.&amp;quot;)&lt;br /&gt;
 end&lt;br /&gt;
|output=This will tell one when the redstone event is triggered. Note this doesn't tell you the side of the event.&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>Keeree</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Char_(event)&amp;diff=4912</id>
		<title>Char (event)</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Char_(event)&amp;diff=4912"/>
				<updated>2013-01-09T02:27:02Z</updated>
		
		<summary type="html">&lt;p&gt;Keeree: Added example.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{NeedsWork|A demonstration on the use and handling of this event would be beneficial. ''[[User:AfterLifeLochie|AfterLifeLochie]] 16:09, 30 November 2012 (MSK)''}}&lt;br /&gt;
&lt;br /&gt;
{{Event&lt;br /&gt;
|name=char&lt;br /&gt;
|desc=Fired when a alphanumeric key is pressed on the keyboard.&lt;br /&gt;
|return1=The [[String_(type)|String]] representing the character that was pressed.&lt;br /&gt;
}}&lt;br /&gt;
{{Example&lt;br /&gt;
|desc=Prints out the character that was pressed.&lt;br /&gt;
|code=&lt;br /&gt;
 while true do&lt;br /&gt;
   event, character = os.pullEvent(&amp;quot;char&amp;quot;)&lt;br /&gt;
   print(character..&amp;quot; was pressed.&amp;quot;)&lt;br /&gt;
 end&lt;br /&gt;
|output=The key that was pressed. Note this doesn't trigger for Tab, Shift, the up arrow, etc. Use the [[key_(event)|key]] event if you wish to trap those keys.&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>Keeree</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Key_(event)&amp;diff=4903</id>
		<title>Key (event)</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Key_(event)&amp;diff=4903"/>
				<updated>2013-01-08T01:05:27Z</updated>
		
		<summary type="html">&lt;p&gt;Keeree: Codefix.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{NeedsWork|A demonstration on the use and handling of this event would be beneficial. ''[[User:AfterLifeLochie|AfterLifeLochie]] 16:10, 30 November 2012 (MSK)''}}&lt;br /&gt;
&lt;br /&gt;
{{Event&lt;br /&gt;
|name=key&lt;br /&gt;
|desc=Fired when any key is pressed while the terminal is focused.&lt;br /&gt;
|return1=The numerical key value of the key pressed.&lt;br /&gt;
}}&lt;br /&gt;
{{Example&lt;br /&gt;
|desc=Print each key pressed on the keyboard whenever a ''key'' event is fired. Use Ctrl+T (Windows)&amp;lt;!--- or ???+T (Mac)---&amp;gt; to terminate the loop.&lt;br /&gt;
|code=&lt;br /&gt;
 while true do&lt;br /&gt;
   event, scancode = os.pullEvent(&amp;quot;key&amp;quot;)&lt;br /&gt;
   print(tostring(scancode)..&amp;quot; was pressed.&amp;quot;)&lt;br /&gt;
 end&lt;br /&gt;
|output=Any key that is pressed.&lt;br /&gt;
}}&lt;br /&gt;
==Key scan codes ==&lt;br /&gt;
[[File:CC-Keyboard-Charcodes.png|center|frame|250x250px|Click for a larger copy of this image - contains keys and their event numbers.]]&lt;/div&gt;</summary>
		<author><name>Keeree</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Key_(event)&amp;diff=4902</id>
		<title>Key (event)</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Key_(event)&amp;diff=4902"/>
				<updated>2013-01-08T00:42:34Z</updated>
		
		<summary type="html">&lt;p&gt;Keeree: Added example code, and copied key scan codes from Raw_key_events&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{NeedsWork|A demonstration on the use and handling of this event would be beneficial. ''[[User:AfterLifeLochie|AfterLifeLochie]] 16:10, 30 November 2012 (MSK)''}}&lt;br /&gt;
&lt;br /&gt;
{{Event&lt;br /&gt;
|name=key&lt;br /&gt;
|desc=Fired when any key is pressed while the terminal is focused.&lt;br /&gt;
|return1=The numerical key value of the key pressed.&lt;br /&gt;
}}&lt;br /&gt;
{{Example&lt;br /&gt;
|desc=Print each key pressed on the keyboard whenever a ''key'' event is fired. Use Ctrl+T (Windows)&amp;lt;!--- or ???+T (Mac)---&amp;gt; to terminate the loop.&lt;br /&gt;
|code=&lt;br /&gt;
 while true do&lt;br /&gt;
   event, scancode = os.pullEvent()&lt;br /&gt;
   print(tostring(scancode)..&amp;quot; was pressed.&amp;quot;)&lt;br /&gt;
 end&lt;br /&gt;
|output=Any key that is pressed.&lt;br /&gt;
}}&lt;br /&gt;
==Key scan codes ==&lt;br /&gt;
[[File:CC-Keyboard-Charcodes.png|center|frame|250x250px|Click for a larger copy of this image - contains keys and their event numbers.]]&lt;/div&gt;</summary>
		<author><name>Keeree</name></author>	</entry>

	</feed>