flat assembler
Message board for the users of flat assembler.
Index
> Linux > how do you flush the keyboard after input? |
Author |
|
HaHaAnonymous 15 Feb 2015, 21:25
[ Post removed by author. ]
Last edited by HaHaAnonymous on 28 Feb 2015, 17:55; edited 1 time in total |
|||
15 Feb 2015, 21:25 |
|
gens 15 Feb 2015, 22:56
i don't know of a direct way, so
eax returns the number of bytes read, so just read until you get less then you asked for |
|||
15 Feb 2015, 22:56 |
|
HaHaAnonymous 16 Feb 2015, 02:17
[ Post removed by author. ]
Last edited by HaHaAnonymous on 28 Feb 2015, 17:55; edited 2 times in total |
|||
16 Feb 2015, 02:17 |
|
gens 16 Feb 2015, 12:48
HaHaAnonymous wrote:
if you request 10 bytes and there is 100 in the stdin buffer, you will get 10 bytes and a 10 in eax |
|||
16 Feb 2015, 12:48 |
|
HaHaAnonymous 16 Feb 2015, 23:08
[ Post removed by author. ]
Last edited by HaHaAnonymous on 28 Feb 2015, 17:55; edited 1 time in total |
|||
16 Feb 2015, 23:08 |
|
Gunner 17 Feb 2015, 00:57
Here is a tutorial on how to deal with this, it is with NASM but easy enough to convert www.dreamincode.net/forums/topic/286248-nasm-linux-terminal-inputoutput-wint-80h/
_________________ ~Rob (Gunner) Forum Spam List Checker Window Error Lookup Tool and MORE! |
|||
17 Feb 2015, 00:57 |
|
system error 17 Feb 2015, 07:02
I am not sure if this is related, but EOL character eats up 1 byte from the total. For a reserved 10 chars, only 9 bytes are good. The other 1 is goes to EOL (0ah, enter key). I always reserve one byte for EOL.
|
|||
17 Feb 2015, 07:02 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.