goline
goline copied to clipboard
A simple readline facility for Go. Based on the C library Linenoise
C:\Users\hugo>go get github.com/nemith/goline c:\users\hugo\go\src\github.com\nemith\goline\terminal.go:89: undefined: syscall.Termios
Curses have: KEY_UP KEY_DOWN KEY_LEFT KEY_RIGHT Really good alternative to readline, BTW. I'll use it all the time.
Hi! I'm trying use this awesome tool in my project, but I found a problem with a simple usage. 1) I write something like "select \* from tags [enter]", it...
Need a way to save and load history. Should use os.Reader and os.Writer as well as convenience functions to load and save from a file.
If you type a line longer than the terminal then goline will fail to redraw the line properly. Should support multiple line input, or truncated command line (selectable). Need to...
If a prompt has multiple lines then the new lines a redrawin with every update. [edit] [edit]> [edit]prompt> t [edit]prompt> t [edit]prompt> te [edit]prompt> te [edit]prompt> tes [edit]prompt> tes [edit]prompt>...
Linenoise supports it. Should be toggleable from an existing GoLline object.