"blue", "lightgray", /* label fg, bg */
"red", "lightgray", /* listbox fg, bg */
"lightgray", "red", /* active listbox fg, bg */
+ "red", "lightgray", /* textbox fg, bg */
+ "lightgray", "red", /* active textbox fg, bg */
};
static struct keymap keymap[] = {
SLtt_set_color(COLORSET_LISTBOX, "", colors.listboxFg, colors.listboxBg);
SLtt_set_color(COLORSET_ACTLISTBOX, "", colors.actListboxFg,
colors.actListboxBg);
+ SLtt_set_color(COLORSET_TEXTBOX, "", colors.textboxFg, colors.textboxBg);
+ SLtt_set_color(COLORSET_ACTTEXTBOX, "", colors.actTextboxFg,
+ colors.actTextboxBg);
}
int newtGetKey(void) {
char * labelFg, * labelBg;
char * listboxFg, * listboxBg;
char * actListboxFg, * actListboxBg;
+ char * textboxFg, * textboxBg;
+ char * actTextboxFg, * actTextboxBg;
};
extern struct newtColors newtDefaultColorPalette;
newtComponent newtListbox(int left, int top, int height, int flags);
void newtListboxAddEntry(newtComponent co, char * text);
+#define NEWT_TEXTBOX_WRAP (1 << 0)
+#define NEWT_TEXTBOX_SCROLL (1 << 1)
+
+newtComponent newtTextbox(int left, int top, int with, int height, int flags);
+void newtTextboxSetText(newtComponent co, const char * text);
+
newtComponent newtForm(newtComponent vertBar);
void newtFormAddComponent(newtComponent form, newtComponent co);
void newtFormAddComponents(newtComponent form, ...);