summaryrefslogtreecommitdiff
path: root/tui.rb
diff options
context:
space:
mode:
authorNoah Loomans <noahloomans@gmail.com>2018-04-22 17:06:40 +0200
committerNoah Loomans <noahloomans@gmail.com>2018-04-22 17:06:40 +0200
commit104f73d835c2565dfab12b2909bd2ab68c265027 (patch)
treeb4e6aebdb2d0d67e42e600f887c6678132999624 /tui.rb
parente5b08e0edb4c1c30c368c338a9148b846b087f5f (diff)
Reset line before printing lines with dynamic length
Diffstat (limited to 'tui.rb')
-rw-r--r--tui.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/tui.rb b/tui.rb
index edc34d0..8fa0a53 100644
--- a/tui.rb
+++ b/tui.rb
@@ -9,6 +9,10 @@ module TUI
print "\e[0;0H"
end
+ def self.reset_line()
+ print "\e[2K"
+ end
+
def self.restore()
print "\e[?1049l"
end