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

@@ -279,6 +279,14 @@ function Screen:_handle_visual_bell()
self._visual_bell = true
end
function Screen:_handle_update_fg(fg)
self._fg = fg
end
function Screen:_handle_update_bg(bg)
self._bg = bg
end
function Screen:_handle_suspend()
self._suspended = true
end