> So if you type "abcd" + cr,
> the .Read(1) will reas the "a" when the cr is entered.
It does. However, outputting all read characters inside that loop displays
all that have been typed. Which means that the buffer should be empty when
the loop exits
I did some more checking and it turns out that when the loop ends there are
/two/ characters still in the buffer. Yup, a CR,LF pair - with seemingly
both being recognised as AtEndOfLine characters. So just reading one last
character was not enough to solve the problem, I needed to read two.
But if I do that .... I will definitily get into troube when I redirect a
file which uses single-character EOLs. IOW, not a good solution.
> Would there be a timeout perhaps?
I wish ! That would allow me to do something else too : looping thru some
code as long as a specific key has not been pressed.
Althoug the former is solved by using .ReadLine, there is no way to get the
latter effect (a "no wait" check for a keypress).
Oh well, I can always see if I can slap something together myself. :-)
Thanks for the help.