diff options
Diffstat (limited to 'ranger/gui/displayable.py')
-rw-r--r-- | ranger/gui/displayable.py | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/ranger/gui/displayable.py b/ranger/gui/displayable.py index f54a3fc7..a9c297b5 100644 --- a/ranger/gui/displayable.py +++ b/ranger/gui/displayable.py @@ -56,12 +56,20 @@ class Displayable(EnvironmentAware, FileManagerAware, SettingsAware): def color(self, keylist = None, *keys): """Change the colors from now on.""" keys = combine(keylist, keys) - self.win.attrset(self.colorscheme.get_attr(*keys)) + attr = self.colorscheme.get_attr(*keys) + try: + self.win.attrset(attr) + except: + pass def color_at(self, y, x, wid, keylist = None, *keys): """Change the colors at the specified position""" keys = combine(keylist, keys) - self.win.chgat(y, x, wid, self.colorscheme.get_attr(*keys)) + attr = self.colorscheme.get_attr(*keys) + try: + self.win.chgat(y, x, wid, attr) + except: + pass def color_reset(self): """Change the colors to the default colors""" |