mirror of
https://github.com/FDOS/kernel.git
synced 2025-07-23 05:44:41 +02:00
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:
parent
7e4774bcfa
commit
96c1c46d60
@ -63,8 +63,10 @@ int control_break(void)
|
|||||||
*/
|
*/
|
||||||
void handle_break(int sft_idx)
|
void handle_break(int sft_idx)
|
||||||
{
|
{
|
||||||
echo_char_stdin(CTL_C);
|
if (CB_FLG & CB_MSK) /* Ctrl-Break pressed */
|
||||||
CB_FLG &= ~CB_MSK; /* reset the ^Break flag */
|
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() */
|
KbdFlush(sft_idx); /* Er, this is con_flush() */
|
||||||
if (!ErrorMode) /* within int21_handler, InDOS is not incremented */
|
if (!ErrorMode) /* within int21_handler, InDOS is not incremented */
|
||||||
if (InDOS)
|
if (InDOS)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user