From 4c6fad16e075785ae906d178304ff81f4e080206 Mon Sep 17 00:00:00 2001 From: Akos Kiss Date: Sat, 21 Sep 2024 16:29:47 +0200 Subject: [PATCH] Update TUI to use more recent Urwid API --- src/fuzzinator/ui/tui/tui.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/fuzzinator/ui/tui/tui.py b/src/fuzzinator/ui/tui/tui.py index d9b4601..5ab5440 100644 --- a/src/fuzzinator/ui/tui/tui.py +++ b/src/fuzzinator/ui/tui/tui.py @@ -1,4 +1,4 @@ -# Copyright (c) 2016-2023 Renata Hodovan, Akos Kiss. +# Copyright (c) 2016-2024 Renata Hodovan, Akos Kiss. # # Licensed under the BSD 3-Clause License # . @@ -15,7 +15,8 @@ from multiprocessing import Lock, Process, Queue -from urwid import connect_signal, ExitMainLoop, MainLoop, raw_display, util +from urwid import connect_signal, ExitMainLoop, MainLoop, util +from urwid.display.raw import Screen from ... import Controller from .tui_listener import TuiListener @@ -33,7 +34,7 @@ def __init__(self, controller, style): self.lock = Lock() self.view = MainWindow(controller) - self.screen = raw_display.Screen() + self.screen = Screen() self.screen.set_terminal_properties(256) self.loop = MainLoop(widget=self.view,