From ad059bbddc072ad641c4e7d524d2cb1edbf54dce Mon Sep 17 00:00:00 2001 From: AnonymouX47 Date: Sat, 15 Apr 2023 14:55:22 +0100 Subject: [PATCH] feat: Add support for terminal synchronized output - Add: Use `term_image.widget.UrwidImageScreen`. --- src/termvisage/tui/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/termvisage/tui/__init__.py b/src/termvisage/tui/__init__.py index def6ce7..b69b8a4 100644 --- a/src/termvisage/tui/__init__.py +++ b/src/termvisage/tui/__init__.py @@ -10,6 +10,7 @@ import urwid from term_image.utils import get_terminal_name_version, lock_tty, write_tty +from term_image.widget import UrwidImageScreen from .. import logging from ..utils import CSI @@ -40,7 +41,9 @@ def init( main.RECURSIVE = args.recursive main.SHOW_HIDDEN = args.all main.ImageClass = ImageClass - main.loop = Loop(main_widget, palette, unhandled_input=process_input) + main.loop = Loop( + main_widget, palette, UrwidImageScreen(), unhandled_input=process_input + ) main.update_pipe = main.loop.watch_pipe(lambda _: None) render.ANIM_CACHED = not args.cache_no_anim and (