From 5255d61f619ac7a5df6669eaca184136cc012a9a Mon Sep 17 00:00:00 2001 From: Randall Winkhart Date: Sat, 8 Jul 2023 19:58:14 -0400 Subject: [PATCH] Fixed missing clipboard tool error message Former-commit-id: 0f44766f316be7c27ba2a9a6cb94ac9bbb86c0ab Former-commit-id: 4811948d213abb5f5170841022f5b026242ac80b --- lib/stweak.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/stweak.py b/lib/stweak.py index f51ea24..ab46155 100644 --- a/lib/stweak.py +++ b/lib/stweak.py @@ -549,7 +549,7 @@ def initial_setup(_scr): # device id configuration dev_id_config(_ip, _username_ssh, _port) - # PORT START CLIPTOOL TODO fix printing with new curses wrapper + # PORT START CLIPTOOL # check for clipboard tool and display warning if missing if uname()[0] in ('Linux', 'FreeBSD') and 'WSL_DISTRO_NAME' not in environ \ and not exists("/data/data/com.termux"): @@ -559,9 +559,9 @@ def initial_setup(_scr): elif 'DISPLAY' in environ: _display_server, _clipboard_tool, _clipboard_package = 'X11', 'xclip', 'xclip' if _display_server is not None and which(_clipboard_tool) is None: - print(f'\n\u001b[38;5;9mwarning: you are using {_display_server} and "{_clipboard_tool}" is not ' - f'present - \ncopying entry fields will not function until ' - f'"{_clipboard_package}" is installed\u001b[0m') + curses_radio(['okay'], f'WARNING: you are using {_display_server} and "{_clipboard_tool}" is not ' + 'present - \ncopying entry fields will not function until ' + f'"{_clipboard_package}" is installed') # PORT END CLIPTOOL # run optional configuration menu