Sha256: e77dcb70b6183991d1397a8d0547b87fb33db9a6b4a71413de7f08c8de814874
Contents?: true
Size: 691 Bytes
Versions: 4
Compression:
Stored size: 691 Bytes
Contents
require 'curses' #noinspection RubyResolve module PPCurses class BaseAction def set_window(win) @win = win end def x_padding self.win_padding end def win_padding 2 end def win_width Curses.cols - win_padding end def win_height Curses.lines - win_padding end def create_window @win = Window.new( self.win_height, self.win_width, self.win_padding/2, self.win_padding/2) @win.clear @win.box('|', '-') @win.setpos(@win.cury+1, self.x_padding ) end def show if @win.nil? self.create_window end @win.refresh end end end
Version data entries
4 entries across 4 versions & 1 rubygems