News for hackers. Stuff that matters.
Re:Neugram – Scripting in Go by crawshaw on Saturday November 04, 2017 @10:06AM (#15625052)
It really is an excellent package. Does exactly what it says on the box.

I fear I may hit a wall with it eventually. For example, several interesting approaches to https://github.com/neugram/ng/issues/49 would step outside what liner can do. But I'm going to use it as long as I can.

Re:Neugram – Scripting in Go by frou_dh on Saturday November 04, 2017 @10:22AM (#15625117)
Among other things, I actually modified liner to stop using/swallowing all control codes, and to instead surface some of them to the client program to decide how to respond. e.g. liner stops doing anything with Ctrl-X (0x18 ?) and instead ng could respond to Ctrl-X by writing a docstring to stderr for an identifier under the caret in the input buffer.

https://github.com/frou/liner/blob/master/common.go#L208