Textutils API
Jump to navigation
Jump to search
|
|||||||||||
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 | ||||||||||
| |||||||||||
|
|
|||||||||
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 | ||||||||
| |||||||||
|
|
|||||||||||
Converts a serialised string to a reassembled Lua value - the opposite of textutils.serialise. Returns nil if the unserialisation failed. | |||||||||||
Syntax | textutils.unserialise(
|
||||||||||
Returns | any | ||||||||||
Part of | CC:Tweaked (source) | ||||||||||
API | textutils | ||||||||||
|