1.4k likes | 1.49k Views
ANSI Detection V2.3 is a tool that determines whether the user's terminal is capable of displaying ANSI and RIPscrip graphics. It provides Boolean results for ANSI and RIP detection tests and stores user responses and settings. This program analyzes user input and sets modes accordingly.
E N D
;*****************************************************************************;*****************************************************************************
;* *
;* *
;* *
;* *
;*****************************************************************************;*****************************************************************************
BOOLEAN hasansi ; Result of ANSI - detection test (true or false)
BOOLEAN hasrip ; Result of ANSI - detection test (RIP & ANSI)
STRING ask ; Constant that contains "want graphics" minus default resp.
STRING default_yes ; Used to store setting from PCBOARD.DAT for the default
STRING cr_lf ; Constant used instead of chr(13)+chr(10)
BOOLEAN compatible ; Used to determine is sysop wants to use compatible mode.
STRING autoansr ; Used to skip graphics question if graphics detected
STRING rip_detect ; Used to disable RIPscrip checking. For those without RIP.
STRING allow_quick ; Used to enable or disable the "quick" login feature.
STRING RIPVer ; IF RIPscrip, contains the version num. of term software
STRING RIPVen ; If RIPscrip, contains the vender code of term software
temp = "" ; Initialized to non null for WHILE
rip_detect = true ; Assume RIPscrip detection.
allow_quick = "Q" ; Add to the valid entry string
esc = chr(27) ; define the ESC character
if (mid(upper(temp),2,3) = "NOR") then ;Check for RIP
else if (mid(upper(temp),2,3) = "NOQ") then ;Force Welcome screen
else if (mid(upper(temp),2,1) = "C") then ;Compatible mode
else if (mid(upper(temp),2,1) = "A") then ;Force best answer
; /* If the user is connected locally then default autoamtically to ANSI