From c1ee7f2b9cf847c1f27463e317af43ad5e95b775 Mon Sep 17 00:00:00 2001 From: Chris Jones Date: Tue, 17 Jun 2008 00:36:55 +0100 Subject: [PATCH] Support a setting which allows the removal of all bells (ie audible and visual). Closes LP #237758 --- terminator | 7 +++++++ terminatorlib/config.py | 1 + 2 files changed, 8 insertions(+) diff --git a/terminator b/terminator index 8582830b..a40cc020 100755 --- a/terminator +++ b/terminator @@ -520,8 +520,15 @@ text/plain # Set our audible belliness silent_bell = self.conf.silent_bell self._vte.set_audible_bell (not silent_bell) + + # Set our visual flashiness self._vte.set_visible_bell (silent_bell) + # Override our flashybelliness + if self.conf.force_no_bell: + self._vte.set_visible_bell (False) + self._vte.set_audible_bell (False) + # Set our scrolliness self._vte.set_scrollback_lines (self.conf.scrollback_lines) self._vte.set_scroll_on_keystroke (self.conf.scroll_on_keystroke) diff --git a/terminatorlib/config.py b/terminatorlib/config.py index 4821e873..bd5484e8 100755 --- a/terminatorlib/config.py +++ b/terminatorlib/config.py @@ -129,6 +129,7 @@ class TerminatorConfValuestore: 'handle_size' : -1, 'focus_on_close' : 'auto', 'f11_modifier' : False, + 'force_no_bell' : False, } def __getattr__ (self, keyname):