[go-nuts] While implement ssh client using golang, record keyboard input

2018-10-22 Thread Sun Frank
Hi Everyone: I came across a problem which puzzled me for couple of days. I am trying to write a* SSH client with a Interactive Shell *using golang, but i also need to record the command(or keystroke history) of the user typed, like the history feature, here's my working code: ce := func(err

Re: [go-nuts] While implement ssh client using golang, record keyboard input

2018-10-22 Thread Michael Jones
Seems natural to have an architecture where one loop reads the input and passes complete lines to a consumer. This reading loop would store lines in a list (array, buffer,...) and thus be able to resubmit them to the consumer. On Mon, Oct 22, 2018 at 1:57 PM Sun Frank wrote: > Hi Everyone: > > I