mailgun / godebug

DEPRECATED! https://github.com/derekparker/delve
Apache License 2.0
2.5k stars 107 forks source link

Add readline support #9

Closed jeremyschlatter closed 9 years ago

glycerine commented 9 years ago

Haven't used this myself, but I think I saw it utilized to good effect in one of the web-login-via-ssh projects. It provides very readline-like functionality (special key handling, emacs-like key-bindings, command history and terminal control) in pure go:

https://github.com/kless/term/blob/master/readline/doc.go

jeremyschlatter commented 9 years ago

Cool, thanks for the pointer.

emicklei commented 9 years ago

I have build tools around https://github.com/GeertJohan/go.linenoise. Maybe this fits as well here.

jeremyschlatter commented 9 years ago

After looking through several options I'm planning to go with https://github.com/peterh/liner. I've written the change and just need to finish up testing. Should be ready soon.

willfaught commented 9 years ago

+1

jmburges commented 9 years ago

Excited!

chzyer commented 9 years ago

@jeremyschlatter I will recommend the library I'm working on: https://github.com/chzyer/readline ;) It works well on darwin/linux/windows, and bring us the zsh-style-readline user experience.