From 51c44a7c5a5146aff252078f23aa072a75fbca93 Mon Sep 17 00:00:00 2001 From: bendikro Date: Sun, 17 Jan 2016 18:17:35 +0100 Subject: [PATCH] [Console] Remove the delay after pressing ESC key The env variable ESCDELAY specifies the time in ms which ncurses waits for a character sequence. With a default value of 1000, it produces a 1 second delay when pressing the ESC key to close dialogs. Set this variable to 0 to get instant respons when pressing ESC. --- deluge/ui/console/main.py | 1 + deluge/ui/console/modes/alltorrents.py | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/deluge/ui/console/main.py b/deluge/ui/console/main.py index efef43e90..7284a362c 100644 --- a/deluge/ui/console/main.py +++ b/deluge/ui/console/main.py @@ -13,6 +13,7 @@ from __future__ import print_function import argparse import locale import logging +import os import shlex import sys diff --git a/deluge/ui/console/modes/alltorrents.py b/deluge/ui/console/modes/alltorrents.py index 68f4e741b..7345d31ad 100644 --- a/deluge/ui/console/modes/alltorrents.py +++ b/deluge/ui/console/modes/alltorrents.py @@ -51,7 +51,6 @@ You can scroll a popup window that doesn't fit its content (like \ this one) using the up/down arrows, PgUp/PgDown and Home/End keys. All popup windows can be closed/canceled by hitting the Esc key \ -(you might need to wait a second for an Esc to register) \ or the 'q' key (does not work for dialogs like the add torrent dialog) The actions you can perform and the keys to perform them are as follows: