Class: GitSpelunk::UI::Window

Inherits:
Object
  • Object
show all
Defined in:
lib/git_spelunk/ui/window.rb

Direct Known Subclasses

PagerWindow, RepoWindow, StatusWindow

Instance Method Summary collapse

Instance Method Details

#line_remainderObject



13
14
15
# File 'lib/git_spelunk/ui/window.rb', line 13

def line_remainder
  Curses.cols - @window.curx - 1
end

#with_highlightingObject



6
7
8
9
10
11
# File 'lib/git_spelunk/ui/window.rb', line 6

def with_highlighting
  @window.attron(Curses::A_STANDOUT)
  yield
ensure
  @window.attroff(Curses::A_STANDOUT)
end