def get_file prompt, config={}  #:nodoc:
      maxlen = 70
      tabc = Proc.new {|str| Dir.glob(str +"*") }
      config[:tab_completion] ||= tabc
      config[:maxlen] ||= maxlen
      #config[:default] = "test"
      #ret, str = rb_getstr(nil,0,0, prompt, maxlen, config)
      # 2014-04-25 - 12:42 removed call to deprecated method
      str = rb_gets(prompt, config)
      #$log.debug " get_file returned #{ret} , #{str} "
      str ||= ""
      return str
    end
def get_file prompt, config={}  #:nodoc:
      maxlen = 70
      tabc = Proc.new {|str| Dir.glob(str +"*") }
      config[:tab_completion] ||= tabc
      config[:maxlen] ||= maxlen
      #config[:default] = "test"
      #ret, str = rb_getstr(nil,0,0, prompt, maxlen, config)
      # 2014-04-25 - 12:42 removed call to deprecated method
      str = rb_gets(prompt, config)
      #$log.debug " get_file returned #{ret} , #{str} "
      str ||= ""
      return str
    end
This is just experimental, trying out tab_completion
 Prompt user for a file name, allowing him to tab to complete filenames
 @see #choose_file from rcommandwindow.rb
 @param [String] label to print before field
 @param [Integer] max length of field
 @return [String] filename or blank if user cancelled