Readline is a pure go(golang) implementation for GNU-Readline kind library
Go to file
Paul Tagliamonte 41eea22f71 Add two API methods to set RuneBuffer state before prompting the user (#105)
* Expose RuneBuffer.Set through Operation's API

This allows a user to prefill a line before the user is given a prompt,
so that you can provide a default, user-editable input line.

* Add a Instance.ReadlineWithDefault API method

This will pre-fill the Operation.RuneBuffer with text before prompting
the user, and provide her with a method to edit the provided default.
2017-03-14 07:49:21 +08:00
doc update readme 2016-09-02 22:37:16 +08:00
example Ability to filter out input runes (#104) 2017-02-20 09:51:01 +08:00
runes Fix #43 , remove sub-package for gopkg compatiblity 2016-04-05 09:55:46 +08:00
.travis.yml Bugfix/datarace prompt (#81) 2016-09-15 18:11:25 +08:00
CHANGELOG.md update changelog 2016-07-26 21:51:17 +08:00
LICENSE Initial commit 2015-09-20 23:11:30 +08:00
README.md Solaris support (#110) 2017-03-13 07:57:45 +08:00
ansi_windows.go [windows] fix ansi parse by remove channel 2016-07-24 00:39:44 +08:00
complete.go Fix column padding calculation to prevent wrapping (#83) 2016-09-29 09:01:11 +08:00
complete_helper.go Dynamic autocompletion (#60) 2016-07-26 21:39:09 +08:00
complete_segment.go [completer] add SegmentAutoComplete 2016-04-12 14:04:56 +08:00
complete_segment_test.go [remote] fix test 2016-04-11 01:54:54 +08:00
history.go add HistorySearchFold (#86) 2016-10-03 14:51:04 +08:00
operation.go Add two API methods to set RuneBuffer state before prompting the user (#105) 2017-03-14 07:49:21 +08:00
password.go refactory 2016-03-05 15:45:42 +08:00
rawreader_windows.go add comment 2015-10-09 11:13:07 +08:00
readline.go Add two API methods to set RuneBuffer state before prompting the user (#105) 2017-03-14 07:49:21 +08:00
readline_test.go Bugfix/datarace prompt (#81) 2016-09-15 18:11:25 +08:00
remote.go [remote] fix remote 2016-04-11 01:46:08 +08:00
runebuf.go Bugfix/datarace prompt (#81) 2016-09-15 18:11:25 +08:00
runes.go add HistorySearchFold (#86) 2016-10-03 14:51:04 +08:00
runes_test.go Fix #43 , remove sub-package for gopkg compatiblity 2016-04-05 09:55:46 +08:00
search.go Fix: a backup plan when can't get size of terminal (#71) 2016-08-31 23:51:28 +08:00
std.go fix deadlock in cancelable stdin (#89) 2016-10-06 12:35:07 +08:00
std_windows.go finish windows support 2015-09-29 23:28:12 +08:00
term.go Solaris support (#110) 2017-03-13 07:57:45 +08:00
term_bsd.go Solaris support (#110) 2017-03-13 07:57:45 +08:00
term_linux.go Solaris support (#110) 2017-03-13 07:57:45 +08:00
term_solaris.go Solaris support (#110) 2017-03-13 07:57:45 +08:00
term_unix.go Solaris support (#110) 2017-03-13 07:57:45 +08:00
term_windows.go fix windows compile error 2016-07-22 00:40:16 +08:00
terminal.go fix terminal data race (#99) 2017-01-25 11:55:32 +08:00
utils.go Solaris support (#110) 2017-03-13 07:57:45 +08:00
utils_test.go remove test for SplitByMultiLine 2016-03-31 00:19:18 +08:00
utils_unix.go Solaris support (#110) 2017-03-13 07:57:45 +08:00
utils_windows.go Add ClearScreen operation on Ctrl+L (#56) 2016-05-16 17:59:35 +08:00
vim.go fix #36 vim mode: 'e' moves to the beginning of the next word (#64) 2016-07-26 21:40:22 +08:00
windows_api.go finish windows support 2015-09-29 23:28:12 +08:00

README.md

Build Status Software License Version GoDoc OpenCollective OpenCollective

A powerful readline library in Linux macOS Windows Solaris

Guide

Repos using readline

cockroachdb robertkrimen/otto empire mehrdadrad/mylg knq/usql youtube/doorman bom-d-van/harp abiosoft/ishell Netflix/hal-9001 docker/go-p9p

Feedback

If you have any questions, please submit a github issue and any pull requests is welcomed :)

Backers

Love Readline? Help me keep it alive by donating funds to cover project expenses!
[Become a backer]

Sponsors

Become a sponsor and get your logo here on our Github page. [Become a sponsor]