diff options
-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 |