lib/whirly.rb in whirly-0.2.0 vs lib/whirly.rb in whirly-0.2.1
- old
+ new
@@ -218,17 +218,17 @@
end
def self.render_prefix
res = ""
res << "\n" if @options[:position] == "below"
- res << "\e[s" if @options[:ansi_escape_mode] == "restore"
+ res << "\e7" if @options[:ansi_escape_mode] == "restore"
res << "\e[G" if @options[:ansi_escape_mode] == "line"
res
end
def self.render_suffix
res = ""
- res << "\e[u" if @options[:ansi_escape_mode] == "restore"
+ res << "\e8" if @options[:ansi_escape_mode] == "restore"
res << "\e[1A" if @options[:position] == "below"
res
end
def self.initialize_color