rubytui.rb

Path: lib/rubytui.rb
Last Update: Wed Jan 02 16:47:10 -0800 2013
RubyTUI dot/f_0.png

Copyright (c) 2005, Free Geek.

This is free software. You may use, modify, and/or redistribute this software under the terms of the GNU General Public License, version 2 or later. (See www.gnu.org/copyleft/gpl.html)

Synopsis

   RubyTUI is a set of functions that are useful for dealing with
   the command line interface.

Authors

   * Michael Granger <ged@FaerieMUD.org>
   * Martin Chase <stillflame@freegeek.org>

Required files

timeout  

Methods

readline  

Public Instance methods

 do some setup so we can be usably interactive.

begin NOTE: readline breaks support for escaping character codes require ‘readline’ include Readline rescue LoadError puts "faking readline.."

[Source]

    # File lib/rubytui.rb, line 27
27: def readline(prompt)
28: $stderr.print prompt.chomp
29: return $stdin.gets.chomp
30: end

[Validate]