Module: Helper
- Defined in:
 - lib/terminal-file-picker/helper.rb
 
Overview
Misc. helper methods which accomplish some common tasks.
Class Method Summary collapse
Class Method Details
.highlight(text) ⇒ Object
      19 20 21  | 
    
      # File 'lib/terminal-file-picker/helper.rb', line 19 def highlight(text) Pastel.new.decorate(text, :inverse) end  | 
  
.print_in_place(text) ⇒ Object
      7 8 9 10 11 12 13 14 15 16 17  | 
    
      # File 'lib/terminal-file-picker/helper.rb', line 7 def print_in_place(text) line_count = text.count("\n") cursor = TTY::Cursor in_place = cursor.column(1) in_place << text in_place << cursor.up(line_count) in_place << cursor.column(1) print(in_place) end  |