GitXplorerGitXplorer
n

readline

public
0 stars
0 forks
0 issues

Commits

List of commits on branch master.
Verified
f6dff0a9f6ddb0248e386a269d75489df526d8c3

Use omit

nnobu committed 4 years ago
Verified
fdc86f51e3293ca39e78ad5be0157714bbbb68b8

Test with/without libedit

nnobu committed 4 years ago
Unverified
290849e69575c6666ee0acf4fa171d7fad451d82

Get rid of inconsistent dll linkages against vcpkg readline

nnobu committed 4 years ago
Verified
e83f4a2c43c3745976877c798c2a4b4a98af562c

Merge pull request #4 from ruby/actions

hhsbt committed 4 years ago
Verified
268276d81ff3311079762b9532ca231607589c71

Switch to use GitHub Actions

hhsbt committed 4 years ago
Verified
1d579b2d93392d5ea547b9396a88d4e0c32b4817

Fixed a typo in an error class name

nnobu committed 4 years ago

README

The README file for this repository.

Readline

The Readline module provides interface for GNU Readline. This module defines a number of methods to facilitate completion and accesses input history from the Ruby interpreter. This module supported Edit Line(libedit) too. libedit is compatible with GNU Readline.

GNU Readline:: http://www.gnu.org/directory/readline.html libedit:: http://www.thrysoee.dk/editline/

See RDoc for Readline module.

Installation

Add this line to your application's Gemfile:

gem 'readline'

And then execute:

$ bundle

Or install it yourself as:

$ gem install readline

Usage

require "readline"
while buf = Readline.readline("> ", true)
  p buf
end
require "readline"
while buf = Readline.readline("> ", true)
  p Readline::HISTORY.to_a
  print("-> ", buf, "\n")
end

Development

After checking out the repo, run bin/setup to install dependencies. Then, run rake test to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb, and then run bundle exec rake release, which will create a git tag for the version, push git commits and tags, and push the .gem file to rubygems.org.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/ruby/readline-ext.