Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions vt/pdckbd.c
Original file line number Diff line number Diff line change
Expand Up @@ -307,16 +307,15 @@ int PDC_get_key( void)
}
if( check_key( &rval))
{
int c[MAX_COUNT], modifiers = 0;
int c[MAX_COUNT] = { 0 }, modifiers = 0;

#ifdef USE_CONIO
if( rval == 0 || rval == 224)
{
int key2;

#ifdef __DJGPP__ /* DJGPP returns kbhit() = 1 only once for */
key2 = dmc_getch( ); /* escape sequences, not twice as other */
#else /* compilers for MS-DOS do */
#ifdef __DJGPP__ /* DJGPP returns kbhit() = 1 only once for */
int key2 = dmc_getch( ); /* escape sequences, not twice as other */
#else /* compilers for MS-DOS do */
int key2 = 0;
while( !check_key( &key2))
;
#endif
Expand Down