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