Fix ctrl-break bug.

git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@644 6ac86273-5f31-0410-b378-82cca8765d1b
This commit is contained in:
Bart Oldeman 2003-07-20 17:33:45 +00:00
parent 7e4774bcfa
commit 96c1c46d60
1 changed files with 4 additions and 2 deletions

View File

@ -63,8 +63,10 @@ int control_break(void)
*/
void handle_break(int sft_idx)
{
echo_char_stdin(CTL_C);
CB_FLG &= ~CB_MSK; /* reset the ^Break flag */
if (CB_FLG & CB_MSK) /* Ctrl-Break pressed */
CB_FLG &= ~CB_MSK; /* reset the ^Break flag */
else /* Ctrl-C pressed */
echo_char_stdin(CTL_C);
KbdFlush(sft_idx); /* Er, this is con_flush() */
if (!ErrorMode) /* within int21_handler, InDOS is not incremented */
if (InDOS)