Sha256: 94e89a610c457873bcf88d9e6c15858f0439d6cf859eef8e8631724a759222bc
Contents?: true
Size: 341 Bytes
Versions: 1
Compression:
Stored size: 341 Bytes
Contents
require_relative 'PromptAction.rb' module PPCurses class GetIntegerAction < PromptAction def execute() y = @win.cury() begin @win.setpos(y,xPadding()) @win.clrtoeol() @win.addstr(@prompt) echo @data = @win.getstr() noecho end while not @data =~ /^\d+$/ end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ppcurses-0.0.16 | lib/ppcurses/actions/GetIntegerAction.rb |