Sha256: 7e2aaf6a2aa357ffe57385e28b5af36c5314800e9daa09af84843ace16558423
Contents?: true
Size: 349 Bytes
Versions: 4
Compression:
Stored size: 349 Bytes
Contents
require 'ppcurses/actions/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
4 entries across 4 versions & 1 rubygems