diff options
author | hut <hut@lavabit.com> | 2009-07-18 16:16:28 +0200 |
---|---|---|
committer | hut <hut@lavabit.com> | 2009-07-18 16:16:28 +0200 |
commit | 84b68936fee43570696823c554297c27022f9497 (patch) | |
tree | 29030fed189f3941dba61d14e3cc76e20fb06ab9 /code | |
parent | 2f6881673551c27825355f90914381cfa79dafe0 (diff) | |
download | ranger-84b68936fee43570696823c554297c27022f9497.tar.gz |
clear keybuffer after Action.run()
Diffstat (limited to 'code')
-rw-r--r-- | code/action.rb | 1 | ||||
-rw-r--r-- | code/cli.rb | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/code/action.rb b/code/action.rb index 6e753296..a3986bda 100644 --- a/code/action.rb +++ b/code/action.rb @@ -65,6 +65,7 @@ module Action system(*what) wait_for_enter if rc.wait start_interface unless rc.console + CLI.clear_keybuffer end def wait_for_enter diff --git a/code/cli.rb b/code/cli.rb index c5ad48a1..60f74e75 100644 --- a/code/cli.rb +++ b/code/cli.rb @@ -47,6 +47,10 @@ module CLI @@mev end + def clear_keybuffer + Ncurses.flushinp + end + def self.included(this) @@window = Ncurses.initscr starti |