From a1cd4fdc2326d4b15266b708b87a6aab9ec172ed Mon Sep 17 00:00:00 2001 From: hut Date: Sun, 21 Mar 2010 04:31:41 +0100 Subject: widgets.console: allow unicode input. (if flushinput == False) --- ranger/gui/widgets/console.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ranger/gui/widgets/console.py b/ranger/gui/widgets/console.py index feb54a3d..20a75c4e 100644 --- a/ranger/gui/widgets/console.py +++ b/ranger/gui/widgets/console.py @@ -130,9 +130,13 @@ class Console(Widget): def press(self, key): from curses.ascii import ctrl, ESC + keytuple = self.env.keybuffer.tuple_with_numbers() try: - cmd = self.commandlist[self.env.keybuffer.tuple_with_numbers()] + cmd = self.commandlist[keytuple] except KeyError: + # An unclean hack to allow unicode input. + # This whole part should be replaced. + self.type_key(chr(keytuple[0])) self.env.key_clear() return -- cgit 1.4.1-2-gfad0 alue='hlt'>hlt Soul of a tiny new machine. More thorough tests → More comprehensible and rewrite-friendly software → More resilient society.Kartik K. Agaram <vc@akkartik.com>
about summary refs log tree commit diff stats
path: root/html/linux/raytracing/1.mu.html
blob: 97c5cf3948bfdb702188f753252f11122f75bbd7 (plain) (blame)
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
93