Category : BASIC Source Code
Archive   : QBFAQR01.ZIP
Filename : DISCTRLC.BAS
'Purpose : To toggle the switching of the use of the CTRL-C, CTRL-Break key
'Input : Sw% = 0 (false) to turn off CTRL-Break, Sw <> 0 (true) turns it on
'Returns : none
DEF SEG = 0
IF DimFlg = 0 THEN
DimFlg = -1
DIM OldSeg%(4)
FOR I = &H6C TO &H6F
OldSeg%(I - &H6C) = PEEK(I)
NEXT I
END IF
IF Sw% = 0 THEN
POKE &H6C, &H53
POKE &H6D, &HFF
POKE &H6E, &H0
POKE &H6F, &HF0
ELSE
' to reset:
FOR I = &H6C TO &H6F
POKE I, OldSeg%(I - &H6C)
NEXT
END IF
DEF SEG
END SUB
Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!
This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.
But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/