mischiefinitial commit93ea4f68 years agoHistory
55 lines · 1.0 KB · Text
RawDownload
.TH THEME 2.SH NAMEthemeinit, themeend, themeget \- read colors for a graphical color theme.SH SYNOPSIS.B #include <u.h>.br.B #include <libc.h>.br.B #include <theme.h>.PP.Bvoid themeinit(char *name);.PP.Bvoid themeend(void);.PP.Bulong themeget(char *color, ulong def);.SH DESCRIPTIONThese routines handle a.IR ndb (6)formatted database of color themes..PP.I themeinitinitializes the theme database for use. The database is by default located in.BI $home/lib/theme .If that file cannot be opened,.B /lib/themeis used. The.I themeargument selects which records from the database to use..PP.I themeendcloses the database and frees all resources allocated by.IB themeinit ..PP.I themegetlooks up a color value for the name.IB color ,and returns.I defif no color exists..PPIf no color is found in the theme record named by the argument passed to.IB themeinit ,the color is looked up in the.B theme=defaultrecord..SH DIAGNOSTICS.I themegetwill always return.I defif the theme database can't be opened..SH "SEE ALSO".IR ndb (6)