Debug printfs.
* fhandler.cc (fhandler_base::get_readahead): Add debug code. * fhandler_console.cc (fhandler_console::read): Add debug code. * select.cc (pselect): Add debug code. (peek_console): Add debug code.
This commit is contained in:
committed by
Corinna Vinschen
parent
6e70fd315a
commit
9f82de59a0
@@ -925,18 +925,28 @@ peek_console (select_record *me, bool)
|
||||
if (irec.Event.KeyEvent.bKeyDown
|
||||
&& (irec.Event.KeyEvent.uChar.AsciiChar
|
||||
|| fhandler_console::get_nonascii_key (irec, tmpbuf)))
|
||||
return me->read_ready = true;
|
||||
{
|
||||
debug_printf("peeked KEY_EVENT");
|
||||
return me->read_ready = true;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (irec.EventType == MOUSE_EVENT
|
||||
&& fh->mouse_aware (irec.Event.MouseEvent))
|
||||
{
|
||||
debug_printf("peeked MOUSE_EVENT");
|
||||
return me->read_ready = true;
|
||||
}
|
||||
if (irec.EventType == FOCUS_EVENT && fh->focus_aware ())
|
||||
{
|
||||
debug_printf("peeked FOCUS_EVENT");
|
||||
return me->read_ready = true;
|
||||
}
|
||||
}
|
||||
|
||||
/* Read and discard the event */
|
||||
debug_printf("discarded other event");
|
||||
ReadConsoleInput (h, &irec, 1, &events_read);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user