diff options
author | hut <hut@lavabit.com> | 2010-02-14 23:43:36 +0100 |
---|---|---|
committer | hut <hut@lavabit.com> | 2010-02-14 23:43:48 +0100 |
commit | b44906cd07d638d163144aca8ed504916f41f508 (patch) | |
tree | 99f406d45751a4176afee5b8e1ef5325618e546e | |
parent | 870c30b2316b3217fe4cf706d788f75151ac6537 (diff) | |
download | ranger-b44906cd07d638d163144aca8ed504916f41f508.tar.gz |
options: add the option to show the cursor all the time
-rw-r--r-- | ranger/defaults/options.py | 2 | ||||
-rw-r--r-- | ranger/gui/ui.py | 2 | ||||
-rw-r--r-- | 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 |