summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/fsobject/loader.py6
-rw-r--r--ranger/gui/ui.py8
2 files changed, 7 insertions, 7 deletions
diff --git a/ranger/fsobject/loader.py b/ranger/fsobject/loader.py
index ef91aae3..00992651 100644
--- a/ranger/fsobject/loader.py
+++ b/ranger/fsobject/loader.py
@@ -11,10 +11,10 @@ def status_generator():
 		yield '|'
 
 def delayfunc(n):
-	if n < 4:
+#	if n < 4:
 		return 0.05
-	else:
-		return 0.3
+#	else:
+#		return 0.15
 #		return math.log(n-2) * 0.2
 
 class Loader(object):
diff --git a/ranger/gui/ui.py b/ranger/gui/ui.py
index cdb58ad5..8134231e 100644
--- a/ranger/gui/ui.py
+++ b/ranger/gui/ui.py
@@ -67,16 +67,16 @@ class UI(DisplayableContainer):
 		curses.endwin()
 
 	def set_load_mode(self, boolean):
-		from ranger import log
 		boolean = bool(boolean)
 		if boolean != self.load_mode:
 			self.load_mode = boolean
 
 			if boolean:
-				log('setting halfdelay to 1')
-				curses.halfdelay(1)
+				# don't wait for key presses in the load mode
+				curses.cbreak()
+				self.win.nodelay(1)
 			else:
-				log('setting halfdelay to 20')
+				self.win.nodelay(0)
 				curses.halfdelay(20)
 
 	def destroy(self):
^
1295513f ^
94c5d83e ^
e9e4b4ff ^







94c5d83e ^







76f8d548 ^



94c5d83e ^


423ce88a ^

94c5d83e ^








e9e4b4ff ^

50a0cb1c ^
e9e4b4ff ^

90416a69 ^
e9e4b4ff ^
fde932f2 ^
75682d43 ^
e9e4b4ff ^

2c5ea01d ^
e9e4b4ff ^




e9e4b4ff ^

2c5ea01d ^
e9e4b4ff ^
0c2c782d ^

30ae2137 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92