about summary refs log tree commit diff stats
path: root/code
diff options
context:
space:
mode:
Diffstat (limited to 'code')
-rw-r--r--code/action.rb1
-rw-r--r--code/cli.rb4
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