Add --no-flash option to rtv, fixes #478

This commit is contained in:
Donovan Glover
2018-01-28 16:58:03 -05:00
parent 3aa42845c3
commit f8ec571c3b
5 changed files with 26 additions and 7 deletions

View File

@@ -118,12 +118,14 @@ class Terminal(object):
self._display = display
return self._display
@staticmethod
def flash():
def flash(self):
"""
Flash the screen to indicate that an action was invalid.
"""
return curses.flash()
if self.config['flash']:
return curses.flash()
else:
return None
@staticmethod
def curs_set(val):