Category : BASIC Source Code
Archive   : DNALIB40.ZIP
Filename : LOCKS.BAS

 
Output of file : LOCKS.BAS contained in archive : DNALIB40.ZIP
DECLARE SUB CalcByte(Attr%,LowByte%,HiByte%)

SUB LockStatus(Row%,Col%,BarAttr%,StatusAttr%)PUBLIC

CalcByte BarAttr%,BarFG%,BarBG%
CalcByte StatusAttr%,StFG%,StBG%

REG 1,&h1200
CALL INTERRUPT &h16
b=ABS(REG(1))

IF (b and 32) = 32 THEN NumLock% = 1 ELSE NumLock% = 0
IF (b and 64) = 64 THEN CapsLock% = 1 ELSE CapsLock% = 0

LOCATE Row%,Col%,0
COLOR BarFG%,BarBG%
PRINT SPACE$(10);
LOCATE Row%,Col%,0
COLOR StFG%,StBG%
IF CapsLock% THEN PRINT " CAPS ";
LOCATE Row%,Col% + 5,0
IF NumLock% THEN PRINT " NUM ";

END SUB



  3 Responses to “Category : BASIC Source Code
Archive   : DNALIB40.ZIP
Filename : LOCKS.BAS

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. 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/