Hello Bob,
> 3. I haven't tried reading the keyboard twice (INT 21h AH=3Fh),
> but do know that the buffer is initially empty (all 00h's).
I take that the above "the buffer" is *your* buffer (to write the read data
into), not a likely internal buffer (hint, hint) ....
> The strange thing is that sometimes it does accept input from STDIN
> OK, but most of the time returns immediately with 0Ah as the only
> character in the buffer and a byte count of 1 in AX.
As described the funtion stops when an 0x0A char is encountered. Its quite
possible that that one was already in the buffer, with possibly even more
data (including more 0x0A chars)behind it ... In other words: that first
(empty) string might be old data.
I've not tried it myself, but what happens when you ask for the "filesize"
of that StdInput handle ? If its more than Zero *before* reading the "file"
than you know that there is old data in there (which you need to purge
first).
Regards,
Rudy Wieser
P.s.
I tried to replicate the problem on a Win98se machine booted into DOS, but
could not. It works alright, though it shows a full CR,LF sequence in the
returned buffer (not only the LF you mentioned).
-- Origional mesage:
d2115c41-4801-49fd...@g8g2000vbf.googlegroups.com...