Closed frou closed 10 years ago
Thanks for the patch!
My first instinct is that !isatty should behave the same as TERM=dumb. Upon further reflection, I can see arguments on both sides. Since you're the first one to notice, your proposed behaviour wins by default.
Pushed.
The world of ttys, line disciplines, cursor addressing and all that is fairly arcane to me, which is why I was glad to find your package. Pure Go and no dependencies to boot makes it a gem! I'm using it in the interpreter for a little Lispy language I'm putting together.
Hi - thanks for the cool package. I noticed that it's assumed that standard output is a terminal if the parent has set TERM, but that doesn't hold when shell output redirection is used. Before my changes, *State.refresh will panic in case (C) due to trying to work out how to maintain the line editor in the non-existent columns of a normal file.
I don't think my changes mess anything else up, but let me know what you think.