lib/tty/cursor.rb in tty-cursor-0.5.0 vs lib/tty/cursor.rb in tty-cursor-0.6.0

- old
+ new

@@ -1,8 +1,9 @@ -# encoding: utf-8 # frozen_string_literal: true +require_relative 'cursor/version' + module TTY # Terminal cursor movement ANSI codes module Cursor module_function @@ -145,17 +146,17 @@ # Erase from the beginning of the line up to and including # the current cursor position. # @api public def clear_line_before - CSI + '0K' + CSI + '1K' end # Erase from the current position (inclusive) to # the end of the line # @api public def clear_line_after - CSI + '1K' + CSI + '0K' end # Clear a number of lines # # @param [Integer] n