home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload / ShartewareOverload.cdr / comm / zcme1761.zip / PHOMAST.T < prev    next >
Text File  |  1990-05-19  |  51KB  |  938 lines

  1.  
  2.     -Revised  to YAM/ZComm Version 17.47+            MRA mods 1 Jan 90
  3.                                                      Release 8.2 Master
  4.  
  5.  
  6.     This starter script was written for your convenience by Michael Ash 
  7.                       CompuServe Account: 71350,3327
  8.                                 PHOMAST5.T
  9.  
  10.     NOTICE --> for a FAST START please take a minute and follow the
  11.     instruction below...  This script is completely modular for your
  12.     convenience, and includes a simple HOST mode example.
  13.  
  14.     Use an ASCII editor like TED.COM, WordPerfect in DOS Text mode or 
  15.     WordStar in non-document mode to check the items below to match 
  16.     your particular computer setup.  To save you time just SEARCH for 
  17.     sections marked with the symbol <*>
  18.  
  19.         1.  Under SETUP, select port 1 or 2 by un-commenting your choice.
  20.                   (Note:  "un-commenting" is explained below.)
  21.  
  22.         2.  Under COLORS, select the color string you prefer.
  23.  
  24.         3.  Under MODEM SETUP, select the proper modem setup string.
  25.  
  26.         4.  Under Environment, select PULSE or TONE dial.
  27.  
  28.         5.  See HELPFILE section if you are running older versions of ZCOMM.
  29.  
  30.     Be sure to rename THIS file PHODIR.T for use with YAM or ZCOMM.  Actually 
  31.     you can name it what you like as long as you use the 'set phones' command
  32.     (shown below) to tell YAM/Zcomm where to find this phones file.  For those 
  33.     of you that haven't heard of YAM, it's the short name for Professional-YAM, 
  34.     a commercial package that includes all of ZComm (its shareware subset) plus 
  35.     advanced capabilities for professional telecommunications requirements.
  36.     
  37.     To use this environment you only need YAM or ZComm, the main communication
  38.     program, and a phones file (like this) to tell it how to act with your 
  39.     equipment and taste.  Set up a subdirectory called C:\COMM, place YAM or 
  40.     ZComm with this file (and helpfiles if you use them) then path it in your
  41.     AUTOEXEC.BAT file.  After a few adjustments of this file you're ready to 
  42.     go!  In older version of PHOMAST I used to setup ZComm in \zcomm and YAM
  43.     in \yam.  To make it simpler to use this script with either program I
  44.     now have it setup to run under C:\COMM  -=-  Feel free to change this
  45.     once you understand how it works to a subdirectory of your choice...
  46.  
  47.     The following may be added to your autoexec.bat file to give color to 
  48.     your 'flash-up' help processor... comments here in ()
  49.                 
  50.             set PHONES=c:\comm\phodir.t    (tells program where to find setup)
  51.             set NORMATTR=2                 (sets normal to green) 
  52.             set REVATTR=3                  (sets reverse to blue) 
  53.             set UNDLATTR=10                (makes underline brt green) 
  54.                 
  55.     This script expects to find YAM/ZCOMM and PHODIR.T in C:\COMM and a
  56.     C:\COMM\TEMP temporary subdirectory...
  57.         
  58.     Note a ":" before line makes it a comment... this is the method
  59.     to activate OR deactivate lines of code.  To turn something OFF
  60.     just put a ":" in front of the line.  Words ending with a ":" starting
  61.     in column #1 are considered to be labels...
  62.  
  63.     To activate menu status or make a call from DOS command line enter:
  64.              zcomm gosub menu  <-- or -->  zcomm call cis
  65.     This can be either via a batch file or directly as a DOS command... Note
  66.     you can call a phones file anywhere using: zcomm call label.[path]file
  67.  
  68.     NOTICE that Olde Guard and CIS auto-log demos are set for local San Antonio
  69.     numbers... These numbers may differ in your area.  Olde Guard is an example
  70.     of an auto-log to a TComm(tm) Bulletin Board System.
  71.     
  72.     A word about the types of displays you can have.  Think about YAM/ZComm as
  73.     being displayed on four monitors on your desk.  If this were possible you'd
  74.     see the following from left to right on the four different screens:
  75.     
  76.         |Help|   |Command Line|   |OnLine Mode|   |Circular Buffer|
  77.            <-- move left with F1   -=-    F2 moves you right -->
  78.            
  79.     Now realizing you have only one screen, the way you switch between the 
  80.     four possible displays is using the F1 and F2 function keys.  Picture
  81.     F1 as moving you to a screen to the left and F2 moving you to a screen
  82.     to the right.  If you were OnLine, hitting F1 once would put you into 
  83.     command mode.  Hit F1 again and you are in the flashup help processor.
  84.     If you hit F2 from OnLine mode (called terminal mode) you move into
  85.     the circular buffer (which you can access using the PgUp, PgDown, Home
  86.     and End as well).  Hitting F1 puts you back OnLine, and F1 again you're
  87.     back to the command line...
  88.     
  89.     Some useful shortcut keys:  Alt-1 is DOS shell, Alt-2 is YAM Command line.
  90.     When writing script files the '!' is use for DOS shell and '@' used
  91.     to execute a YAM/ZComm command... (i.e. !chkdsk will run Check Disk)
  92.     
  93.     That should get you going!  Once you are up and running look at the
  94.     other commented features that will give you even more POWER...      
  95.  
  96.                      ----------------------------
  97.  
  98.     I have spent many hours on this beginner script to make ZCOMM or YAM
  99.     useful to the novice user right out of the starting block.  If this
  100.     has helped you get a better grasp of the package I would like to hear
  101.     from you.  If you find it truly useful, and you think my time is worth 
  102.     something, please send me a dollar and I'll go out for some coffee.  
  103.  
  104.     What ever you do, I would appreciate a postcard, just to get an idea
  105.     of who this script finally reached...
  106.  
  107.                                     Michael Ash
  108.                                     3766 Tupelo Ln #2904
  109.                                     San Antonio, TX 78229
  110.  
  111.                                                      Happy Computing... 
  112.  
  113.                      ----------------------------
  114.  
  115.  <*>        >>>  This SETUP script is where it all begins <<<
  116.  
  117. setup   port 1               :designate COM1 
  118.         : port 2             :designate COM2 (note ':' turns this OFF)
  119.         ena -d               :suppress the Carrier Lost msg during setup
  120.         : ena -D             :establishes a 2sec timing loop for line hits 
  121.                              :(use for call waiting where you can't disable)
  122.         : pa4000             :use for clones running 8 MHz and above...
  123.         pd1                  :turn on time stamping
  124.         pi10                 :set redial for 10 seconds...
  125.         pt4                  :set ascii throttle to 20 char/sec (lower=faster)
  126.         pv-1                 :Verbose OFF (-1 shows none; 50 shows all)
  127.         pT5                  :set histfile minimum command size = 5 characters
  128.         : p-1                  :for those using MKS ToolKit UNIX Shell
  129.                             
  130.         display bell=visual        :turns off bell sound
  131.  
  132. ::        The option below allows you to hit an up arrow key to use past 
  133. ::        commands by setting up a history file.  Since all keystrokes are
  134. ::        recorded, (including passwords) you may want to have your calling
  135. ::        batch file delete it or use a RAMDISK when active for security.
  136. ::        Be sure to remove the leading ':' if you want to use this...
  137.  
  138.           : history c:\histfile         ::here setup to put in C:\histfile
  139.  
  140.  
  141. :: <*>                 --- Set up DISPLAY COLORS below ---
  142.  
  143.         ::  if dc means -- If Display Color... then use these settings
  144.         ::  n=text, r=reverse, u=underline, s=status line, *=message, 
  145.         ::  @=file indicator (normally binking i.e. files open) 
  146.         ::  For example: 2=green, 3=blue, 10=bright green etc...
  147.  
  148.         if dc pn7 pr7 pu7 ps7 p*7 p@7         :sets up default white on black
  149.         : if dc pn7 pr112 pu15 ps7 p*7 p@7    :alternate for monochrome
  150.         : if dc pn15 pr15 pu15 ps15 p*15 p@15 :setup for composite monitors
  151.         : if dc pn3  pr10 pu10 ps14 p*10 p@10 :if RGB, a color monitor string
  152.         : if dc pn31 pr30 pu15 ps14 p*15 p@79  display warpdrive  :gas plasma
  153.         : if dc pn3  pr30 pu15 ps14 p*12 p@79  display warpdrive  :alternate1
  154.         : if dc pn2  pr10 pu6  ps3  p*3  p@3   display warpdrive  :alternate2
  155.  
  156.         :          >>> The line BELOW sets up an EGA/VGA monitor  <<<
  157.         
  158.         : if dc pn2 pr30 pu15 ps3 p*3 p@79   display warpdrive
  159.  
  160.  
  161. ::                             --------------------        
  162.  
  163.         : if c goto online          :if carrier detected skip modem setup
  164.  
  165. ::    Modems using stored profiles will have to initialize and store it
  166. ::    before this will function correctly...(i.e. Hayes 2400)
  167.  
  168. ::    The above line allows you to check the carrier status when YAM/ZCOMM is
  169. ::    loaded.  This means you can take full advantage of the eXit to DOS 
  170. ::    function.  Anytime you are on-line you can get to the command line by
  171. ::    hitting F1 then enter 'X'.  What this does is unload the communication
  172. ::    program but leaves the modem and serial port active.  Now you have full
  173. ::    access to DOS and can return on-line (as long as the host doesn't time
  174. ::    out).  Once through with DOS, re-load YAM/ZCOMM like you did initially
  175. ::    and WHAM -- you're back on-line as if you had never left...  To utilize
  176. ::    uncomment this line and one a couple of screen down stating: "if c..."
  177.  
  178. ::                         --- Check Modem Status ---
  179.  
  180.       cls;  lput "\r\n\n\n\t\t\t>>> Modem setup in progress <<<\r\n\n"
  181.         
  182. ::    Below is an example of how to use color and graphics (off now). Remember
  183. ::    if you want to use graphics you MUST have a line in your 'config.sys' 
  184. ::    file telling DOS where ANSI.SYS driver is located.  If ANSI.SYS is copied
  185. ::    into C:\ you could use the line: 'device=c:\ansi.sys' in your config.sys
  186. ::    file...
  187.  
  188.         : echo "\n\n\n\t\t    ╓──────────────────────────────────────╖"
  189.         : echo "\t\t    ║ \E[44;1;33m   >>> Modem setup in progress <<<  \E[0m ║"
  190.         : echo "\t\t    ╙──────────────────────────────────────╜\n"
  191.         
  192.         sp 1200                           : Initially set up speed at 1200 baud
  193.         pat 9 K\r\n                       : Check for OK from modem
  194. rc:     put "ATZ\r"; wait -f3             : ATZ then wait up to 3 sec for OK
  195.         if 9 goto modset                  : If Modem on (OK) skip error msg
  196.         echo "\n\t\t  Please turn your modem ON, or check port setup..."
  197.         sleep 20                          : You get 2 seconds to turn it on!
  198.         cls; goback rc                    : Check modem again...
  199.  
  200. :: <*>     --- Some of the common MODEM SETUP commands definitions ---
  201.  
  202. ::  &C1=Data Carrier Detect  &D2=hang up with change in DTR  &J=jack type
  203. ::  E1=modem echos commands back to terminal  V1=Word result codes
  204. ::  &S1=run RS232C spec  &W=Save config to nonvolatile memory  L=speaker low
  205.  
  206. ::  X4=Detect dial tones and busy signals; enable extended result codes.
  207. ::     With this activated (default for most modems) status messages are
  208. ::     sent to the screen about modem activity.  English words instead of 
  209. ::     number codes are displayed on the screen. 
  210.  
  211. ::  S0=answer rings  S6=dial tone wait  S7= wait for connect  S8=pause for ","
  212. ::  S9=Carrier det response  S10=delay carrier lost and hangup  S11=dial speed
  213.  
  214. ::  Remember if your modem doesn't hang up correctly try &D2 in the string.
  215.  
  216. modset:
  217.         putw "AT E1 V1 X1 S0=0 S7=60 S8=2 S11=50 \r" :Normal 1200 baud setup
  218.         
  219.         :       -- Line below is an alternate 1200 baud setup command --
  220.         :  putw "AT E1 Q0 S0=0 S6=3 S7=40 S8=2 S10=10 S11=50 V1\r" ; wait -f2
  221.         
  222.         :  putw "AT E1 L X4 V1 &C1 &D2 &J \r"         :Hayes/Zenith 2400 baud
  223.         :  putw "AT S0=0 S6=3 S7=60 S10=10 S11=50\r"  :second line
  224.         
  225.         :  putw "ATZ0\r"    : Recalls Hayes Profile 0 if already defined
  226.  
  227.         :  put "AT E0 V1 X4 &D2 \r"           :for everex 2400 baud
  228.  
  229. ::         -- A suggest ZOOM 2400 baud modem setup is listed below --
  230.  
  231.         :  handshake both        : Handshakes both CTS or XOff
  232.         :  putw "AT &C &D2 &L0 C1 X5 S9=5 S10=10 S11=40 S25=0 +Z0=2 +Z3=45\r"
  233.         :  S25 DTR timing to 0 seconds
  234.         :  wait -f1              : Wait 1 second and let modem catch up...
  235.  
  236.  
  237.  
  238. :: <*>               --- Setup Environment Variables ---
  239.  
  240. online:
  241.         : set mprefix ATDP      : Pulse Dial (commented out here)
  242.         set mprefix ATDT        : Tone Dial  (now set to be active...)
  243.         : set mprefix ATDP1170, : Pulse Dial call waiting defeat (Texas)
  244.         : set mprefix ATDT*70,  : Tone Dial call waiting defeat (Texas)
  245.  
  246.         set l "1"; set m "1"    
  247. ::    Above Sets long distance carriers.  You have two choices 'l' & 'm' you
  248. ::    could use for your long distance service, for example MCI, Sprint).  
  249. ::    Starting a phone# with %m will place the call using your pre-defined 
  250. ::    long distance service account... (here they are both set to dial 1)
  251.  
  252.         set answerback "\r\nYour NAME and CITY\r\n\21"
  253.         set disks "abcde"         :set up active disks (you can restrict)
  254.  
  255. ::    Note the prompts below can be anything you wish...
  256.  
  257.         set mprompt "\r\E[1m(F9=Menu) %drive:\L%pwd-> \E[m"   :Help prompt
  258.         : set mprompt "\r\E[1m%drive:\L%pwd->\E[m "    :Normal path prompt
  259.         set hprompt "\r\E[1m%drive:\L%pwd\U [HOST]->\E[m " :HOST mode prompt
  260.  
  261.  
  262. :: <*>                  -- HELPFILE Defined Below --
  263.  
  264. ::      Notice Flashup help processor called with F10 as defined in key setup
  265. ::      or when F1 hit at command line.  The command @! breaks down as follows,
  266. ::      the @ identifies a YAM command and ! means shell to DOS.  Below it runs
  267. ::      a DOS program call yhp to get YAM-Help.  
  268.  
  269.         : set helpfile "@!yhp \comm\zmanh.hlp zmain" :Help Processor for ZComm 
  270.         : set helpfile "@!yhp \comm\umanh.hlp main"  :Help Processor for YAM
  271. ::      ^-- Be sure to comment in the correct choice!
  272.         
  273.         : set helpfile "@yhp \comm\zmanh.hlp"      :(older ZCOMM/YAM call)
  274.         
  275.  
  276. ::                     -- Optional setup statements --
  277.  
  278.         : set calllog c:/YAM/calllog     : Setup call log (YAM only)
  279.  
  280.         set fleft  "@mput \b"        : Makes left arrow destructive bksp
  281.         set fright "@mput \40"       : Makes right arrow a right space
  282.  
  283.         set adlopts r                : Makes Auto ZModem use crash recovery 
  284.         set quitcmd \003\336off\r    : ALT Q logs off automatically after d/l
  285.         
  286.         : set dirrx c:/comm/temp       : Sets up default for downloaded files
  287.         
  288.         set tmp c:/comm/temp         : Both tmp and lib are shortcut paths
  289.         : set lib c:/arc_stor        : you can use in your script. For example
  290.                                      : if later you add the line 'cd %tmp' it
  291.                                      : will put you in the c:\comm\temp 
  292.                                      : subdirectory...
  293.                                      
  294.  
  295. ::                       -- Define Function Keys --
  296.  
  297. key:    cls         :Notice how a label starts in Col 1 and ends in a ":"
  298.         reskeys     :reset function keys  
  299.                 
  300. ::    Explained below is the function key define command 'set'.  Note below
  301. ::    the command format sets a FUNCTION KEY to a specific task:
  302.         
  303.  set f3 
  304. @accept s1 "Enter name of Capture File: " ; create -s+ %s1 ; t
  305.  
  306.       :  Notice that I used a special case of the 'set' command where the
  307.       :  key definition actually appears on the next line starting in col #1.
  308.       :  The reason for this is normally function key commands are in
  309.       :  quotes, yet here I wanted a quoted string inside the command.  To
  310.       :  avoid having quotes within quotes, there is a special version of the
  311.       :  set command that accepts the next line starting in column 1, as an
  312.       :  implied command.  This means you don't need quotes around it...
  313.         
  314.       :  To explain how the command works remember anything beginning with 
  315.       :  an "@" sign is a YAM/ZCOMM command (a @! allows you to execute a DOS
  316.       :  program).  Let look at this command defining f3 step by step...
  317.       :  The command "set" tells the program to set the function key 
  318.       :  (this case F3) to the following string:
  319.         
  320.       :        @accept s1 Enter name of Capture File: ;create -s+ %s1 ; t  
  321.         
  322.       :  You could have used an escape sequence \40 to define a space
  323.       :  in the string but only necessary in single line format.  This will
  324.       :  make the prompt --> Enter name of Capture File: <--  Now the "accept"
  325.       :  command assigns anything you type in response to this prompt and
  326.       :  stores in a variable s1.  Remember ";" is just a way to
  327.       :  separate multiple commands on each line, so you see when we come to 
  328.       :  next command "create", it causes a capture file to be opened
  329.       :  using the name you have entered.  The modifiers -s+ means, strip
  330.       :  off control characters (-s) and append to the file (+) if it already
  331.       :  exists.  Notice the argument %s1 will insert the file name
  332.       :  added after the prompt (stored in s1), and  ;t just puts YAM/
  333.       :  ZCOMM back into terminal mode (ie connected to the other computer)
  334.       :  instead of leaving you in command mode.  
  335.         
  336.       :  You see the PLUS of YAM/ZCOMM is that you can make things look
  337.       :  anyway you want.  You can set 38 function keys ( remember that
  338.       :  F1 moves you from circular buffer to terminal mode to command mode
  339.       :  and F2 moves you in the opposite direction).  YAM/ZCOMM has THREE 
  340.       :  displays (command line, terminal mode, and circular buffer) yet this 
  341.       :  is a FAST way to move between them...
  342.  
  343.       :  Now set a series of function keys to activate specific commands...
  344.  
  345. ::                   --- NORMAL Function Key Definitions ---
  346.         
  347.  set f4 
  348. @accept s1 "Send ASCII Msg named: " f -p %s1    : send ASCII text or upload
  349.                                                 : a message...
  350.  set f5 
  351. @accept s1 "Send file using Kermit called: " kermit sb %s1    : send Kermit
  352.  
  353.  set f6 
  354. @accept s1 "Send file using ZModem called: " sz -Z %s1  
  355.     : above sends file with ZModem Run Length Encoding (RLE) using '-Z'
  356.  
  357.  set f7 
  358. @accept s1 "Receive file using CRCXModem called: " rc %s1   :receive CRCXmodem
  359.  
  360.  set f8  
  361. @accept s1 "Send file CRCXModem called: " sx %s1            :send CRC Xmodem
  362.  
  363.  set f9  "@gosub menu"     :Call Quick Reference using F9
  364.  set fc1 "@gosub menu"     :Call Quick Reference using Ctrl-F1 as well
  365.  :  set f9 "@gosub fkeys"  : Call ANSI function key menu (commented out here...)
  366.  set f10 "@help"   : Call help processor (newer YAM/ZComm versions just hit F1)
  367.  
  368. ::                 --- SHIFTED Function Key Definitions ---
  369.         
  370.  set fs3 "@gosub color"
  371.  set fs4 "@echo working...;  gosub tlearn"
  372.  set fs5                                         : check phone dir entries
  373. @accept s5 "Search for title name: "; find \n%s5 %phones   
  374.  
  375.  set fs6  
  376. @echo "\t\t\t Shift F6 not defined -- Hit F9"
  377.  
  378.  set fs9 "@!ted"    : @! allows for running DOS program (this case TED)
  379.  
  380. ::                  --- ALT-ed Function Key Definitions ---
  381.  
  382.  set fa1 "@call -100 oldg"                   : Examples of key assign
  383.  set fa2 "@call -100 oldg24"                 : note "@call -100" will
  384.  set fa3 "@write; close"                     : call number up to 100
  385.  set fa4 "@kill; call -100 CIS12"            : times if busy.
  386.  set fa5 "@kill; call -100 pcmag"            : kill clears buffer...
  387.  set fa6 "@kill; bye; gosub host"            : Call for HOST mode
  388.  set fa7 "\r \r\t\t\t\t\t <your name here>\r\rl\r"  : When on-line, Alt-7 signs 
  389.                                              : your name in a message...
  390.                                              
  391.  set fa8 "@!ted c:\comm\phodir.t"            : Calls PC Mag TinyEditor and 
  392.                                              : loads the phodir.t file (ALT-F8)
  393.  set fa9 "@!ted c:\comm\phodir.t"            : Calls PC Mag TinyEditor (ALT-F9)
  394.                                              : ...you can even have 2 the same!
  395.  : set fa9 "@!q c:\comm\phodir.t"              : example using QEdit
  396.  
  397.     
  398. ::  This is an opening msg for new ZComm users and can be commented
  399. ::  out if you wish to skip the opening message.
  400.  
  401.  
  402.      echo "\n\n\t\t\t -=* Press F9 for Quick Reference *=- \n\n\n\n\n\n\n\n"
  403.  
  404. ::                  Second part of testing for on-line conditions
  405. ::                                 (Optional)
  406.  
  407.      : if !c return             :if no carrier return, else go online
  408.      : echo "\t\t    System still on-line with remote server..."
  409.      : putw "\r" ; t            :hit return and return to terminal mode              
  410.  
  411.      
  412.      return                     : Returns system back to terminal mode
  413.  
  414.  
  415. :===========================================================================:
  416.  
  417. menu  cls                    :On screen Menu Generation...
  418.  
  419.   echo "                  >>>  YAM/ZComm Function Key Menu <<<                          "
  420.   echo "                                                                                "
  421.   echo "  Alt-N  EMERGENCY EXIT, 'Nuke It' to get out of trouble/escape a command       "
  422.   echo "                                                                                "
  423.   echo "  F1  Exit Circular Buffer            F2  Enter Circular Buffer                 "
  424.   echo "  F3  OPEN Capture file               F4  Send ASCII Text                       "
  425.   echo "  F5  Send Kermit Upload              F6  Send Zmodem Upload    <<BEST>>        "
  426.   echo "  F7  Receive CrcXmodem Download      F8  Send CrcXmodem Upload                 " 
  427.   echo "  F9  Press for THIS HELP SCREEN      F10  Flashup Help Processor               "
  428.   echo "  Alt-1  Get DOS Command prompt       Alt-2  Get ZCOMM Command prompt           "
  429.   echo "                                                                                "
  430.   echo "  sF3  Show some ZComm color choices  sF4  Use Turbolearn Script Writer         "
  431.   echo "  sF5  Search for dialing entry       sF6  <not defined>                        "
  432.   echo "                                                                                "
  433.   echo "  aF1  AutoLog Olde Guard (1200 baud) aF2  AutoLog Olde Guard (2400 baud)       "
  434.   echo "  aF3  CLOSE Capture file             aF4  CIS DEMO at 1200 baud                "
  435.   echo "  aF5  Call PC Magazine's BBS         aF6  Enter HOST MODE operation            " 
  436.   echo "  aF7  Sign name on-line              ALT-F9  Edit PHODIR.T SCRIPT              "
  437.   echo "                                                                                "
  438.   echo "       TO CALL OTHER BBSs: enter 'call name' where name is a label              "
  439.   echo "                                                                                " 
  440.   echo "  Stop Redialing ---- press <CR>      Hangup w/o pgm exit  - enter 'bye'        "
  441.   echo "  PgUp into Buffer; <CR> to return    -> EXIT hit F1 then -- enter 'off'        "
  442.   return 
  443.   
  444. ::                 -------------------------------------------                          
  445. ::             --- For Fancy TOP LINE Menu using ANSI Graphics ---
  446. ::                 -------------------------------------------
  447.  
  448. ::      Notice the ANSI color setup using 'echo' or 'lput' is not simple. Shown
  449. ::      here the \E[44;36m sets up light blue letters on dark blue background.
  450. ::      To change to yellow on red for example just search and replace \E[44;36m
  451. ::      with \E[33;41m  --  Notice in this example I change pn (normal color)
  452. ::      to pn15 to make bright white.  To change back at end of each sequence
  453. ::      I moved it back to pn3 (blue).  Be sure to change this to whatever
  454. ::      normal color you want...
  455.  
  456. fkeys                                            ::func keys menu
  457.         pn15                                     ::make normal color WHITE
  458.         lput "\E[s"                              ::save cursor position
  459.         lput "\E[1;1f"                           ::move cursor to menu line
  460.         lput " 1\E[37;44mExit B\E[0;m 2\E[37;44mEnterB\E[0;m 3\E[37;44mO Capt\E[0;m 4\E[37;44mSascii\E[0;m"   ::the menu
  461.         lput " 5\E[37;44mSKermt\E[0;m 6\E[37;44mSZmodm\E[0;m 7\E[37;44mRec CX\E[0;m 8\E[37;44mSCxmod\E[0;m"   ::the menu
  462.         lput " 9\E[37;44mA KEYS\E[0;m 0\E[37;44m>HELP<\E[0;m"
  463.         lput "\E[u"                              ::restore cursor position
  464.         set f9 "@gosub altkeys"                  ::f9 calls ctrl f keys next
  465.         pn3                                      ::change normal color to blue
  466.     return
  467.  
  468. altkeys                                          ::alt-func keys menu
  469.         pn15                                     ::make normal color WHITE
  470.         lput "\E[s"                              ::save cursor position
  471.         lput "\E[1;1f"                           ::move cursor to menu line
  472.         lput "a1\E[37;44mGurd12\E[0;ma2\E[37;44mGurd24\E[0;ma3\E[37;44mCloseC\E[0;ma4\E[37;44mCISdem\E[0;m"   ::the menu
  473.         lput "a5\E[37;44mPC Mag\E[0;ma6\E[37;44m-HOST-\E[0;ma7\E[37;44msignat\E[0;ma8\E[37;44mEdPhon\E[0;m"   ::the menu
  474.         lput "a9\E[37;44mS KEYS\E[0;ma0\E[37;44m      \E[0;m"
  475.         lput "\E[u"                              :: restore cursor position
  476.         set f9 "@gosub shiftkeys"                :: f9 calls no keys next
  477.         pn3                                      ::change normal color to blue
  478.     return
  479.  
  480. shiftkeys                                        ::shift-func keys menu
  481.         pn15                                     ::make normal color WHITE
  482.         lput "\E[s"                              ::save cursor position
  483.         lput "\E[1;1f"                           ::move cursor to menu line
  484.         lput "s1\E[37;44m      \E[0;ms2\E[37;44m      \E[0;ms3\E[37;44mColors\E[0;ms4\E[37;44mTLearn\E[0;m"   ::the menu
  485.         lput "s5\E[37;44mSearch\E[0;ms6\E[37;44m      \E[0;ms7\E[37;44m      \E[0;ms8\E[37;44m      \E[0;m"   ::the menu
  486.         lput "s9\E[37;44mC KEYS\E[0;ms0\E[37;44m      \E[0;m"
  487.         lput "\E[u"                              :: restore cursor position
  488.         set f9 "@gosub ctrlkeys"                 :: f9 calls alt f keys next
  489.         pn3                                      ::change normal color to blue
  490.     return
  491.  
  492. ctrlkeys                                         ::ctrl-func keys menu
  493.         pn15                                     ::make normal color WHITE
  494.         lput "\E[s"                              ::save cursor position
  495.         lput "\E[1;1f"                           ::move cursor to menu line
  496.         lput "c1\E[37;44mMenu^1\E[0;mc2\E[37;44m     2\E[0;mc3\E[37;44m      \E[0;mc4\E[37;44m      \E[0;m"   ::the menu
  497.         lput "c5\E[37;44m      \E[0;mc6\E[37;44m      \E[0;mc7\E[37;44m      \E[0;mc8\E[37;44m      \E[0;m"   ::the menu
  498.         lput "c9\E[37;44mNoKeys\E[0;mc0\E[37;44m      \E[0;m"
  499.         lput "\E[u"                              :: restore cursor position
  500.         set f9 "@gosub nokeys"                   :: f9 calls shift keys next
  501.         pn3                                      ::change normal color to blue
  502.     return
  503.  
  504.                                   
  505. nokeys:                                           :: restore status line
  506.         cls; lput "\E[s"                          :: save cursor position
  507.         lput "\E[1;1f"                            :: move cursor to menu line
  508.         lput "                                                                                "
  509.                                                   :: erase to end of line
  510.         display nostat                            :: restore status line
  511.         lput "\E[u"                               :: restore cursor position
  512.         set f9 "@gosub fkeys"                     :: f9 calls f keys next
  513.     return
  514.  
  515. :: Code above demonstrates one way of displaying a HELP MENU using ANSI codes.
  516. :: Many thanks to the original design by Mike Pearson and input by Ron Ottinger
  517. :: Note:  Some function keys are blank so you can add what *you* feel is
  518. :: important -- remember whatever you add to the menu you must also add to the
  519. :: key definitions earlier in the script... 
  520.  
  521. :: What it does: (by pressing F9)
  522.  
  523. ::    1.  Saves the current cursor position
  524. ::    2.  Moves cursor to top of screen
  525. ::    3.  Displays a FUNCTION KEY help menu.
  526. ::    4.  Puts the cursor back to its original position
  527. ::    5.  Sets F9 to the next FUNCTION KEY menu in the rotation.
  528.  
  529.  
  530. ::                 --- Color Generation examples ---
  531.  
  532. color
  533.      cls; echo "\n\t\t\t   \E[32m\E[41m >>> ANSI Color Calls <<< \n\n"
  534.      echo "Foreground:\n"
  535.      lput "\E[47m\E[30m\\E[30m\E[40m  \E[31m\\E[31m  \E[32m\\E[32m  \E[33m"
  536.      lput "\\E[33m  \E[34m\\E[34m  \E[35m\\E[35m  \E[36m\\E[36m  \E[37m\\E[37m"
  537.  
  538.      echo "\n\nBackground:\n"
  539.      lput "\E[40m\\E[40m \E[30m\E[41m \\E[41m \E[42m \\E[42m \E[43m \\E[43m "
  540.      lput "\E[44m \\E[44m \E[45m \\E[45m \E[46m \\E[46m \E[47m \\E[47m \n\n"
  541.  
  542.      echo "Modifiers (primary green):\n \E[32m"  :Switch foreground back to green
  543.      lput "\E[0mReset, Bold, Faint, Italics, Underline,    Blinking,"
  544.      lput "    Reverse, Invisible\n\r"
  545.  
  546.      lput "\E[0m\\E[0  \E[1m\\E[1m   \E[2m\\E[2m  \E[3m\\E[3m\E[0m     \E[4m\\"
  547.      lput "E[4m\E[0m    \E[5m\\E[5m or \\E[6m \E[0m  \E[7m\\E[7m\E[0m     \\E[8m"
  548.  
  549.      echo "\E[36m\E[21f\t\t   Notice \\E[21f puts cursor on 21rd line...\E[23f"
  550.      return
  551.  
  552.  
  553. :===========================================================================:
  554. :                      --- Auto Logon Section ---                           :
  555.  
  556. oldguard  cls; echo "\n\t\t Now calling Olde Guard at 1200 Baud \n\n"
  557.           ena -E -Z -8g                 :enaBLE Error ck, auto d/l, w graphics
  558.           nolog; speed 1200             :turn off log and set speed 1200 baud
  559.           goto number                   :Skip 300 baud dial
  560.  
  561. oldg24    cls; echo "\n\t\t Now calling Olde Guard at 2400 Baud \n\n"
  562.           ena -E -Z -8g                 :enaBLE Error ck, auto ZModem w graphics
  563.           nolog; speed 2400             :turn off log and set speed 2400 baud
  564.  
  565. number:   bye                           :hang up modem
  566.           654-7817                      :Direct line Olde Guard...
  567.           : 1-654-7817                  :Toll call (commented out)
  568.           : 1-512-654-7817              :Long distance  (outside San Antonio)
  569.           
  570.           cls
  571.           : echo "\E[34m\n\n\t\t >>> Welcome to Olde Gurard BBS -- Please standby <<<"
  572.           : display inhibit             :turns off display for opening setup...
  573.                                         :(use this to not show opening screens)
  574.           ena -E -Z -8g                 :enaBLE Error ck, auto ZModem w graphics
  575.           pat; pat 1i "ENTER"           :Clear patterns and look for ENTER
  576.           wait                          :Wait for pattern
  577.           : put "\rn\ry\r\r"              :REQUEST graphics and color
  578.           put "\r\r\r"                  :SKIP graphics and color
  579.           restime                       :Reset status clock  (Yam Only)
  580.           pat 1i "right (y/N/why)?"
  581.           wait                          :wait for tcomm...
  582.           : display noinhibit             :turn display back on if off
  583.           pat 1i "~~"; wait             :Watch and for opening screen
  584.           put "\013"                    :Once found Ctrl-K out of it
  585.           pat 1i "ast name: "           :Look for log in prompt
  586.           wait                          :Wait until prompt occurs
  587.                     
  588. :: <*>    Note you will have to log-on manually first to get a password on Olde
  589. ::        Guard...  Since you don't have a password assigned, the line below
  590. ::        skips the rest of the auto log-on and hooks you to the this BBS.
  591. ::        When you have a name and password, add them in the 'putw' statement
  592. ::        BELOW and DELETE (or comment out) the NEXT line...
  593.  
  594.           t; return       : Abort auto-login until name assigned below.
  595. ::        ^^^^^^^^^:delete this after name/password loaded below!
  596.  
  597.           putw "FIRST LAST NAME\rPASSWORD\r"     :Enter name / password
  598.  
  599. ::        --- Note comment out next four lines if you want bulletins ---
  600.           pat 2i "=="              :Look for bulletin menu if turned on
  601.           wait                     :wait until found...
  602.           put \013                 :Ctrl K to skip this menu
  603.           put "q\rm\r"             :Drop to mail menu level to prevent timeout
  604.           
  605. ::                            >>> Alarm Section <<< 
  606.  
  607.           display nobell=visual           :Turn bell back ON 
  608.  
  609.           lput "\r\n\n\t\t\E[33;1m  Hit *BACKSPACE* key to \E[5;31mSTOP\E[0;33m alarm..." 
  610.           : lput "\r\n\n\t\t  Hit *BACKSPACE* key to STOP alarm..." :no ANSI
  611.  
  612.           sleep 30                        :3 sec for response before alarm
  613.           while "!k&&L<20" lput "\7\7"    :For 20x and While nokey, make noise 
  614.           if k goto bv                    :If keyhit then skip next call 
  615.           
  616. ::        Put other DOS noise making program here if you wish, for example
  617. ::        !sound  (note the '!' will execute DOS programs from inside script)
  618.  
  619. bv:       cls; display bell=visual           :space and quiet bell 
  620.           put "r\r"                          :Prepare to read mail... 
  621.           pf30                               :Reset search wait (30 sec)
  622.           kill                               :Clear circular buffer
  623.           restime                            :Reset the timer (YAM only)
  624.           :  create -s+ %tmp\mail%d.log      :sTRIP Ctrl, append date file
  625.              ::^If today was 5/25/90 this makes a file in c:\comm\temp 
  626.              :: called mail0525.log -- If you need to use a DOS program on
  627.              :: this filename use the syntax @!% [DOS program] mail%d.log
  628.              :: to force YAM/ZComm to fill in the date before passing to DOS
  629.              
  630.           : cd %tmp                          :Change directory to d/l area 
  631.       
  632. ::        Three lines below show how to check for connection to host system
  633. ::        every 3 seconds.  Once connection is lost you are returned to YAM
  634. ::        command-line.  This is a useful piece of code if you wanted to have
  635. ::        a call placed from a DOS menu and return to DOS menu when call 
  636. ::        completed.  If this the case you would replace 'return' with 'off'
  637. ::        and have YAM/ZComm return to DOS after this call complete.
  638.  
  639.           : pf3                 : set pattern fail time to 3 seconds
  640.           : while c wait        : While connected just wait here...
  641.           : return              : once no carrier, return to command line.
  642.                                 : if this statement 'off' then returns to DOS
  643.           
  644.           t                     : activate terminal mode 
  645.           return                : return from script mode
  646.  
  647.  
  648. :---------------------------------------------------------------------------:
  649. :                --- Second example of an auto logon script ---             :
  650.  
  651. CIS12     cls; bye      :Note -- CIS in caps so won't be called by mistake
  652.           echo "\t\t\tNow accessing CompuServe at 1200 baud...\n\n " 
  653.           speed 1201 435-3883     :Odd number, 2 stop bits, error trap 
  654.           goto cislog                 :Goto logon section of CIS script 
  655.  
  656. cis       cls; bye; echo "\t\t\tNow accessing CompuServe at 300 baud...\n\n "
  657.           speed 300 435-3883   
  658. cislog:   sleep 20                            :Sleep for 2 seconds
  659.    
  660.           ena -E -7e   : put into Error correcting 7 bit, even parity...
  661.           echo ""; echo "Sending ^C"; put \3  :Send Ctrl-C, echo doing it. 
  662.           pattern 1i ID:                      :Wait for ID    
  663.           wait                                :"i" causes immediate release 
  664.           putw "77770,101\r"                  :Enter Account (can be yours)
  665.           pat 1i word:                        :Wait for password prompt
  666.           wait
  667.           putw "FREE-DEMO\r"                  :Enter password for demo...
  668.           kill                                :Kill initial login text 
  669.           restime                             :Reset status timer (yam only)
  670.           : create -s+ %tmp\cis.log             :sTRIP hi-bit, append data file
  671.           : cd %tmp                             :Change directory to d/l area 
  672.  
  673.           :Set: fULL duplex, B proto, strip ctrl char, don't pAUSE for (CR) 
  674.           ena -fcs!p  
  675.           t                                  :activate terminal mode 
  676.           return
  677.  
  678. :                     --- End of Auto Log Examples ---                        :
  679. :               --------------------------------------------                  :
  680. :=============================================================================:
  681. :                                                                             :      
  682. ::  Note:  This is a "hands-on" script.  It only incorporates two "auto       :
  683. ::         logon" examples which show how to write an auto logon script.      :
  684. ::         One example runs an auto logon to Olde Guard BBS here in SA Texas  :
  685. ::         and the other gets you into the demo area of CompuServe...         :
  686. ::                                                                            :
  687. ::         The Olde Guard is currently operating under the TComm remote       :
  688. ::         access system software, so the auto logon script has to "see"      :
  689. ::         questions asked by that system and answer them.  Other BBS         :
  690. ::         systems present a different "face" when you log on, so auto        :
  691. ::         logon scripts for other systems will differ somewhat.              :
  692. ::                                                                            :
  693. ::         The normal single line phone directory entries in the directory    :
  694. ::         below were created with an ASCII text editor.  Executing those     :
  695. ::         entries will place ZComm into terminal mode w/graphics enabled     :
  696. ::         as soon as a connect is made.  This works well for making calls    :
  697. ::         and gives you full control of the logon process following a        :
  698. ::         connect.  However, if you want to develop automatic logon          :
  699. ::         scripts, you will need to comment out or delete the entries        :
  700. ::         following the ';' in the directory examples below (e.g. place      :
  701. ::         a colon and a space in between the ';' and 't -8g'), and then      :
  702. ::         make 't -8g' the final entry in the auto logon routine.            :
  703. ::                                                                            :
  704. ::         The reason for this is that placing ZComm into terminal mode by    :
  705. ::         entering 't' stops script pattern searches.  Examples of auto      :
  706. ::         logon scripts may be found in Chuck Forsberg's phone scripts       :
  707. ::         that are distributed with ZComm, and the ZComm manual explains     :
  708. ::         how such auto logon scripts are constructed and how to use the     :
  709. ::         TurboLearn(tm) feature to automate writing scripts.  I recommend   :
  710. ::         that new ZComm users use this script essentially "as is" for       :
  711. ::         a while to test your new phone directory entries and become        :
  712. ::         familiar (comfortable) with ZComm.  Then you can enjoy the         :
  713. ::         challenge, the fun, and the satisfaction of modifying this script  :
  714. ::         to add auto logon procedures, dial queues, and the like.  Keep in  :
  715. ::         mind that this is only a simple example script to use in learning  :
  716. ::         basic ZComm functions.  You will have plenty of time to enhance    :
  717. ::         and embellish this script later.                                   :
  718. ::                                                                            :
  719. ::                  <<< comments courtesy of Bob Willoughby >>>               :
  720. ::                                                                            :
  721. ::         Remember... those items starting with ":"  are commented out       :
  722. ::                                                                            :
  723. :=============================================================================:
  724.  
  725. ::     --- Some San Antonio Bulletin Boards using simple Phone Directory ---
  726.  
  727. apco24     bye; speed 2400  496-5558 ena -E;t -8g        :membership board #
  728. apco12     bye; speed 1200  496-5558 ena -E;t -8g
  729. public     bye; speed 1200  434-1557 ena -E;t -8g        :APCO public BBS
  730. south            bye; sp 1200   656-3790 ena -E;t -8g    :Southern Cross BBS
  731. sahug            bye; sp 1200   341-0586 ena -E;t -8g    :Zenith Group
  732. mac              bye; sp 1200   533-7509 ena -E;t -8g    :MAC users group
  733. teachers_lounge  bye; sp 1200   344-7470 ena -E;t -8g
  734.  
  735. ::  Note to users -- Some of the above San Antonio bulletin boards operate
  736. ::  at speeds higher than 1200 baud.  If you have a 2400 baud modem, just
  737. ::  edit the 'speed 1200' to read 'speed 2400' as appropriate in the above
  738. ::  directory.  Want to add other favorites?  Just add them in with an ASCII
  739. ::  text editor using the above as example entries.  It's easy!  
  740.  
  741. ::                  --- Some Classic BBS systems ---
  742.  
  743. buerg24    bye; sp 2400   1-707-778-8944 ena -E;t -8g    :Vern Buerg's BBS
  744. buerg12    bye; sp 1200   1-707-778-8944 ena -E;t -8g
  745.  
  746. jordan24   bye; sp 2400   1-301-428-7931 ena -E;t -8g    :Larry Jordan
  747. jordan12   bye; sp 1200   1-301-428-7931 ena -E;t -8g
  748.  
  749. genie12    bye; sp 1200  226-6513 ena -hs;t              :GE Network (San
  750. genie24    bye; sp 2400  271-0538 ena -hs;t              : Antonio number)
  751.  
  752. pcmag      bye; sp 1200   1-212-696-0360 ena -E;t -8g    :PC Magazine BBS
  753. pctech     bye; sp 1200   1-301-576-7285 t               :PC Tech Journal
  754. virusinfo  sp 2400 %l,408-988-4004 ena -E;t -8g  :John McAfee Viruscan -voice
  755. 408-988-3832
  756.  
  757. ::               -=- End of simple phone directory entries -=-
  758.  
  759. :=============================================================================:
  760.  
  761. ::         Generate a script with TurboLearn Script Writer(TM)  
  762. ::                    Hit Shift-F4 to start this...
  763.  
  764. tlearn    set fc10 "" :: telephone number, and flag that telno was entered
  765.      if c goto connected
  766.      cls
  767.      accept fc10 "Enter Telephone Number "
  768. ag1: accept fa1 "Enter Speed (300, 1200, 2400) "
  769.      if ifa1,2400 speed 2400 goto ag2
  770.      if ifa1,1200 speed 1200 goto ag2
  771.      if ifa1,300 speed 300 goto ag2
  772.      echo "Bad speed"; goback ag1
  773. ag2: lput "\r\n1 - System uses IBM PC (ANSI) line drawing characters\r\n"
  774.      lput "2 - System uses 7 bits even parity\r\n"
  775.      lput "3 - System uses 8 bits No parity (8n1)\r\n"
  776.      lput "\r\n"
  777.      acceptl1 fa2 "Choose one of the above: "
  778.      lput "\r\n"
  779.      ena -8n
  780.      @%fc10
  781.      if !c echo "Sorry, no connection"; return
  782.      set fa5 ""
  783.      if ifa2,1 ena -8g; set fa5 "ena -8g"
  784.      if ifa2,2 ena -7e; set fa5 "ena -7e"
  785. connected:
  786.      echo "Finish with F1.  Use ALT-B to send a break if necessary"
  787.      learn -y tlrn.tmp
  788. cn2: if !r echo "WARNING: Learning (recording) terminated prematurely!"
  789.      close
  790.      kill
  791.      create newscr.t
  792.      if !r abort
  793.      echo "Is this to become a Telephone Directory entry (y/n)?"
  794.      if !y goto nodir
  795.      accept fa6 "What directory entry name to use? "
  796.      echoc "%fa6    speed %fa1 %fc10 %fa5"
  797. nodir:    close;  set fa2 ""
  798.      echo "Should the script disconnect the phone line (y/n) ?"
  799.      if !y "!tlearn tlrn.tmp >>newscr.t"; goto scdone
  800.      set fa2 "bye;  return"
  801.      echo "Should the script then exit to the Operating System (y/n)?"
  802.      if y  set fa2 "off"
  803.      !tlearn -r tlrn.tmp >>newscr.t
  804.      create -+ newscr.t; echof "   %fa2";  close
  805. scdone:   echo "Your new script is in the file 'newscr.t' !!"
  806.      if %fc10 echo "You may add this file to your Telephone Directory"
  807.      if %fc10 echo "Or execute it with 'call %fa6.newscr.t'";  return
  808.      echo "You may execute this file with 'source newscr.t'"
  809.      return
  810.  
  811.                 
  812. :=============================================================================:
  813.  
  814. ::                    ---  Using YAM/ZComm in HOST MODE  ---
  815.  
  816. ::      Note that for maximum -security- have this section be another file
  817. ::      so users won't see your passwords.
  818.  
  819.  
  820. ::           YAM users can comment in 'demand %password' at end of file
  821.  
  822. host    cls; echo " Activating host mode operation...  Stand by!\n\n"
  823.         sp 2400
  824.         : sp 1200                   : use for 1200 baud host modem...
  825.         : set home "/HOST"          : Optional restricted directory 
  826.         
  827. ::    The above command can force users into a specific area on disk.  It 
  828. ::    CRITICAL you use "/" NOT a "\" in this command.  This will lock users
  829. ::    into that directory and its subdirectories.  If you use this 
  830. ::    command, you MUST have your welcome and xhelpfile as a different
  831. ::    file and this file MUST be in the directory specified by the 'set
  832. ::    home' command.  To function it MUST be a READ ONLY file.  You may
  833. ::    use HOSTHELP.TXT for this purpose but it will need to rename to
  834. ::    HOSTHELP.T.  Remember you will also need to add some starting 
  835. ::    labels and utilize new 'set welcome' and 'set xhelpfile' commands.
  836.  
  837.         set welcome "@gosub welcome./comm/phodir.t"  : setup Welcome
  838.         set messages "/comm/messages"     : setup file for messages
  839.         
  840. ::    Private should set to another directory so people won't see 
  841. ::    private messages.
  842.  
  843.         set private "/comm/pmessage"      : Setup private message area
  844.         
  845. ::    Normally section below would be in another file so people could NOT
  846. ::    view your passwords.  For testing you can get around this by assigning
  847. ::    your script a READ-ONLY, HIDDEN attributes.  For YAM users wanting to
  848. ::    use the 'demand %password' option, the file CAN NOT have a HIDDEN 
  849. ::    attribute so you MUST put this in another directory that users can't
  850. ::    access for protection.
  851.  
  852.         set password "xxxxxxxx"   : CHANGE THIS Access Password 
  853.         set unrestrict "xxxxxx"   : WARNING - CHANGE THIS DOS drop PASSWORD!!
  854.  
  855. :: <*>                 -- HOST Helpfile Defined Below --
  856.  
  857.         set xhelpfile "@gosub help./comm/phodir.t"  : Custom help 17.29+
  858.         : set xhelpfile "@type hosthelp.txt>com1"    : (older versions)
  859.                                            :^^^^ set this for com1 or com2
  860.                                            : Notice this is an EXTERNAL file!
  861.                                            
  862.         set disks "abc"                    : Setup restricted disk area
  863.  
  864.         set call1 "ATZ\r\336\336ATZ\r\336\336"  :prepare to answer phone...
  865.         set call2 "ATZ\r\336\336ATM1X1S0=1\r\336ATM1X1S0=1\r\336\336"
  866.  
  867.         :       Note 'call3' below would normally be a command that
  868.         :       requires quotes around it, but it includes a quoted string
  869.         :       so you MUST use this alternate form of the set command to
  870.         :       have the actual command start at COL #1 of the next line.
  871.         :                 <<< This works with YAM only...>>>
  872.  
  873.         : set call3
  874. : @echo "\t\t Now awaiting incoming calls... Press F1 to exit.\n\n"
  875.  
  876.         set answerback "\r\nYOUR NAME HERE...\r\n\21"
  877.  
  878.         set outahost "@pk512; putw ATE1V1X1S7=60S8=1S11=50S0=0\r;pwd; gosub menu"    
  879.    
  880.                  
  881.         set baudstr "@gosub baud"               : sub below to find speed
  882.         pc60                                    : callout interval = 60 sec
  883.         host
  884.   
  885.         :               >>> Check for Caller Speed <<<
  886.         
  887. baud    pat 1 "CONNECT\r\n"; pat 2 "NO CARRIER"
  888.         pat 3 "CONNECT 1200\r\n"; pat 4 "CONNECT 2400\r\n"
  889.         pe-20
  890.         wait -Ef25
  891.         dis -E
  892.         if 1 speed 300 return
  893.         if 3 speed 1200 sleep 20 return
  894.         if 4 speed 2400 sleep 20 return
  895.         kill create -+ rings
  896.         close
  897.         fail
  898.   
  899. welcome:
  900.             :In HOST mode, below is what the user will see on login 
  901.  
  902.     echo "                     >>> Welcome to YAM/ZCOMM Host Mode <<<                    "
  903.     
  904.     : demand %password    :YAM users may comment this in to request password
  905.  
  906. ::    The 'demand' command is only available in YAM and NOT in ZComm...
  907. ::    If you are using ZComm there is no way to restrict initial access
  908. ::    like you can with YAM.  ZComm CAN will RESTRICT access to DOS if
  909. ::    user doesn't know the password ...
  910.  
  911. help:       :Note this is also the help message...
  912.     echo "                                                                               "
  913.     echo "        The thing to remember is that when you see the prompt followed         "
  914.     echo "        by [HOST] it is like you are actually sitting at the host              "
  915.     echo "        terminal...  To execute commands on your own YAM/ZComm hit F1          "
  916.     echo "        to call your local terminal program...                                 "
  917.     echo "                                                                               "
  918.     echo "        To open access to the complete disk enter the command: UNRESTRICT      "
  919.     echo "        and then use the system password -- otherwise you will remain in       "
  920.     echo "        the C:\\comm directory or one of its subdirectories.                    "
  921.     echo "                                                                               "
  922.     echo "        To see the files on the host enter: 'dir' and hit return.              "
  923.     echo "                                                                               "
  924.     echo "        TO DOWNLOAD a file from the host enter 'sz filename' (wildcards OK)    "
  925.     echo "            (Remember this is just like typing at the HOST keyboard...)        "
  926.     echo "                - For XMODEM enter 'sx filename' at HOST prompt -              "
  927.     echo "           - For KERMIT enter 'kermit sb filename' at Host prompt -            "
  928.     echo "                                                                               "
  929.     echo "        TO UPLOAD a file hit F1 to get into your terminal command mode and     "
  930.     echo "        then enter 'sz filename'.  In ZModem everything else is automatic.     "
  931.     echo "        XMODEM enter 'rx filename' or 'rc filename' for CRCX at HOST prompt    "
  932.     echo "        - KERMIT enter 'kermit rb' at HOST prompt then start your upload -     "
  933.     echo "                                                                               "
  934.     echo "        To leave a MESSAGE enter the command 'message' and follow prompts.     "
  935.     echo "          ---> To see this message anytime enter the command 'help' <---       "
  936.                                                                                       
  937. :    +++++++++++++++++++++++++++++--- That's it ---++++++++++++++++++++++++++++++
  938.