Hey folks,

I recently embedded the golang.go/x/term into my application and I love the 
simplicity and effectiveness of having such a terminal.

The history part of it is also great to have, but even better if one could 
save/restore the history over application restarts. I did some changes and 
a proof-of-concept and I'm wondering if this would be worth merging. So any 
developers/maintainers/users here which I could maybe ping ideas with, 
before submitting a patch for review?

I also found a couple of slightly annoying issues which I'd also like to 
fix:
1. Terminal.ReadPassword() allows the auto-complete callback; I don't see 
why that would be helpful, other than making TABs harder to use in 
passwords :-p. Of course, once could simply unset/set the callback around 
the calls to Terminal.ReadPassword(), but feels like I shouldn't need that 
(e.g. some users might leak partial password unintentionally).
2. I redirected all my stdout logs through Terminal.Write(), but still, I'm 
getting some funky wrapped lines when (I guess) my go-routines write things 
in parallel or maybe when the prompt is "refreshed"... not sure.

Cheers,
-Dragos 

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/bb138fc1-9cd4-4d0e-8590-1f17a861a89en%40googlegroups.com.

Reply via email to