about summary refs log tree commit diff stats
path: root/code
diff options
context:
space:
mode:
Diffstat (limited to 'code')
-rw-r--r--code/fm.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/code/fm.rb b/code/fm.rb
index 6db5a85e..cb7dacb6 100644
--- a/code/fm.rb
+++ b/code/fm.rb
@@ -113,6 +113,14 @@ module Fm
 		CLI::lines - @bars.size
 	end
 
+	def externally(&block)
+		return unless block_given?
+
+		closei
+		yield
+		starti
+	end
+
 	def dump
 		if defined? @dump_config_on_exit
 			begin