Difference between revisions of "Textutils.pagedTabulate"

From ComputerCraft Wiki
Jump to: navigation, search
(Created page with "{{lowercase}} {{Function |name=textutils.pagedTabulate |args= table table1, table table2, ... |returns=Nothing. |api=textutils |addon=Compute...")
 
m (Change formatting)
Line 2: Line 2:
 
{{Function
 
{{Function
 
|name=textutils.pagedTabulate
 
|name=textutils.pagedTabulate
|args= [[table (type)|table]] table1, [[table (type)|table]] table2, ...
+
|args= {{Type|table}} table1, {{Type|table}} table2, ...
|returns=Nothing.
+
 
|api=textutils
 
|api=textutils
 
|addon=ComputerCraft
 
|addon=ComputerCraft

Revision as of 19:08, 12 June 2014


Grid Redstone.png  Function textutils.pagedTabulate
Prints tables in an ordered form. Each table is a row, each column's width is auto-adjusted for consistency between rows. Unlike textutils.tabulate(), if scrolling is required in order to fit the whole of the output onto the display this function will throw up a "Press any key to continue" prompt at the bottom - each press will cause it to scroll down and write a single line more (before prompting again, if need be).
Syntax textutils.pagedTabulate(table table1, table table2, ...)
Returns nil
Part of ComputerCraft
API textutils

Examples

Grid paper.png  Example
Prints a lengthy table.
Code
local myTable = {}
for i=1,600 do myTable[i] = i end
textutils.pagedTabulate(myTable)
Output Prints a lengthy list of numerals, but prompts the user to "Press any key to continue" before scrolling the top of the list outside of the display.