Sha256: 69477556c2bb4ba6f5a6f3c3193723de29214b90ba358af55929634e07c55aee
Contents?: true
Size: 671 Bytes
Versions: 9
Compression:
Stored size: 671 Bytes
Contents
require "curses" module PPCurses class BaseAction def setWindow(win) @win = win end def xPadding() return self.winPadding() end def winPadding() return 2 end def winWidth() Curses.cols - winPadding() end def winHeight() Curses.lines - winPadding() end def createWindow() @win = Window.new( winHeight(), winWidth(), winPadding()/2, winPadding()/2) @win.clear @win.box("|", "-") @win.setpos(@win.cury()+1, xPadding() ) end def show() if @win.nil? self.createWindow() end @win.refresh end end end
Version data entries
9 entries across 9 versions & 1 rubygems