Sha256: 5d628baf5acf665cf8bba1268e37315c614a226647f1c45e9e4d1dd375c54be2

Contents?: true

Size: 363 Bytes

Versions: 11

Compression:

Stored size: 363 Bytes

Contents

# frozen_string_literal: true

require_relative '../../git_prompt.rb'

module TTY
  # original - https://github.com/piotrmurach/tty-prompt/blob/master/lib/tty/prompt.rb
  class Prompt
    # :nocov:
    def clear!
      # 2 is for the prompt message
      print(TTY::Cursor.clear_lines(GitPrompt::SELECT_OPTIONS_PER_PAGE + 2, :up))
    end
    # :nocov:
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
gnav-0.6.4 lib/monkey_patches/tty/prompt.rb
gnav-0.6.3 lib/monkey_patches/tty/prompt.rb
gnav-0.6.2 lib/monkey_patches/tty/prompt.rb
gnav-0.6.1 lib/monkey_patches/tty/prompt.rb
gnav-0.6.0 lib/monkey_patches/tty/prompt.rb
gnav-0.5.2 lib/monkey_patches/tty/prompt.rb
gnav-0.5.0 lib/monkey_patches/tty/prompt.rb
gnav-0.4.0 lib/monkey_patches/tty/prompt.rb
gnav-0.3.2 lib/monkey_patches/tty/prompt.rb
gnav-0.3.1 lib/monkey_patches/tty/prompt.rb
gnav-0.3.0 lib/monkey_patches/tty/prompt.rb