Category : BASIC Source Code
Archive   : QBFAQR01.ZIP
Filename : ANSIDET.BAS

 
Output of file : ANSIDET.BAS contained in archive : QBFAQR01.ZIP
DEFINT A-Z
DECLARE SUB ansi.det (ansi%)

' ===============================================
' Auto-ANSI Sensor by John Sneeringer, HPS 1992
' ===============================================

SUB ansi.det (ansi%)

PRINT #1, CHR$(27) + "[6n"; ' send code

FOR X = 1 TO 2 ' pause for like 2 seconds
A$ = TIME$
DO: LOOP UNTIL A$ <> TIME$
NEXT X

IF LOC(1) > 1 THEN
IF LEFT$(INPUT$(1, 2), 2) = CHR$(27) + "[" THEN
ansi% = 1
ELSE
ansi% = 0
END IF
END IF
END SUB


  3 Responses to “Category : BASIC Source Code
Archive   : QBFAQR01.ZIP
Filename : ANSIDET.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/