CARVIEW |
Select Language
HTTP/2 301
server: nginx
date: Fri, 08 Aug 2025 12:27:28 GMT
content-type: text/html; charset=utf-8
content-length: 118
x-archive-orig-server: nginx/0.6.26
x-archive-orig-date: Wed, 27 May 2009 22:59:20 GMT
x-archive-orig-connection: close
x-archive-orig-status: 301 Moved Permanently
location: https://web.archive.org/web/20090527225920/https://github.com/luislavena/rb-readline/tree/master
x-archive-orig-x-runtime: 38ms
x-archive-orig-cache-control: no-cache
x-archive-orig-content-length: 118
cache-control: max-age=1800
accept-ranges: bytes
memento-datetime: Wed, 27 May 2009 22:59:20 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Wed, 27 May 2009 22:59:20 GMT", ; rel="memento"; datetime="Wed, 27 May 2009 22:59:20 GMT", ; rel="next memento"; datetime="Thu, 28 May 2009 21:12:22 GMT", ; rel="last memento"; datetime="Thu, 15 Mar 2012 13:19:40 GMT"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: 52_9_20090527191916_crawl102-c/52_9_20090527225854_crawl101.arc.gz
server-timing: captures_list;dur=0.735586, exclusion.robots;dur=0.032128, exclusion.robots.policy;dur=0.013786, esindex;dur=0.012683, cdx.remote;dur=30.899636, LoadShardBlock;dur=721.292616, PetaboxLoader3.resolve;dur=471.992224, PetaboxLoader3.datanode;dur=460.165072, load_resource;dur=231.923953
x-app-server: wwwb-app239
x-ts: 301
x-tr: 1085
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=1
set-cookie: wb-p-SERVER=wwwb-app239; path=/
cache-control: private
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 200
server: nginx
date: Fri, 08 Aug 2025 12:27:29 GMT
content-type: text/html; charset=utf-8
x-archive-orig-server: nginx/0.6.31
x-archive-orig-date: Wed, 27 May 2009 22:59:20 GMT
x-archive-orig-connection: close
x-archive-orig-status: 200 OK
x-archive-orig-x-runtime: 313ms
x-archive-orig-etag: "0c5117998772362b0c195c479caff07a"
x-archive-orig-cache-control: private, max-age=0, must-revalidate
x-archive-orig-content-length: 21691
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
memento-datetime: Wed, 27 May 2009 22:59:20 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Tue, 26 May 2009 21:32:38 GMT", ; rel="prev memento"; datetime="Tue, 26 May 2009 21:32:38 GMT", ; rel="memento"; datetime="Wed, 27 May 2009 22:59:20 GMT", ; rel="next memento"; datetime="Sun, 28 Jun 2009 12:23:15 GMT", ; rel="last memento"; datetime="Mon, 25 Nov 2024 23:02:22 GMT"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: 52_9_20090527191916_crawl102-c/52_9_20090527225854_crawl101.arc.gz
server-timing: captures_list;dur=0.546647, exclusion.robots;dur=0.022731, exclusion.robots.policy;dur=0.010253, esindex;dur=0.009286, cdx.remote;dur=36.786041, LoadShardBlock;dur=247.499414, PetaboxLoader3.datanode;dur=176.087824, PetaboxLoader3.resolve;dur=631.615244, load_resource;dur=641.563634
x-app-server: wwwb-app239
x-ts: 200
x-tr: 1001
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=1
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
content-encoding: gzip
luislavena's rb-readline at master - GitHub
This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (

This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (

Description: | Pure-Ruby Readline Implementation |
Clone URL: |
git://github.com/luislavena/rb-readline.git
Give this clone URL to anyone.
git clone git://github.com/luislavena/rb-readline.git
|
name | age | message | |
---|---|---|---|
![]() |
.gitignore | Fri Apr 10 15:42:40 -0700 2009 | Initial code import. Thanks Park Heesob for wr... [luislavena] |
![]() |
LICENSE | Sat Apr 11 08:22:16 -0700 2009 | Relicense library as BSD. Since is a complete ... [luislavena] |
![]() |
README | Sat Apr 25 17:18:49 -0700 2009 | Added README, examples and tests, courtesy of D... [luislavena] |
![]() |
Rakefile | Mon May 18 18:54:19 -0700 2009 | Corrected tests They now execute :-P [luislavena] |
![]() |
examples/ | Sat Apr 25 17:18:49 -0700 2009 | Added README, examples and tests, courtesy of D... [luislavena] |
![]() |
lib/ | Mon May 18 18:56:16 -0700 2009 | Bumped version to 0.1.2 [luislavena] |
![]() |
setup.rb | Fri Apr 10 15:42:40 -0700 2009 | Initial code import. Thanks Park Heesob for wr... [luislavena] |
![]() |
test/ | Mon May 18 19:00:25 -0700 2009 | Yikes, removed brittle test. Testing internal ... [luislavena] |
= Description The readline library provides a pure Ruby implementation of the GNU readline C library, as well as the Readline extension that ships as part of the standard library. = Synopsis require 'readline' loop do line = Readline::readline('> ') 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 nigh impossible. However, certain libraries depend on readline. By providing a pure Ruby version we eliminate the entire compiler compatibility issue. Second, even on distributions of Windows built with MinGW (that include the readline library for Windows), the behavior was sometimes erratic and would break. Third, even on certain Unix distributions the GNU readline library is not guaranteed to be installed. Providing a pure Ruby readline eliminates the need to install a C library first. It's also one less link in the dependency chain, meaning we don't need to worry about possible changes in the underlying C library affecting our interface. Fourth, by making the interface pure Ruby, we increase the likelihood of receiving patches, feature requests, documentation updates, etc from the community at large, since not everyone knows C. Lastly, the Readline interface that ships as part of the standard library is weak, and only provides a very limited subset of the actual GNU readline library. By providing a pure Ruby implementation we allow 3rd party library 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 https://bogojoker.com/readline/. There is also documentation by Michael Fellinger at https://p.ramaze.net/18421.md. = 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 compatibility mode. = Authors * Park Heesob (C translation, code donated as part of bounty) * Daniel Berger (Documentation and testing)
This feature is coming soon. Sit tight!