Nmap Development mailing list archives
Re: [PATCH] Flushing console input buffer in nmap_tty.cc (pt2)
From: Kris Katterjohn <katterjohn () gmail com>
Date: Thu, 01 Feb 2007 08:12:57 -0600
Kris Katterjohn wrote:
I have, after a little trouble, been able to install MS VC++ Express on a Window machine, and I tested this out. Like using tcflush() on UNIX, I noticed a (good) difference. I'm going to test it a little more and become more familiar with VC++. As long as everything is still running smoothly, I'm considering merging this to /nmap later tonight or tomorrow. If you object to this, please say so! :) Thanks, Kris Katterjohn
Done ------------------------------------------------------------------------ r4448 | kris | 2007-02-01 08:07:02 -0600 (Thu, 01 Feb 2007) | 1 line Merging my input buffer flushing patch for nmap_tty.cc. This uses tcflush() for UNIX and FlushConsoleInputBuffer() for Win32. The more keys that have been queued up, the more of a difference these functions seem to make. That's not to say that they're slow when there's just one :) I've tested it on Windows XP and my Linux box, and it works great on both. If it actually causes some problems, it won't be hard to reverse. ------------------------------------------------------------------------ Thanks, Kris Katterjohn _______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://SecLists.Org
Current thread:
- [PATCH] Flushing console input buffer in nmap_tty.cc (pt2) Kris Katterjohn (Jan 12)
- Re: [PATCH] Flushing console input buffer in nmap_tty.cc (pt2) Kris Katterjohn (Jan 31)
- Re: [PATCH] Flushing console input buffer in nmap_tty.cc (pt2) Kris Katterjohn (Feb 01)
- Re: [PATCH] Flushing console input buffer in nmap_tty.cc (pt2) Kris Katterjohn (Jan 31)