X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Ftui.c;fp=src%2Ftui.c;h=3ad62eb282dba4379625d1c254a9f77e90dc5f3e;hb=8b4d2adf48213f2bf74ca1a423b1ac3dc8066f95;hp=7f20e9480de46054c7287328095c242af39c23b8;hpb=6120587cce15206faa7a38207961a89110de3bcd;p=oftp diff --git a/src/tui.c b/src/tui.c index 7f20e94..3ad62eb 100644 --- a/src/tui.c +++ b/src/tui.c @@ -79,6 +79,11 @@ struct tui_widget *tui_parent(struct tui_widget *w) return w->par; } +void tui_invalidate(struct tui_widget *w) +{ + w->dirty = 1; +} + int tui_isdirty(struct tui_widget *w) { return w->dirty; @@ -206,9 +211,6 @@ void tui_status(int type, const char *fmt, ...) void tui_vstatus(int type, const char *fmt, va_list ap) { /* TODO */ - tg_color(15); - tg_bgcolor(0); - tg_vtext(0, 25, fmt, ap); } void tui_msgbox(int type, const char *title, const char *msg, ...) @@ -222,7 +224,4 @@ void tui_msgbox(int type, const char *title, const char *msg, ...) void tui_vmsgbox(int type, const char *title, const char *msg, va_list ap) { /* TODO */ - tg_color(15); - tg_bgcolor(0); - tg_vtext(0, 25, msg, ap); }