Ticket #3410: consoleUIonWin.patch

File consoleUIonWin.patch, 851 bytes (added by petersasi, 5 years ago)

Replace hailing out of interactive mode of deluge-console with a debug log mssage.

  • main.py

    diff -u a/main.py b/main.py
    a b  
    125125        else:
    126126            # Interactive
    127127            if deluge.common.windows_check():
    128                 print(
    129                     """\nDeluge-console does not run in interactive mode on Windows. \n
    130 Please use commands from the command line, e.g.:\n
    131     deluge-console.exe help
    132     deluge-console.exe info
    133     deluge-console.exe "add --help"
    134     deluge-console.exe "add -p c:\\mytorrents c:\\new.torrent"
    135 """
    136                 )
    137             else:
    138 
     128                log.debug('Deluge-console experimantal build using windows-curses. Use at your own risk!')
     129               
    139130                class ConsoleLog(object):
    140131                    def write(self, data):
    141132                        pass