#14 Int 0x10: Func 0x0A : Buffered input

v0.50
closed
Sjoerd
interrupt (11)
3
2012-09-07
2002-07-30
Ulf Wohlers
No

If buffered input function 0x0A is called you have to
press return two times to end your keyboard input. I
think the second "DOS_ReadFile"-call is not neccessary.
The "mem_writeb(data+read+2,c);" should be placed
before the "if (c==13) {" to ensure that the return is
written into mem correctly.

Discussion

  • Ulf Wohlers
    Ulf Wohlers
    2002-07-31

    Logged In: YES
    user_id=585207

    Sorry, it's of course int 0x21.

     
  • Sjoerd
    Sjoerd
    2002-07-31

    Logged In: YES
    user_id=153968

    Hmm yeah weird wonder why i still had that (c==13) there, probably
    something wrong with STDIN before :)