Quote:
Originally posted by Morgan
I've tried searching for this but was surprised not to find. If it is a repeat query please forgive me!!
Can anybody tell me how to grab stdin before it gets to stdout? I would like to read what is being typed without it echoing to the screen, play with the input, then display it later.
I've been looking at freopen to redirect stdout into a buffer, but I can't get it to work.
Thanks.
there is a flaw in your reasoning: input from stdin is NOT echoed to stdout. a conforming implementation may echo it to a console or whatever it wishes to, but NOT to stdout. stdin doesnt "go" to stdout on its own.