diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/supportlib.lua | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/supportlib.lua b/lib/supportlib.lua index a8e2f93..7c7905c 100644 --- a/lib/supportlib.lua +++ b/lib/supportlib.lua @@ -209,3 +209,19 @@ end function trim(str) return ltrim(rtrim(str)) end + + +-- +-- Displays a table on screen. +-- + +function dtable(x, y) + local b = Buffer() + if y then + dumpvars(b, x, y) + else + dumpvars(b, x) + end + display(b) + b:close() +end |