home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.wwiv.com
/
ftp.wwiv.com.zip
/
ftp.wwiv.com
/
pub
/
GENUTIL
/
FKFOS102.ZIP
/
VARIABLE.REF
< prev
Wrap
Text File
|
1994-12-27
|
21KB
|
354 lines
_______________________
VARIABLES AND CONSTANTS
_______________________
The following guide is a quick reference chart to all variables
and constants the FKFOSSIL provides. This reference file is a
trimmed copy of the information found in the FKFOSSIL.DOC file.
CONSTANTS
--------------------------------------------------------------------
fk_StandardInput = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUV'
+'WXYZ1234567890~!@#$%^&*()-+\[]{};:`''".,/<> =_?|'
fk_highBitInput = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUV'
+'WXYZ1234567890~!@#$%^&*()-+\[]{};:`''".,/<> =_?|'
+'ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«'
+'»░▒▓│┤╡╢║╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐'
+'▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■';
fk_FilenameInput = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUV'
+'WXYZ1234567890~!@#$%^&()-_{}.';
fk_FilespecInput = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUV'
+'WXYZ1234567890~!@#$%^&()-_{}.?*';
fk_FilepathInput = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUV'
+'WXYZ1234567890~!@#$%^&()-_{}.?*:\';
fk_NumberInput = '123456790.-+';
fk_DriverVersion = '1.02';
fk_DriverName = 'Forbidden Knights Fossil Driver Unit';
fk_DriverAuthor = 'Tim Strike';
On = True;
Off = False;
FOSSIL INFORMATION
---------------------------------------------------------------------
The Fossil Information Variables contain information on the fossil
driver version and the connection information. Do *NOT* set any of
these variables yourself unless you know what you are doing.
fk_Fossil.Started Boolean True if fk_InitFossil has been
called. If false, the other fossil
dependant routines will not run.
fk_Fossil.Port Longint Current port
fk_Fossil.Baud Longint Current connection BPS rate
fk_Fossil.Locked Longint Current locked BPS rate
fk_Fossil.Carrier Boolean True if there is a modem carrier
fk_Fossil.Driver Str(80) Fossil Driver Name
fk_Fossil.Version Byte Fossil Driver Major Version No.
fk_Fossil.Revision Byte Fossil Driver Minor Revision No.
PROGRAM INFORMATION
---------------------------------------------------------------------
fk_ProgramInfo.Title Str(25) Your Program Title
fk_ProgramInfo.Version Str(8) Program Version
fk_ProgramInfo.Author Str(20) Author Information
fk_ProgramInfo.Other Str(20) Other Information
TASK INFORMATION
---------------------------------------------------------------------
The Task Information variables contain all the information on the
current task type. These variables are automatically tested for when
your program is run, and should *NOT* be changed at all.
fk_Task.System Str(15) Contains name and version of OS;
Supports DOS, Windows, DESQview and
OS/2. All OS's compatible with DOS
will be listed as "DOS".
fk_Task.Tasktype Byte Contains the task type; 0 DOS
1 DESQview
2 OS/2
3 Windows
fk_Task.Window Integer Active window number (DESQview Only)
fk_Task.Share Boolean If SHARE is active (use for file
sharing test -- see the section on
FILE SHARING)
CLIENT INFORMATION
---------------------------------------------------------------------
DS indicates this variable can be retrieved via DOOR.SYS.
DI indicates this variable can be retrieved via DORINFO#.DEF.
MI indicates this is required information and is set through the
fk_InitFossil routine if the doorfiles aren't read.
fk_Client.BBSName Str(35) BBS System Name DI
fk_Client.Calls Longint # of Calls DS
fk_Client.Citystate Str(30) User's City/State DS,DI
fk_Client.Downloads Longint # of Downloads DS
fk_Client.Firstdate Str(8) First Calling Date
fk_Client.Handle Str(35) User's Handle MI,DS,DI
fk_Client.HomePhone Str(15) Home/Voice Phone Number DS
fk_Client.Lastdate Str(8) Last Calling Date DS
fk_Client.Lasttime Str(5) Last Calling Time
fk_Client.Name Str(35) User's Real Name MI,DS,DI
fk_Client.Pagelength Byte Pagelength DS
fk_Client.Password Str(30) User's Password DS
fk_Client.RecordPos Longint Record Position (file) DS
fk_Client.Screentype Byte Screen Mode; 0 TTY MI,DS,DI
1 ANSI
2 AVATAR
fk_Client.Security Longint Security Level DS,DI
fk_Client.SysOpName Str(35) BBS SysOp Name DI
fk_Client.Timeleft Longint Time Remaining (seconds) MI,DS,DI
fk_Client.Uploads Longint # of Uploads DS
fk_Client.WorkPhone Str(15) Work/Data Phone DS
If the information isn't gathered, default (empty/nul) values will be
given for each of the fields.
MUSIC INFORMATION
---------------------------------------------------------------------
fk_Music.Musictype Byte Current Music Type; 6 Staccato
7 Normal
8 Legato
fk_Music.Notelength Byte Note Length (default = 4, Quarter)
fk_Music.Octave Byte Current Octave (default = 4)
fk_Music.Tempo Byte Current Tempo (default = 120)
HOST INFORMATION
---------------------------------------------------------------------
fk_Host.AnsiTimer Word Countdown for Ansi Detection. If
this count down reaches 0 before the
codes are received, the fk_AnsiDetect
routine will return false.
(default = 2500)
fk_Host.Blink Boolean Blinking Attribute. Used by the
colour routines; it is not suggested
that you reset the value of this
variable.
fk_Host.Clock Boolean Decrease Time and Increase Lastkey.
If FALSE, then time will not be
counted (could be used for intensive
procedures -- or during chat or
something similar). It is a lot
better to use fk_Clock to turn the
time on and off, since the fk_Clock
routine will take care of all the
variables that fk_Host.Clock affects.
(default = TRUE)
fk_Host.CurrentInput Str(80) The default output for fk_Readln.
Sets up the string for fk_Readln with
this value -- this value is NOT
written to the screen (you should do
this) but will be used as if the user
had already typed this in.
fk_Host.Error Byte Contains information on the last
run procedure;
0 No Errors
1 Fossil Driver Not Initialized
2 Error Initializing Fossil Driver
9 File Not Found
10 Function Not Compatible with
Users Screen Mode
11 Invalid Call to Function
fk_Host.ExitCode Byte Contains exit code that
fk_DeInitFossil will exit with. If
your program encounters an error (and
you wish to exit with a different
errorlevel) set this variable and
then call fk_DeInitFossil.
(default = 0)
fk_Host.High Boolean High-Bit (bright foreground). Used
by the colour routines; it is not
suggested that you reset the value of
this variable.
fk_Host.HostScreen Boolean Send information to local screen -
If FALSE, no information from any of
the fk_Write[ln] functions will be
sent to the local screen (although
the status bar will still be active)
(default = TRUE)
fk_Host.Hostkey Boolean Get information from local keyboard -
If FALSE, no keys pressed on the
local side will be processed during
any of the fk_Read[ln] functions.
(default = TRUE)
fk_Host.Inactivity Word Count down in seconds for user
Inactivity. If the user does not hit
a key for this number of seconds,
the program will automatically end.
(default = 180 seconds, 3 minutes)
fk_Host.Lastbg Byte Last background attribute
fk_Host.Lastfg Byte Last foreground attribute
fk_Host.Mono Boolean Monochrome Monitor (local)
** All three variables are used by
the colour/write routines. It is not
suggested that they be changed and
should be used for reference only
(otherwise you create the risk of
messing up your program).
fk_Host.Multinode Boolean Stores whether the system is running
in a multinode environment. If TRUE,
the value of fk_Host.Node will be
displayed on the status line.
fk_Host.Node Byte Stores the node number value. This
will be used when reading/writing door
drop files, and also displayed on the
status line if the fk_Host.Multinode
is TRUE.
(default = 1)
fk_Host.OutputChar Char Send this character in the fk_Readln
function. Since the fk_Readln reads
in characters and displays them, this
function can be used to override the
character returned. If it's set to
CHR(0) then whatever the user types
will be returned. However, if it's
set to say, CHR(178) then the ▓
character will be sent, regardless of
what the user typed. This is a good
function for password input or other
sensitive items. ALWAYS MAKE SURE
THAT YOU RESET THE VALUE TO CHR(0)!
fk_Host.Outputlines Word The number of output lines sent to
the user. This is handy if you want
to have screen pauses -- Just check
this value, if it's greater then the
screen length, pause for a key and
reset this variable. In some areas,
after you clear a screen or any other
sort of "pause", you may wish to
reset the value.
fk_Host.RemoteScreen Boolean Send information to remote screen -
If FALSE, no information from any of
the fk_Write[ln] functions will be
sent to the remote screen (although
the status bar will still be active)
(default = TRUE)
fk_Host.Remotekey Boolean Get information from remote buffer -
If FALSE, no keys pressed on the
remote side will be processed during
any of the fk_Read[ln] functions.
(default = TRUE)
fk_Host.Sound Boolean Local Sound Toggle - if in Local mode
the default is TRUE, otherwise the
default is FALSE. To hear any Ansi
Music or CHR(7) Beeps locally, this
variable needs to be TRUE.
fk_Host.StatuslineBuf Byte The number of blank lines setup
before the actual status line.
(default = 1)
fk_Host.StatuslinePos Byte The position of the status line.
(default = 25)
0 will disable the status line
1-10 will place the active window
below the status line position.
11-25 will place the active window
above the status line position.
fk_Host.StrictColour Boolean If TRUE, then if the user is in TTY
mode any colour changes will be
ignored. If FALSE and the user is in
TTY mode, all changes of colour will
be displayed as normal locally.
(default = TRUE)
fk_Host.Timeslice Boolean If TRUE, FKFOSSIL will attempt to
give up unused timeslices to the
OS/Multitasker. (default = TRUE)
fk_Host.Titleline Boolean If TRUE and the status line position
is 25, then a second title line will
be added at line 24. On this line,
the information in the fk_ProgramInfo
variables will be displayed.
(default = FALSE)
fk_Host.ValidInput String Determines the allowable characters
for the fk_Readln function. If you
set this string to 'ABC' then the
fk_Readln function will only accept
an A, B or C. Several constants have
been provided so that you don't need
to type in all the characters all the
time. (default = fk_StandardInput)
fk_Host.WaitforChar Boolean If TRUE, the fk_Read function will
wait for a character, otherwise it
won't. The MUCH better alternative
to this variable is the function
fk_NoWaitRead since you won't need to
remember to reset the variable.
(default = TRUE)
fk_Host.WarningBell Boolean TRUE if warning bell (inactivity
timeout) has been sent to the user.
fk_Host.WarningTime Boolean TRUE if timeleft warning has been
sent to the user.
** It is not suggested that the
warning variables be reset, unless
there is a specific need. FKFOSSIL
will automatically handle the warning
variables itself.
COLOUR INFORMATION
---------------------------------------------------------------------
fk_Host.Colour.Baud Baud Rate (default = 9,1)
fk_Host.Colour.Handle Handle (default = 11,1)
fk_Host.Colour.InfoDesc Descriptors (default = 9,1)
fk_Host.Colour.Lastkey Lastkey Timer (default = 11,1)
fk_Host.Colour.Multitasker Multitasker Type (default = 9,1)
fk_Host.Colour.Name Real Name (default = 14,1)
fk_Host.Colour.Node Node Marker (default = 9,1)
fk_Host.Colour.NoTimeleft No User Time Left (default = 12,1)
fk_Host.Colour.Screentype Emulation Mode (default = 9,1)
fk_Host.Colour.Statusline Empty Space (default = 1,1)
fk_Host.Colour.Timeleft User Time Left (default = 11,1)
fk_Host.Colour.Titleline Program Info (default = 11,1)
fk_Host.Colour.Warning Warning Sent (default = 12,1,B)
For monochrome monitors the attributes are all set to black on white
(reverse video) and should easily be seen. Let me know, I don't have
a mono monitor. ;) For colour monitors, the default is listed in the
righthand column (foreground, background, blink).