textutils.tabulate
From ComputerCraft Wiki
![]() | |
Prints tables in an ordered form. Each table is a row, the column width is auto-adjusted. If it encounters a number instead of a table then sets the text color to it. If the data to print exceeds that which can fit on the display, unlike textutils.pagedTabulate(), this does not wait before scrolling excess text out the top. | |
Syntax | textutils.tabulate(table table/number color, table table2/number color2, ...) |
Returns | nil |
Part of | ComputerCraft |
API | textutils |
Examples
![]() | |
Prints two tables in an ordered form. | |
Code |
textutils.tabulate( colors.orange, {1,2,3}, colors.lightBlue, {"A","B","C"} ) |
Output | Prints:
1.0 2.0 3.0 A B C |