Yeah, ctrl+d indicates, to an application awaiting input, that you're done inputting and would like to stop now. I've never seen it used to pause or skip input and then a program continues either.

A problem I had in C/C++ may have been similar, as far as the problem goes, in that I had my program waiting for the user to hit Enter, after displaying the status of the last process. Pressing enter inserted a carriage return into the keybuffer, caused the program to continue, but then would fail to pause for the enter key after that because that last carriage return was still in the keybuffer. So I had to have my program clear the last key from the buffer after enter was pressed. I don't know if the same sort of thing might be happening here, but I haven't seen much detail on your project so I thought I'd toss it out just in case.

Good luck,
Fargo

[EMAIL PROTECTED] wrote:
On Nov 29, 2006, at 15:20 UTC, Charles Yeomans wrote:

On Nov 28, 2006, at 11:28 PM, Kem Tekinay wrote:

My console app reads a bunch of text from stdin until stdin.EOF is true. It then does some processing before it needs to prompt the user for more stuff.
I think that this is what the method Input is for.

I think the method Input does the same thing as stdin.ReadLine.  But I
haven't actually tested it lately.

In the same vein, my understanding of Unix is that when you press
control-D to terminate console input (or equivalently, reach the end of
a file you've piped to stdin), then that's it, that stream is
permanently at EOF.  I've never seen a Unix app where you can terminate
input and then give more input later.  A more typical solution, I
think, is to terminate input with a blank line or a "." line or
something like that.

HTH,
- Joe

--
Joe Strout -- [EMAIL PROTECTED]
Verified Express, LLC     "Making the Internet a Better Place"
http://www.verex.com/

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>



_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to