Main index | Section 8 | Options |
Before using the functionality provided by drawer.lua, it must be included with a statement such as the following:
local drawer = require("drawer")
graphic | |
A table of strings containing rows of text to be drawn to the screen. | |
requires_color | |
A boolean describing whether or not this logo definition requires color. If it is chosen to be drawn and it requires color on a color-disabled boot, drawer.lua will elect to use the default "orbbw" logo rather than the chosen logo. | |
graphic | A table of strings containing rows of text to be drawn to the screen. |
shift | A table describing the x and y shift that should be applied to all elements should this logo be selected. This is typically used for shifting the menu and brand if an empty or minimal logo are selected. |
drawer.default_brand | The default brand to be used if the requested brand cannot be located. |
drawer.default_color_logodef | |
The default logodef to be used if an invalid logodef is requested and loader(8) has been configured to allow output of color. | |
drawer.default_bw_logodef | The default logodef to be used if either an invalid logodef has been requested, or a logodef has been requested that requires color and loader(8) has been configured to not output color. |
drawer.addBrand(name, def) | |
Add the brand definition described by def to the table of known brand definitions, indexed by name. | |
drawer.addLogo(name, def) | |
Add the logo definition described by def to the table of known logo definitions, indexed by name. | |
drawer.drawscreen(menudef) | |
Draws the logo, brand, menu frame, and the current menu as described in menudef, formatted as defined by menu.lua(8). | |
DRAWER.LUA (8) | August 19, 2018 |
Main index | Section 8 | Options |
Please direct any comments about this manual page service to Ben Bullock. Privacy policy.
“ | UNIX has been evolving feverishly for close to 30 years, sort of like bacteria in a cesspool — only not as attractive | ” |
— John Levine, "Unix for Dummies" |