Path: | lib/rubytui.rb |
Last Update: | Wed Jan 02 16:47:10 -0800 2013 |
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)
RubyTUI is a set of functions that are useful for dealing with the command line interface.
* Michael Granger <ged@FaerieMUD.org> * Martin Chase <stillflame@freegeek.org>
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.."
# File lib/rubytui.rb, line 27 27: def readline(prompt) 28: $stderr.print prompt.chomp 29: return $stdin.gets.chomp 30: end