Sha256: 777500ac018d409458aa2f696bef6e52150e8a077e47957a6c576ac7852872fa
Contents?: true
Size: 566 Bytes
Versions: 1
Compression:
Stored size: 566 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("|", "-") 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.10 | lib/ppcurses/actions/BaseAction.rb |