https://github.com/ruby/reline
The compatible library with the API of Ruby's stdlib 'readline'
https://github.com/ruby/reline
Keywords
hacktoberfest ruby
Keywords from Contributors
repl rubygems activerecord mvc activejob documentation-tool debugger json-parser yaml-parser psych
Last synced: about 16 hours ago
JSON representation
Repository metadata
The compatible library with the API of Ruby's stdlib 'readline'
- Host: GitHub
- URL: https://github.com/ruby/reline
- Owner: ruby
- License: other
- Created: 2018-03-02T14:13:53.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2025-12-02T00:36:44.000Z (9 days ago)
- Last Synced: 2025-12-07T00:28:08.287Z (4 days ago)
- Topics: hacktoberfest, ruby
- Language: Ruby
- Homepage:
- Size: 1.78 MB
- Stars: 290
- Watchers: 42
- Forks: 94
- Open Issues: 37
- Releases: 70
-
Metadata Files:
- Readme: README.md
- License: COPYING
README.md
This is a screen capture of IRB improved by Reline.

Reline
Reline is compatible with the API of Ruby's stdlib 'readline', GNU Readline and Editline by pure Ruby implementation.
Usage
Single line editing mode
It's compatible with the readline standard library.
See the document of readline stdlib or bin/example.
Multi-line editing mode
require "reline"
prompt = 'prompt> '
use_history = true
begin
while true
text = Reline.readmultiline(prompt, use_history) do |multiline_input|
# Accept the input until `end` is entered
multiline_input.split.last == "end"
end
puts 'You entered:'
puts text
end
# If you want to exit, type Ctrl-C
rescue Interrupt
puts '^C'
exit 0
end
$ ruby example.rb
prompt> aaa
prompt> bbb
prompt> end
You entered:
aaa
bbb
end
See also: test/reline/yamatanooroti/multiline_repl
Documentation
Reline::Face
You can modify the text color and text decorations in your terminal emulator.
See doc/reline/face.md
Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/ruby/reline.
Run tests
Note
Please make sure you havelibvterminstalled foryamatanoorotitests (integration tests).
If you use Homebrew, you can install it by running brew install libvterm.
WITH_VTERM=1 bundle install
WITH_VTERM=1 bundle exec rake test test_yamatanooroti
Releasing
rake release
gh release create vX.Y.Z --generate-notes
License
The gem is available as open source under the terms of the Ruby License.
Acknowledgments for rb-readline
In developing Reline, we have used some of the rb-readline implementation, so this library includes copyright notice, list of conditions and the disclaimer under the 3-Clause BSD License. Reline would never have been developed without rb-readline. Thank you for the tremendous accomplishments.
Owner metadata
- Name: The Ruby Programming Language
- Login: ruby
- Email: info@ruby-lang.org
- Kind: organization
- Description: Repositories related to the Ruby Programming language
- Website: https://www.ruby-lang.org/
- Location: Matsue, Japan
- Twitter:
- Company:
- Icon url: https://avatars.githubusercontent.com/u/210414?v=4
- Repositories: 171
- Last ynced at: 2023-04-09T03:40:20.875Z
- Profile URL: https://github.com/ruby
GitHub Events
Total
- Create event: 11
- Commit comment event: 1
- Release event: 6
- Issues event: 25
- Watch event: 30
- Delete event: 8
- Issue comment event: 67
- Push event: 63
- Pull request review comment event: 75
- Pull request review event: 123
- Pull request event: 116
- Fork event: 12
Last Year
- Create event: 8
- Commit comment event: 1
- Release event: 4
- Issues event: 14
- Watch event: 23
- Delete event: 7
- Issue comment event: 32
- Push event: 41
- Pull request review event: 73
- Pull request review comment event: 40
- Pull request event: 75
- Fork event: 8
Committers metadata
Last synced: 3 days ago
Total Commits: 1,602
Total Committers: 70
Avg Commits per committer: 22.886
Development Distribution Score (DDS): 0.326
Commits in past year: 55
Committers in past year: 12
Avg Commits per committer in past year: 4.583
Development Distribution Score (DDS) in past year: 0.527
| Name | Commits | |
|---|---|---|
| aycabta | a****a@g****m | 1080 |
| tomoya ishida | t****n@g****m | 126 |
| Mari Imaizumi | m****5@g****m | 69 |
| Nobuyoshi Nakada | n****u@r****g | 60 |
| manga_osyo | m****o@g****m | 58 |
| Stan Lo | s****2@g****m | 31 |
| YO4 | y****o@a****p | 15 |
| Hiroshi SHIBATA | h****t@r****g | 14 |
| MSP-Greg | M****g | 13 |
| dependabot[bot] | 4****] | 12 |
| Takashi Kokubun | t****n@g****m | 11 |
| Yusuke Endoh | m****e@r****g | 8 |
| Jeremy Evans | c****e@j****t | 7 |
| Otávio Schwanck dos Santos | o****k@g****m | 6 |
| HASUMI Hitoshi | h****n@g****m | 5 |
| Kazuhiro NISHIYAMA | zn@m****m | 5 |
| elfham | 3****m | 5 |
| Phillip Hellewell | s****k@g****m | 4 |
| Lars Kanis | l****s@g****e | 4 |
| Samuel Williams | s****s@o****z | 3 |
| Étienne Barrié | e****e@g****m | 3 |
| Wu | m****r@g****m | 3 |
| Koichi Sasada | k****1@a****t | 3 |
| Sorah Fukumori | h****r@s****p | 2 |
| SilverPhoenix99 | s****9@g****m | 2 |
| Robert Schulze | r****t@d****e | 2 |
| Ricky McMillen | r****y@r****k | 2 |
| Peter Zhu | p****r@p****a | 2 |
| Olle Jonsson | o****n@g****m | 2 |
| Mark Delk | j****l@g****m | 2 |
| and 40 more... | ||
Committer domains:
- ruby-lang.org: 3
- ac.auone-net.jp: 1
- jeremyevans.net: 1
- mbf.nifty.com: 1
- greiz-reinsdorf.de: 1
- oriontransfer.co.nz: 1
- atdot.net: 1
- sorah.jp: 1
- dotless.de: 1
- rickymcmillen.co.uk: 1
- peterzhu.ca: 1
- rapid7.com: 1
- spacepro.be: 1
- tmtm.org: 1
- gmx.at: 1
- tpope.net: 1
- pasosdejesus.org: 1
- kozinski.com: 1
- mail.ru: 1
- yahoo.co.jp: 1
- mail.moznion.net: 1
- garbagecollect.jp: 1
- headius.com: 1
- shopify.com: 1
- mensfeld.pl: 1
- stanford.edu: 1
Issue and Pull Request metadata
Last synced: 4 days ago
Total issues: 118
Total pull requests: 470
Average time to close issues: 8 months
Average time to close pull requests: about 2 months
Total issue authors: 66
Total pull request authors: 50
Average comments per issue: 1.85
Average comments per pull request: 0.9
Merged pull request: 369
Bot issues: 0
Bot pull requests: 11
Past year issues: 11
Past year pull requests: 94
Past year average time to close issues: about 15 hours
Past year average time to close pull requests: 4 days
Past year issue authors: 11
Past year pull request authors: 15
Past year average comments per issue: 1.09
Past year average comments per pull request: 0.32
Past year merged pull request: 72
Past year bot issues: 0
Past year bot pull requests: 10
Top Issue Authors
- tompng (22)
- aycabta (8)
- elfham (5)
- rubyFeedback (5)
- sjanusz-r7 (4)
- sfrieske (4)
- ima1zumi (3)
- postmodern (3)
- st0012 (3)
- headius (2)
- fractaledmind (2)
- ddoherty03 (2)
- hsbt (2)
- DirtYiCE (1)
- otavioschwanck (1)
Top Pull Request Authors
- tompng (215)
- ima1zumi (84)
- st0012 (40)
- nobu (12)
- hsbt (11)
- dependabot[bot] (11)
- hasumikin (7)
- monkeyWzr (6)
- osyo-manga (5)
- elfham (5)
- YO4 (4)
- sshock (4)
- etiennebarrie (4)
- otavioschwanck (3)
- aycabta (3)
Top Issue Labels
- bug (27)
- enhancement (22)
- good first issue (4)
- Windows (2)
Top Pull Request Labels
- bug (88)
- enhancement (34)
- dependencies (12)
- github_actions (10)
- documentation (5)
- Don't merge (1)
Package metadata
- Total packages: 4
-
Total downloads:
- rubygems: 322,162,200 total
- Total docker downloads: 7,282,434,228
- Total dependent packages: 20 (may contain duplicates)
- Total dependent repositories: 28,587 (may contain duplicates)
- Total versions: 199
- Total maintainers: 8
gem.coop: reline
Alternative GNU Readline or Editline implementation by pure Ruby.
- Homepage: https://github.com/ruby/reline
- Documentation: http://www.rubydoc.info/gems/reline/
- Licenses: Ruby
- Latest release: 0.6.3 (published about 1 month ago)
- Last Synced: 2025-12-07T13:01:50.488Z (3 days ago)
- Versions: 70
- Dependent Packages: 0
- Dependent Repositories: 0
- Downloads: 160,985,607 Total
- Docker Downloads: 3,641,217,114
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Docker downloads count: 0.016%
- Average: 0.045%
- Downloads: 0.164%
- Maintainers (7)
rubygems.org: reline
Alternative GNU Readline or Editline implementation by pure Ruby.
- Homepage: https://github.com/ruby/reline
- Documentation: http://www.rubydoc.info/gems/reline/
- Licenses: Ruby
- Latest release: 0.6.3 (published about 1 month ago)
- Last Synced: 2025-12-08T13:01:50.270Z (2 days ago)
- Versions: 70
- Dependent Packages: 20
- Dependent Repositories: 28,587
- Downloads: 161,176,593 Total
- Docker Downloads: 3,641,217,114
-
Rankings:
- Docker downloads count: 0.018%
- Dependent repos count: 0.211%
- Downloads: 0.522%
- Dependent packages count: 1.446%
- Average: 1.537%
- Forks count: 3.12%
- Stargazers count: 3.906%
- Maintainers (7)
pkg.adelielinux.org: ruby-reline
Reline is compatible with the API of Ruby's stdlib 'readline', GNU Readline and Editline
- Homepage: https://github.com/ruby/reline
- Licenses: BSD-2-Clause
- Latest release: 0.2.7-r0 (published almost 3 years ago)
- Last Synced: 2025-11-13T10:48:36.080Z (27 days ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Forks count: 3.585%
- Stargazers count: 4.213%
- Average: 6.293%
- Dependent packages count: 17.376%
- Maintainers (1)
proxy.golang.org: github.com/ruby/reline
- Homepage:
- Documentation: https://pkg.go.dev/github.com/ruby/reline#section-documentation
- Licenses: other
- Latest release: v0.6.3 (published about 1 month ago)
- Last Synced: 2025-12-05T22:00:57.746Z (5 days ago)
- Versions: 58
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Forks count: 3.021%
- Stargazers count: 3.626%
- Average: 6.756%
- Dependent packages count: 9.576%
- Dependent repos count: 10.802%
Dependencies
- bundler >= 0 development
- irb >= 1.3.6 development
- rake >= 0 development
- test-unit >= 0 development
- yamatanooroti >= 0.0.9 development
- io-console ~> 0.5
- actions/checkout v3 composite
- ruby/setup-ruby v1 composite
- actions/checkout b4ffde65f46336ab88eb53be808477a3936bae11 composite
- ruby/setup-ruby 250fcd6a742febb1123a77a841497ccaa8b9e939 composite
Score: 32.790478631493755