textutils.pagedTabulate

From ComputerCraft Wiki
Revision as of 19:08, 12 June 2014 by Apemanzilla (Talk | contribs) (Change formatting)

Jump to: navigation, search


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.