home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Elysian Archive
/
AmigaElysianArchive.iso
/
comm
/
foyers15.lha
/
FoyerSelect.doc
< prev
next >
Wrap
Text File
|
1993-05-29
|
5KB
|
152 lines
/**************************************************************************
* *
* FoyerSelect All parts (c) Copyright 1993 by Michael R. Mossman. *
* Released for private, non-commercial use. *
* *
* Compiled with SAS 6.20. *
* *
* *
**************************************************************************/
What is It ?
FoyerSelect is a program designed to launch other serial device type
programs from a FIDO frontend or a BBS program. With a FIDO
frontend you can offer your users several BBS programs or my
program "SerServer" for DOS type things for your self (the Sysop).
FoyerSelect does not offer any password protection like "Getty" or
"Login", but for BBS programs this is not needed.
How To Run It !
FoyerSelect requires two files and if you like three;
1) FoyerSelect -> the executable (mandatory)
2) FoyerSelect.cfg -> the configuration file (mandatory)
3) FoyerSelect.txt -> text file to user on entry
FoyerSelect.cfg and FoyerSelect.txt can be in the current directory or
in the "S:" directory.
FoyerSelect can take several switches or none, if you wish to accept
the defaults. This is the structure of FoyerSelect's command line:
FoyerSelect serial.device unit_number remain connect_baud_rate
Serial.device can be any type of serial driver out there...eg.
siosbx.device
serial.device (default)
newser.device
modem0.device
Unit_number will be the unit number of the port on the card that you
are using. If the builtin serial.device is used then this defaults
to unit 0.
Remain tells FoyerSelect if after the user goes into on application
if they can drop back to FoyerSelect and make another selection or if
FoyerSelect is to return them to the program that called FoyerSelect
( eg. - the frontend). If you are running a BBS you might not want
the user to be able to make another selection if they ran out of time.
They probably would be then dropped by the frontend. The default is
"1" or allow the user to make another menu selection.
Connect_baud_rate is the baud rate that the modem says that it connected
at....eg. "Connect 2400". Some frontends and BBS's will allow you
to call FoyerSelect with variable arguments. You can then pass along
this argument to the programs that FoyerSelect calls with the "%b"
argument.
eg. Trapdoor -> FoyerSelect siosbx.device 1 0 %B
Welmat -> FoyerSelect newser.device 0 1 %d
FoyerSelect.cfg
This is the configuration file and must follow an exact format.
-----------------------------------CUT HERE--------------------------------
Falcon_BBS execute mail:falcon
SerServer bbs:serserver siosbx.device 0 %b
-----------------------------------CUT HERE--------------------------------
There are no blank lines in the file at the beginning or end!!! Extra
line feeds will be taken as menu items to the program. In the file
above, there are only two line feeds. The first menu item (Falcon_BBS)
starts at the very beginning of the line (no spaces) and the menu item
can not have spaces in it (the reason for the under score rather then
a space). The next thing is the path and executable name. This is
seperated from the menu item label by a space. Next can come five
options or arguments to the called program. Each of these are seperated
by spaces. You will notice that SerServer menu item has a "%b" argument
that will call SerServer with the connected baud rate. The above
configuration file will give you the following look:
-----------------------------------CUT HERE-------------------------------
FoyerSelect Version 1.5. Copyright (c) 1993 by Michael R. Mossman
Please Make Your Selection :
0 Terminate & Exit
1 Falcon_BBS
2 SerServer
-----------------------------------CUT HERE-------------------------------
You will also notice that FoyerSelect can also call script files. The above
script configures Falcon BBS before it is called.
FoyerSelect.txt
This is a text file that is displayed to the user between the Copyright
notice and the "Please Make Your Selection :" line. It can be anything
that you wish to tell them and is a straight Amiga DOS text file as
generated with "Ed".
Bugs
None known at this time.
Copyright etc.
This code is solely base on my own code and nothing was used from "Login"
or "Getty". I do admit that both of these programs gave me ideas. The
personal need was also there!!
I (Mike Mossman) can be contacted via FIDO at 1:255/19.
"No man is an island onto himself."
Version 1.5 - Cleared the serial port buffer before asking for input
from the user. Noise or garbage that was in the buffer
from the frontend was being taken by FoyerSelect as
user input.
- Added some feedback to the user when they selected
the "Terminate and Exit" option.