Difference between revisions of "Textutils.slowWrite"

From ComputerCraft Wiki
Jump to: navigation, search
(Updated/Improved)
m (Updated/Improved)
 
Line 10: Line 10:
 
{{Example
 
{{Example
 
|desc=Writes "Hello World!" to the screen, 15 characters per second.
 
|desc=Writes "Hello World!" to the screen, 15 characters per second.
|code=textutils.slowWrite("Hello, World!", 15)
+
|code='''textutils.slowWrite("Hello, World!", 15)'''
 
}}
 
}}
 
}}
 
}}
  
 
[[Category:API_Functions]]
 
[[Category:API_Functions]]

Latest revision as of 20:44, 16 February 2015


Grid Redstone.png  Function textutils.slowWrite
Writes string text at current cursor position, character-by-character. Number argument rate is optional and is defaulted to 20. The higher the value of rate, the faster text is written (passing a value of 1 writes one character per second).
Syntax textutils.slowWrite(string text, number rate)
Returns nil
Part of ComputerCraft
API textutils

Examples

Grid paper.png  Example
Writes "Hello World!" to the screen, 15 characters per second.
Code
textutils.slowWrite("Hello, World!", 15)