Nmap Development mailing list archives

Re: [PATCH] Flush console input queue differently in nmap_tty.cc


From: Kris Katterjohn <kjak () ispwest com>
Date: Tue, 22 Aug 2006 21:44:16 -0500

kx wrote:
Will FlushConsoleInputBuffer work?

http://windowssdk.msdn.microsoft.com/en-us/library/ms683147.aspx

Sorry I don't have time to try it myself.

-kx

On 8/22/06, Kris Katterjohn <kjak () ispwest com> wrote:
This uses tcflush() in tty_getchar() under the !WIN32 section and does
the "flush loop" inside tty_getchar() in the WIN32 section. It's
definitely better for the UNIX part, and is probably better for WIN32
because only _getch() is looped instead of the whole tty_getchar().

I tried to find something like tcflush() for Windows, but I didn't see
anything. Maybe kx knows of something.

It's a diff against 4.20ALPHA4.

Thanks,
Kris Katterjohn


I just moved a few weeks ago, so the only Windows machine I had real
access to isn't with me anymore. I can test Linux and some BSD stuff,
but I can't do Windows right now. I was hoping you or somebody else
could test it (or just verify that my _getch() loop will work for right
now and we could use FlushConsoleInputBuffer or whatever else we can
find next version or alpha etc.)


Kris Katterjohn

_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://SecLists.Org


Current thread: