Skip to content

Commit

Permalink
Update TUI to use more recent Urwid API
Browse files Browse the repository at this point in the history
  • Loading branch information
akosthekiss authored and renatahodovan committed Sep 23, 2024
1 parent d7ff5d3 commit 4c6fad1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/fuzzinator/ui/tui/tui.py
Original file line number Diff line number Diff line change
@@ -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
# <LICENSE.rst or https://opensource.org/licenses/BSD-3-Clause>.
Expand All @@ -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
Expand All @@ -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,
Expand Down

0 comments on commit 4c6fad1

Please sign in to comment.