Added CHOICE command and fixed a cursor bug.

svn path=/trunk/; revision=625
This commit is contained in:
Eric Kohl 1999-08-21 21:54:30 +00:00
parent c4385e9139
commit 0b84d00506
6 changed files with 276 additions and 8 deletions

View file

@ -52,6 +52,11 @@ VOID ConInDummy (VOID)
ReadConsoleInput (hInput, &dummy, 1, &dwRead);
}
VOID ConInFlush (VOID)
{
FlushConsoleInputBuffer (GetStdHandle (STD_INPUT_HANDLE));
}
VOID ConInKey (PINPUT_RECORD lpBuffer)
{
@ -232,7 +237,7 @@ VOID SetCursorType (BOOL bInsert, BOOL bVisible)
{
CONSOLE_CURSOR_INFO cci;
cci.dwSize = bInsert ? 10 : 100;
cci.dwSize = bInsert ? 10 : 99;
cci.bVisible = bVisible;
SetConsoleCursorInfo (GetStdHandle (STD_OUTPUT_HANDLE), &cci);