Textutils API
Textutils.complete
|
|||||||||||
Formats time (in ticks) in a human-readable format such as "6:30 PM". If twentyFourHour is set to true, the AM/PM prefix is omitted, and the time is presented in a 24-hour format such as "18:30". | |||||||||||
Syntax | textutils.formatTime(
|
||||||||||
Returns | string | ||||||||||
Part of | CC:Tweaked (source) | ||||||||||
API | textutils | ||||||||||
| |||||||||||
|
Textutils.pagedPrint Textutils.pagedTabulate
|
|||||||||||
Converts value to a string representing it, which may be converted back to a value of the original type using textutils.unserialise. | |||||||||||
Syntax | textutils.serialise(
|
||||||||||
Returns | string | ||||||||||
Part of | CC:Tweaked (source) | ||||||||||
API | textutils | ||||||||||
| |||||||||||
|
Textutils.serialiseJSON
|
|||||||||
Slowly prints text, character-by-character, at the current cursor position in the current term. Accepts an optional rate parameter, in characters per second (default 20). This function is similar to textutils.slowWrite, however it automatically moves to the next line after writing. | |||||||||
Syntax | textutils.slowPrint(
|
||||||||
Returns | nil | ||||||||
Part of | CC:Tweaked (source) | ||||||||
API | textutils | ||||||||
See also | textutils.slowWrite | ||||||||
| |||||||||
|
|
|||||||||
Slowly writes text, character-by-character, at the current cursor position in the current term. Accepts an optional rate parameter, in characters per second (default 20). This function does not automatically move to the next line after writing. | |||||||||
Syntax | textutils.slowWrite(
|
||||||||
Returns | nil | ||||||||
Part of | CC:Tweaked (source) | ||||||||
API | textutils | ||||||||
See also | textutils.slowPrint | ||||||||
| |||||||||
|
Textutils.tabulate
|
|||||||||||
Converts a serialised string to a reassembled Lua value - the opposite of textutils.serialise. Returns nil if the unserialisation failed.
textutils.unserialise is implemented using load (source). It is loaded with an empty environment, therefore strings passed to textutils.unserialise cannot cause any harm to the computer. However, they can cause an infinite loop and cause the computer to crash for failing to yield! |
|||||||||||
Syntax | textutils.unserialise(
|
||||||||||
Returns | any | ||||||||||
Part of | CC:Tweaked (source) | ||||||||||
API | textutils | ||||||||||
|
Textutils.urlEncode
This article is issued from Computercraft. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.