From 6bdc8941cb3fd555be83b6b172789835a99ea7cf Mon Sep 17 00:00:00 2001 From: pdxlocations <117498748+pdxlocations@users.noreply.github.com> Date: Tue, 19 Nov 2024 19:45:58 -0800 Subject: [PATCH] persist the log when opening and closing --- curses-client.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/curses-client.py b/curses-client.py index e77a2d4..700ee19 100644 --- a/curses-client.py +++ b/curses-client.py @@ -514,9 +514,12 @@ def main(stdscr): # Display packet log if display_log is False: display_log = True - packetlog_win.addstr(1, 1, "Packet Log") - packetlog_win.box() - packetlog_win.refresh() + if not packet_buffer: + packetlog_win.addstr(1, 1, "Packet Log") + packetlog_win.box() + packetlog_win.refresh() + else: + update_messages_window() else: display_log = False packetlog_win.clear()