home · contact · privacy
Don't hardcode default prefix into alert prefix. master
authorChristian Heller <c.heller@plomlompom.de>
Sun, 10 Aug 2025 15:48:12 +0000 (17:48 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Sun, 10 Aug 2025 15:48:12 +0000 (17:48 +0200)
ircplom/tui_base.py

index b40500ee647e2587434f7143695ed8abb347dcd9..f5d71eabde8a61d2d259da4a502b78c59e08aa40 100644 (file)
@@ -14,7 +14,7 @@ from blessed import Terminal as BlessedTerminal
 from ircplom.events import AffectiveEvent, Loop, QueueMixin, QuitEvent
 
 _LOG_PREFIX_DEFAULT = '# '
-_LOG_PREFIX_ALERT = f'{_LOG_PREFIX_DEFAULT}ALERT: '
+_LOG_PREFIX_ALERT = f'ALERT: '
 
 _MIN_HEIGHT = 4
 _MIN_WIDTH = 32
@@ -393,6 +393,8 @@ class BaseTui(QueueMixin):
         new_idx = len(self._windows)
         win = win_class(idx=new_idx, term=self._term, **kwargs)
         self._windows += [win]
+        # FIXME below code responsible for log messages to streams without
+        # window auto-switching into that newly created, which can be annoying
         if new_idx != self._window_idx:
             self._switch_window(new_idx)
         return win