-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A bit of a usage example would be nice. #4
Comments
Hello @MJBrune Have you tried the stuff in the example folder? The instructions are at the top of server.go - not the ideal place to expect them, I realize that. You are welcome to submit a PR if you'd like to improve the examples. Regards, |
Yup I've been pouring over the server.go file in order to look at how you
use stdin, stdout and stderr from the pty. It seems like there isn't a way
to get stderr nor is there a way to ensure the terminal flushes?
Also with examples was thinking it would be nice to toss some in the readme. like this https://github.com/gorilla/mux#examples
Thanks,
Michael Brune
|
True, I can’t see any reference to stderr I’ll be honest, it has been a good while since I wrote this and haven’t needed to do much with it since, so I couldn’t say if that is an oversight or just that stderr isn’t exposed independently by the base library. I’d like to say the latter, but can’t say without fully checking. I can say this has been in use a lot since publish on our internal projects and we’ve never noticed anything missing from our PowerShell output. Likewise with the need to flush, it has always seemed instantaneous. If this is with the stdin and stdout file handles, they aren’t buffered AFAIK, especially not on the Go side. If you find anything that needs fixing, or would like to submit a README when you’ve got to grips with it, a PR would always be welcome. Regards, |
Hey duder,
Am looking at this and looks really good but would love a bit of of an example on how to use the library.
Thanks,
Michael Brune
The text was updated successfully, but these errors were encountered: