* miscfuncs.cc (low_priority_sleep): New function. Use throughout where code
is supposed to be giving up time slice. * fhandler_console.cc (fhandler_console::read): Switch button 2/3 output escape sequences to be consistent with xterm.
This commit is contained in:
@@ -508,7 +508,7 @@ fhandler_serial::tcflush (int queue)
|
||||
COMSTAT st;
|
||||
if (!PurgeComm (get_handle (), PURGE_RXABORT | PURGE_RXCLEAR))
|
||||
break;
|
||||
Sleep (100);
|
||||
low_priority_sleep (100);
|
||||
if (!ClearCommError (get_handle (), &ev, &st) || !st.cbInQue)
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user