|
NAMEdrawer.lua —
FreeBSD menu/screen drawer module
DESCRIPTIONdrawer.lua contains functionality for drawing and
manipulating the menu, logo, and brand to the screen.
Before using the functionality provided by
local drawer =
require("drawer") BRAND DEFINITIONSBrand definitions describe a “brand”, traditionally drawn above the menu. The exact position may be controlled by using the loader.conf(5) variables loader_brand_x and loader_brand_y. The following keys may be defined for a brand definition:
LOGO DEFINITIONSLogo definitions describe a “logo”, traditionally to the right of the menu. The exact position may be controlled by using the loader.conf(5) variables loader_logo_x and loader_logo_y. The following keys may be defined for a logo definition:
CUSTOM BRANDS AND LOGOSThe brand and logo system is designed to allow brands and logos to be easily plugged in. When an unrecognizedloader_brand or
loader_logo are encountered,
drawer.lua will attempt to include
brand-${loader_brand}.lua or
logo-${loader_logo}.lua respectively. These files are
expected to call either drawer.addBrand () or
drawer.addLogo () to add the requested branddef or
logodef. drawer.lua will attempt to do another lookup
for the requested brand or logo before falling back to one of the following:
FRAME STYLESdrawer.lua contains the definitions for the different
frame styles that may be drawn around the menu. Frame styles define the
characters drawn for horizontal lines, vertical aligns, and each of the four
corner styles. The following keys may be defined for a frame style:
drawer.frame_styles indexed by the name used for
loader_menu_frame . No API currently exists for
manipulating this table indirectly.
Exported functionsThe following functions are exported fromdrawer.lua :
SEE ALSOmenu.lua(8)AUTHORSThedrawer.lua file was originally written by
Pedro Souza
<pedrosouza@FreeBSD.org>.
Later work and this manual page was done by
Kyle Evans <kevans@FreeBSD.org>.
Visit the GSP FreeBSD Man Page Interface. |