From 75cab75d5acba991264b0623217966a80898eb5a Mon Sep 17 00:00:00 2001 From: Martin Hertz Date: Fri, 16 Aug 2024 14:21:03 +0200 Subject: [PATCH] [Console] Block interactive-mode on Windows even with curses --- deluge/ui/console/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/deluge/ui/console/main.py b/deluge/ui/console/main.py index 106169f0ea..667b0c9243 100644 --- a/deluge/ui/console/main.py +++ b/deluge/ui/console/main.py @@ -138,7 +138,7 @@ def start_ui(self): except ImportError: wrapper = None - if deluge.common.windows_check() and not wrapper: + if deluge.common.windows_check(): print( """\nDeluge-console does not run in interactive mode on Windows. \n Please use commands from the command line, e.g.:\n @@ -148,6 +148,7 @@ def start_ui(self): deluge-console.exe "add -p c:\\mytorrents c:\\new.torrent" """ ) + return # We don't ever want log output to terminal when running in # interactive mode, so insert a dummy here