Skip to content

Commit

Permalink
[Console] Fixed console to work with changes to core.get_torrents_list
Browse files Browse the repository at this point in the history
  • Loading branch information
bendikro committed Apr 12, 2016
1 parent 0603719 commit 889b2bb
Show file tree
Hide file tree
Showing 4 changed files with 218 additions and 293 deletions.
4 changes: 4 additions & 0 deletions deluge/ui/console/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,10 @@ def __init__(self, args=None, cmds=None, daemon=None):

self.coreconfig = CoreConfig()
if self.interactive and not deluge.common.windows_check():
# Set Esc key delay to 0 to avoid a very annoying delay
# due to curses waiting in case of other key are pressed
# after ESC is pressed
os.environ.setdefault('ESCDELAY', '0')
# We use the curses.wrapper function to prevent the console from getting
# messed up if an uncaught exception is experienced.
import curses.wrapper
Expand Down
Loading

0 comments on commit 889b2bb

Please sign in to comment.