Commit Graph

245 Commits

Author SHA1 Message Date
Cheney 8181d5ed14 disable interactive when stdin is not a tty 2016-02-18 13:08:19 +08:00
Cheney 15e7be4ac2 add new interface and fixed crash if stdout isn't a tty 2016-02-18 11:25:41 +08:00
Cheney 6368045a0b report error if it save history fail 2016-02-18 08:41:35 +08:00
Chzyer 01066143c6 Merge pull request #28 from chzyer/feature/fix_mass_history
Fixed mass history
2016-02-17 22:38:54 +08:00
Cheney 00e1a8e95a #19 fixed mass history 2016-02-17 22:20:03 +08:00
Cheney 21acaf90fd fixed crash if stdin is not a tty (pipe) 2016-02-17 14:08:55 +08:00
Cheney 07485bbd8f update history interfaces. and support DisableAutoSaveHistory 2016-02-16 16:56:57 +08:00
Chzyer d435bdb1ae Merge pull request #27 from chzyer/feature/support_unique_edit_line
support unique edit line
2016-02-16 08:05:30 +08:00
Cheney a0730873ad #26 support unique edit line 2016-02-15 10:05:39 +08:00
Cheney 01cffb6cb2 support unique edit line 2016-02-15 10:03:41 +08:00
Cheney f20f365652 update readme 2016-02-11 12:21:32 +08:00
Cheney 1aa557f19e fix typo 2016-01-31 13:54:58 +08:00
Cheney 8853e17195 support dial to remote readline 2016-01-31 12:18:46 +08:00
Chzyer cbab1f1566 Merge pull request #24 from DanCripe/master
An extended prefix completion implementation
2016-01-08 00:00:53 +08:00
Dan Cripe 7f88ba2640 Add Tree() method back in.
Needed for one of the examples and for backward compatability.
2016-01-07 09:54:10 -06:00
Dan Cripe d0e806295b Use refactored code instead of original. 2016-01-07 09:42:12 -06:00
Dan Cripe e0fe5c6252 Reimplement in a compatible way.
Signed-off-by: Dan Cripe <dan@quattronetworks.com>
2016-01-06 18:46:43 -06:00
Dan Cripe f89cf57370 Change implementation drastically.
Signed-off-by: Dan Cripe <dan@quattronetworks.com>
2016-01-06 17:39:08 -06:00
Dan Cripe cd2d269a73 Hack to allow dynamic content in autocompletion.
Signed-off-by: Dan Cripe <dan@quattronetworks.com>
2016-01-06 15:41:13 -06:00
Chzyer 94a70819f4 Merge pull request #23 from lunixbochs/master
add stdin remapping support
2015-12-24 15:39:15 +08:00
Ryan Hileman 05d3fbcc2a add stdin remapping support 2015-12-23 21:54:46 -08:00
Cheney 76dfcd2e50 CI: fix travis 2015-11-21 11:38:21 +08:00
Cheney c36905cc67 readme: update about examples. 2015-11-21 11:36:20 +08:00
Cheney 1a0e228994 example: rename demos 2015-11-21 11:36:09 +08:00
Chzyer 6ae0191254 Merge pull request #18 from sahib/master
Add pass_strength/pass_strength.go example
2015-11-20 23:34:49 +08:00
Chris P f1bc3fbc0e Merge branch 'master' of github.com:sahib/readline 2015-11-20 16:28:42 +01:00
Chris P ccd7589339 example: add pass_strength/pass_strength.go (WTFPL licensed) 2015-11-20 16:27:55 +01:00
Cheney 09b448ca0b changelog: fix syntax 2015-11-20 23:25:18 +08:00
Cheney fb8cb23199 add changelog 2015-11-20 23:22:54 +08:00
Cheney c1adc97620 example: improve usage content 2015-11-20 21:32:53 +08:00
Cheney 839c0013a8 example: update 2015-11-20 21:00:05 +08:00
Cheney 71e9536f4b add password support 2015-11-20 20:56:42 +08:00
Chzyer ee4d466b62 Merge pull request #17 from michalpristas/master
int63 changed to int32
2015-11-20 17:14:10 +08:00
Pristáš Michal 4bc3b1f4f4 int63 changed to int32 in order to make readline runnable on arm 32bit devices [terminal.go] 2015-11-20 10:09:55 +01:00
Cheney 4dffd60960 example: improve InterruptPrompt 2015-11-20 11:33:10 +08:00
Cheney 5660cc8cb6 example: change (Ctrl+C), (Ctrl+D) to shell-like 2015-11-20 11:26:58 +08:00
Cheney db2e5eae91 fix bugs: reset buffer after trigger io.EOF/ErrInterrupt 2015-11-20 11:25:30 +08:00
Cheney 7a18498f5b treat `Ctrl+D` + EmptyLine = EOF, `Ctrl+C` = ErrInterrupt 2015-11-19 11:55:07 +08:00
Cheney 9364259fb1 #15: fix prefix completer 2015-11-14 10:21:55 +08:00
Cheney 5ee706df9b only enter raw mode when calling Readline() 2015-11-09 11:20:26 +08:00
Cheney e870ba12fd README: update 2015-11-08 14:23:29 +08:00
Cheney d59da2cf77 refactor excapeExKey 2015-10-28 09:02:52 +08:00
Chzyer 6ba1b6d3f5 Merge pull request #13 from jamesnetherton/fixup-autocomp-example
Correct minor issues with auto complete example
2015-10-28 08:55:28 +08:00
Chzyer ffee92f4b7 Merge pull request #12 from michalpristas/add-delete-home-end-support
Add delete home end support
2015-10-28 08:55:01 +08:00
James Netherton 46f410607f Correct minor issues with auto complete example 2015-10-27 20:26:58 +00:00
Pristáš Michal bcc2f0762c reader nil check in escapeExKey 2015-10-26 09:45:11 +01:00
Pristáš Michal 30303e5637 reader nil check in escapeExKey 2015-10-26 09:43:34 +01:00
Pristáš Michal 391c225c0b delete redundancy char check moved to escapeExKey method 2015-10-26 09:41:48 +01:00
Pristáš Michal de44b28597 cleanup 2015-10-23 13:19:36 +02:00
Pristáš Michal 1c411ac48c changes completed 2015-10-23 13:16:45 +02:00