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

how to disable automatic input-echoing? #2

Open
Dieterbe opened this Issue Aug 20, 2014 · 0 comments

Comments

Projects
None yet
1 participant
@Dieterbe

Dieterbe commented Aug 20, 2014

when i run my program like this:
echo foo | <myprog>, i want it to handle the foo input, but not to echo it back to me.
the included example program demos this nicely:

~/g/s/g/s/r/example ❯❯❯ go run echo.go
> foo  <-- manual text input
foo  <--- echo output as expected
> 
~/g/s/g/s/r/example ❯❯❯ echo foo | go run echo.go
> foo  <-- i don't want it to automatically show this
foo  <--- echo output as expected
> 
~/g/s/g/s/r/example ❯❯❯ 

is what i want somehow possible?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment