From e9a51a4c2069a4f5261d36edace9b8fb7094dc81 Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Thu, 7 Aug 2025 04:11:17 +0200 Subject: [PATCH] Improve status title display, and /list listings. --- ircplom/client_tui.py | 4 ++-- ircplom/tui_base.py | 6 +++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/ircplom/client_tui.py b/ircplom/client_tui.py index f430b46..cccf707 100644 --- a/ircplom/client_tui.py +++ b/ircplom/client_tui.py @@ -24,8 +24,8 @@ class _ClientWindow(Window, ClientQueueMixin): super().__init__(**kwargs) @property - def status_title(self) -> str: - return f'{super().status_title}|{self.client_id}|{self.stream}' + def _title(self) -> str: + return f'{self.client_id} {self.stream}' def _send_msg(self, verb: str, params: tuple[str, ...], **kwargs) -> None: self._client_trigger('send', msg=IrcMessage(verb=verb, params=params), diff --git a/ircplom/tui_base.py b/ircplom/tui_base.py index 91fb95c..efed5c2 100644 --- a/ircplom/tui_base.py +++ b/ircplom/tui_base.py @@ -312,10 +312,14 @@ class Window(_Widget): self.prompt.set_geometry(_YX(self._term.size.y - 1, self._term.size.x)) return True + @property + def _title(self) -> str: + return ':start' + @property def status_title(self) -> str: 'Window title to display in status line.' - return str(self.idx) + return f'{self.idx}) {self._title}' def draw(self) -> bool: self._term.clear() -- 2.30.2