From b44906cd07d638d163144aca8ed504916f41f508 Mon Sep 17 00:00:00 2001 From: hut Date: Sun, 14 Feb 2010 23:43:36 +0100 Subject: options: add the option to show the cursor all the time --- ranger/defaults/options.py | 2 ++ ranger/gui/ui.py | 2 +- ranger/shared/settings.py | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ranger/defaults/options.py b/ranger/defaults/options.py index 71b4cad2..1f564eb0 100644 --- a/ranger/defaults/options.py +++ b/ranger/defaults/options.py @@ -22,4 +22,6 @@ collapse_preview = True autosave_bookmarks = True update_title = True +show_cursor = False + hidden_filter = regexp(r'^\.|~$|\.(:?pyc|pyo|bak|swp)$') diff --git a/ranger/gui/ui.py b/ranger/gui/ui.py index 56acfff1..6944284f 100644 --- a/ranger/gui/ui.py +++ b/ranger/gui/ui.py @@ -51,7 +51,7 @@ class UI(DisplayableContainer): curses.cbreak() curses.noecho() curses.halfdelay(20) - curses.curs_set(0) + curses.curs_set(int(bool(self.settings.show_cursor))) curses.start_color() curses.use_default_colors() diff --git a/ranger/shared/settings.py b/ranger/shared/settings.py index d5ef3be5..4ae97e03 100644 --- a/ranger/shared/settings.py +++ b/ranger/shared/settings.py @@ -13,7 +13,7 @@ # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ALLOWED_SETTINGS = """ -show_hidden scroll_offset +show_hidden scroll_offset show_cursor directories_first sort reverse preview_files max_history_size colorscheme collapse_preview update_title -- cgit 1.4.1-2-gfad0 ref='/akkartik/mu/log/060rewrite_literal_string.cc?h=hlt'>log tree commit diff stats
path: root/060rewrite_literal_string.cc
blob: 3e64fd7c288ed1e8c4c7cad4aab472374f0b3d50 (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