ui: Add update_fg/update_bg methods

It is necessary to notify the UI when the default background/foreground colors
change in order to render correctly.
This commit is contained in:
Thiago de Arruda
2014-12-12 16:25:11 -03:00
parent 1ccbd94bee
commit fc8f768690
5 changed files with 43 additions and 0 deletions

View File

@@ -32,6 +32,8 @@ struct ui_t {
void (*bell)(UI *ui);
void (*visual_bell)(UI *ui);
void (*flush)(UI *ui);
void (*update_fg)(UI *ui, int fg);
void (*update_bg)(UI *ui, int bg);
void (*suspend)(UI *ui);
};