Readline is a pure go(golang) implementation for GNU-Readline kind library
Go to file
Cheney f5bac25865 improve readme 2015-09-23 13:15:00 +08:00
example support save history item 2015-09-22 18:16:24 +08:00
.gitignore support history 2015-09-21 13:14:10 +08:00
.travis.yml add travis 2015-09-23 13:11:42 +08:00
LICENSE Initial commit 2015-09-20 23:11:30 +08:00
README.md improve readme 2015-09-23 13:15:00 +08:00
char.go fix typo 2015-09-23 13:03:13 +08:00
history.go fix fwd/bck search 2015-09-23 11:26:20 +08:00
operation.go fix typo 2015-09-23 13:03:13 +08:00
readline.go support save history item 2015-09-22 18:16:24 +08:00
runebuf.go fix typo 2015-09-23 13:03:13 +08:00
search.go fix state 2015-09-23 11:28:50 +08:00
terminal.go refactor 2015-09-23 11:46:56 +08:00
utils.go fix typo 2015-09-23 13:03:13 +08:00

README.md

readline

Software License Build Status GoDoc

A pure go implementation for gnu readline.

Demo

demo

Shortcut

Meta + n means press Esc and n separately

Shortcut Comment Support
Ctrl+A Beginning of line Yes
Ctrl+B / Backward one character Yes
Meta+B Backward one word Yes
Ctrl+C Send io.EOF Yes
Ctrl+D Delete one character Yes
Meta+D Delete one word Yes
Ctrl+E End of line Yes
Ctrl+F / Forward one character Yes
Meta+F Forward one word Yes
Ctrl+G Cancel Yes
Ctrl+H Delete previous character Yes
Ctrl+I / Tab Command line completion No
Ctrl+J Line feed Yes
Ctrl+K Cut text to the end of line Yes
Ctrl+L Clean screen No
Ctrl+M Same as Enter key Yes
Ctrl+N / Next line (in history) Yes
Ctrl+P / Prev line (in history) Yes
Ctrl+R Search backwards in history Yes
Ctrl+S Search forwards in history Yes
Ctrl+T Transpose characters Yes
Meta+T Transpose words No
Ctrl+U Cut text to the beginning of line No
Ctrl+W Cut previous word Yes
Backspace Delete previous character Yes
Meta+Backspace Cut previous word Yes
Enter Line feed Yes