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 209b5ed6ba
commit 4f5f246a95
5 changed files with 43 additions and 0 deletions

View File

@@ -278,6 +278,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