Sha256: c2d721c6ad40fb3f176a52594c45d8b28679e7bcde0fd3dfccd7778c6221050b
Contents?: true
Size: 618 Bytes
Versions: 1
Compression:
Stored size: 618 Bytes
Contents
require "curses" module PPCurses class BaseAction def setWindow(win) @win = win 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, self.winPadding()) end def show() if @win.nil? self.createWindow() end @win.refresh end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ppcurses-0.0.11 | lib/ppcurses/actions/BaseAction.rb |