Class: TTY::Prompt

Inherits:
Object
  • Object
show all
Defined in:
lib/monkey_patches/tty/prompt.rb

Overview

Instance Method Summary collapse

Instance Method Details

#clear!Object

:nocov:



9
10
11
12
# File 'lib/monkey_patches/tty/prompt.rb', line 9

def clear!
  # 2 is for the prompt message
  print(TTY::Cursor.clear_lines(GitPrompt::SELECT_OPTIONS_PER_PAGE + 2, :up))
end