Lua primitives: screen_width()
This function will return the integer count of the number of columns the console within which lumail is running.
-- show the width msg( "The screen is " .. screen_width() .. " characters wide." );
This function has been available since version 0.07.
See also screen_height.