diff options
author | hut <hut@lavabit.com> | 2009-12-23 01:19:06 +0100 |
---|---|---|
committer | hut <hut@lavabit.com> | 2009-12-23 01:19:06 +0100 |
commit | 633387ba693e1d73c95acb7857270233f6ef7f37 (patch) | |
tree | d90847de3fd15b2739e072727b3e4b539e4e0f34 /ranger | |
parent | 0115ab105d160c6923f7a3449dbd9345d0fe4a65 (diff) | |
download | ranger-633387ba693e1d73c95acb7857270233f6ef7f37.tar.gz |
added primitive "throbber"
Diffstat (limited to 'ranger')
-rw-r--r-- | ranger/fm.py | 2 | ||||
-rw-r--r-- | ranger/gui/defaultui.py | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/ranger/fm.py b/ranger/fm.py index a8db3b93..186694e5 100644 --- a/ranger/fm.py +++ b/ranger/fm.py @@ -63,6 +63,8 @@ class FM(Actions): try: self.bookmarks.update_if_outdated() self.ui.redraw() + if self.loader.has_work() and hasattr(self.ui, 'throbber'): + self.ui.throbber(self.loader.status) self.ui.set_load_mode(self.loader.has_work()) self.loader.work() diff --git a/ranger/gui/defaultui.py b/ranger/gui/defaultui.py index a031f93c..f75c3915 100644 --- a/ranger/gui/defaultui.py +++ b/ranger/gui/defaultui.py @@ -62,3 +62,6 @@ class DefaultUI(UI): def scroll(self, relative): if self.main_filelist: self.main_filelist.scroll(relative) + + def throbber(self, string): + self.win.addnstr(0, self.env.termsize[1]-1, string, 1) |