README in rb-readline-0.4.0 vs README in rb-readline-0.4.1
- old
+ new
@@ -8,13 +8,13 @@
require 'readline'
loop do
line = Readline::readline('> ')
+ break if line.nil? || line == 'quit'
Readline::HISTORY.push(line)
puts "You typed: #{line}"
- break if line == 'quit'
end
= Motivation
First, building the GNU readline library on MS Windows with Visual C++ is
@@ -41,13 +41,15 @@
authors to write their own interface as they see fit.
= Tutorial
For an excellent tutorial on how to use Readline in practice, please see
-Joseph Pecoraro's examples at http://bogojoker.com/readline/. There is also
-documentation by Michael Fellinger at http://p.ramaze.net/18421.md.
+Joseph Pecoraro's examples at http://bogojoker.com/readline/.
+You can also take a look at Ruby 1.9 stdlib Readline documentation located
+at http://rubydoc.info/stdlib/readline/1.9.2/frames
+
= Alternatives
See Rawline for a library that began life in pure Ruby and provides an
interface that's probably more comfortable to Ruby programmer. It has certain
features that Readline does not. In addition, it provides a Readline
@@ -56,5 +58,6 @@
= Authors
* Park Heesob (C translation, code donated as part of bounty)
* Daniel Berger (Documentation and testing)
* Luis Lavena (Maintainer)
+* Mark Somerville (Contributor/Maintainer)