module GitCrecord::UI::HelpWindow
Constants
- CONTENT
Public Class Methods
height()
click to toggle source
# File lib/git_crecord/ui/help_window.rb, line 42 def self.height CONTENT.lines.size + 2 end
show()
click to toggle source
# File lib/git_crecord/ui/help_window.rb, line 27 def self.show win = Curses::Window.new(height, width, 0, 0) win.box('|', '-') CONTENT.split("\n").each_with_index do |line, index| win.setpos(index + 1, 1) win.addstr(line) end win.getch win.close end
width()
click to toggle source
# File lib/git_crecord/ui/help_window.rb, line 38 def self.width CONTENT.lines.map(&:size).max + 3 end