Main index | Section 8 | Options |
Before using the functionality provided by screen.lua, it must be included with a statement such as the following:
local screen = require("screen")
The following variables are exported from screen.lua:
screen.default_x | The x component of the default cursor position. |
screen.default_y | The y component of the default cursor position. |
The following functions are exported from screen.lua:
screen.clear() | |
Clears the screen. screen.clear() will do nothing if a serial boot is detected. | |
screen.setcursor(x, y) | |
Sets the cursor position to x, y. screen.setcursor() will do nothing if a serial boot is detected. | |
screen.setforeground(color_value) | |
Sets the foreground color to color_value, which should be a constant defined in color.lua(8). screen.setforeground() will do nothing if color is disabled. | |
screen.setbackground(color_value) | |
Sets the background color to color_value, which should be a constant defined in color.lua(8). screen.setbackground() will do nothing if color is disabled. | |
screen.defcolor() | |
Sets the default color scheme, as defined by color.default(). screen.defcolor() will do nothing if color is disabled. | |
screen.defcursor() | |
Sets the default cursor position to that defined by screen.default_x, screen.default_y. | |
SCREEN.LUA (8) | August 19, 2018 |
Main index | Section 8 | Options |
Please direct any comments about this manual page service to Ben Bullock. Privacy policy.
“ | Today, the Unix equivalent of a power drill would have 20 dials and switches, come with a nonstandard plug, require the user to hand-wind the motor coil, and not accept 3/8" or 7/8" drill bits (though this would be documented in the BUGS section of its instruction manual). | ” |
— The Unix Haters' handbook |