Method: RubyCurses::TextView#getstr
- Defined in:
- lib/rbcurse/core/widgets/rtextview.rb
#getstr(prompt, maxlen = 80) ⇒ Object
this is just a test of prompting user for a string + as an alternative to the dialog.
616 617 618 619 620 621 622 623 624 625 626 |
# File 'lib/rbcurse/core/widgets/rtextview.rb', line 616 def getstr prompt, maxlen=80 #:nodoc: tabc = Proc.new {|str| Dir.glob(str +"*") } config={}; config[:tab_completion] = tabc config[:default] = "test" config[:display_length] = 11 $log.debug " inside getstr before call " ret, str = rbgetstr(@form.window, @row+@height-1, @col+1, prompt, maxlen, config) $log.debug " rbgetstr returned #{ret} ,#{str}." return "" if ret != 0 return str end |