home *** CD-ROM | disk | FTP | other *** search
/ ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng) / ProfitPress-MegaCDROM2.B6I / BBS / DOORS / PHONE266.ZIP / PHONE266.PRN < prev   
Encoding:
Text File  |  1991-04-06  |  93.6 KB  |  2,644 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.                                     OpusPhone 2.66
  29.                         FOSSIL Compliant Extended Chat Utility
  30.                             For Opus 1.1x and 1.2x Systems
  31.                                    April 6th, 1991
  32.  
  33.                                    By William Beebe
  34.  
  35.  
  36.  
  37.           1  Introduction
  38.  
  39.  
  40.           Direct comments and bug reports to William Beebe at 1:363/1.
  41.           Thanks to Greg Martz at 1:344/59 for documentation checking.
  42.  
  43.           Thanks to Frank Cox (140/53), Bev Freed (129/104), and Greg Martz
  44.           for testing, and testing, and testing...
  45.  
  46.           Documentation prepared with Borland's Sprint 1.01.
  47.           Swap capabilities  provided  by  Ralf  Brown's  Spawno  routines.
  48.           Spawno is copyright Ralf Brown.
  49.  
  50.           Capable  of  operating  with  Opus  1.1x  and  1.2x,  Opus  Phone
  51.           (hereafter referred to as OPhone) is a split screen chat utility.
  52.           OPhone  is modeled after the VAX/VMS  phone  utility  and  Unix's
  53.           talk. OPhone allows the sysop and caller to type to each other at
  54.           the same time. If  the  caller  supports ANSI screen positioning,
  55.           then both sysop and caller will see their typing  appear  in  two
  56.           separate 10-line windows, with the  sysop's text in the upper and
  57.           the caller's in the lower. If the caller does  not  support  ANSI
  58.           screen positioning then OPhone  operates  similar  to  Opus' chat
  59.           mode.
  60.  
  61.           Usage:    Phone [switches] [bbsfile.prm]
  62.  
  63.           / or -         The forward slash or  minus  switch  types. OPhone
  64.                          recognizes both. For clarity and simplicity, the /
  65.                          character is used throughout, such as /k, but keep
  66.                          in mind that -k will do the same thing.
  67.  
  68.           /d{label}      defines a label for use inside  an  OPhone control
  69.                          script. More than  one  label can be passed on the
  70.                          command line. Labels are case  insensitive. Please
  71.                          see the script command section entries on if.
  72.  
  73.           /k             forces  OPhone into local keyboard mode. Use  this
  74.                          switch  to run OPhone without a fossil  installed.
  75.                          Data typed at  the  keyboard is echoed back in the
  76.                          sysop window, and  all local functions are active.
  77.                          This is for testing purposes.
  78.  
  79.                          NOTE:
  80.                          OPhone will also behave as  if it is in local mode
  81.                          under the  following  condition;  running  with an
  82.                          Opus 1.1x lastuser file with the baudrate field in
  83.                          that file equal to  zero.  That  type of record is
  84.                          generated  by  Opus  1.1x  when  it  is  in  local
  85.                          keyboard mode.  In either case the /k or -k switch
  86.                          is not needed.
  87.  
  88.  
  89.  
  90.  
  91.           OPhone 2.66                   April 6th, 1991                   2
  92.  
  93.  
  94.  
  95.           /p#            passes the port number to  OPhone, where # is 1 to
  96.                          4. If the port number is not  explicitly specified
  97.                          then OPhone will  use  the port number in the .PRM
  98.                          file.
  99.  
  100.           /t#            passes the Opus 1.1x task number to  OPhone, where
  101.                          # is the  task  number. This task number is merged
  102.                          with  the  internal  file  mask   LASTUSER.DAT  to
  103.                          produce  a  file  named LASTUS##.DAT. For example,
  104.                          /t1 produces LASTUS01.DAT. This will ONLY occur if
  105.                          the /u switch is not used.
  106.  
  107.                          NOTE:
  108.                          The  /t#  switch  is  automatically passed by Opus
  109.                          1.1x, and should not be explicitly encoded by you.
  110.  
  111.           /u{userfile}   passes  an alternate lastuser file and/or path  to
  112.                          OPhone.  You  may  use   this   with   the  Avatar
  113.                          extensions  to create  the  proper  LASTUSER  file
  114.                          name,    especially    with    the   Avatar   task
  115.                          metacharacters  (see  the  Opus 1.1x documentation
  116.                          for further details).
  117.  
  118.           /iphone.inf    passes  an  alternate  information file to OPhone.
  119.                          Use this if you have multiple Opus  nodes, because
  120.                          OPhone  uses templates in the information file  to
  121.                          search  for the capture, abort, lastuser, and  PRM
  122.                          files.
  123.  
  124.           bbsfile.prm    passes the real Opus PRM  file  name.  The default
  125.                          that OPhone looks for is BBS.PRM. If your PRM file
  126.                          is named differently or is not in the current path
  127.                          in which you run Opus and OPhone, then should pass
  128.                          the full path  and  file  name  to  OPhone. Though
  129.                          OPhone will run without it,  important information
  130.                          is needed in the PRM file.
  131.  
  132.           config         allows  you  to  bring  up OPhone in configuration
  133.                          mode. This mode allows you to start OPhone without
  134.                          any supporting files or any loaded FOSSIL driver.
  135.  
  136.                          Example:
  137.  
  138.                          phone config
  139.  
  140.  
  141.           chat           allows OPhone to be brought immediately up in chat
  142.                          mode.
  143.  
  144.                          Example:
  145.  
  146.  
  147.  
  148.  
  149.           OPhone 2.66                   April 6th, 1991                   3
  150.  
  151.  
  152.  
  153.                          phone chat [other switches/files/etc...]
  154.  
  155.  
  156.           noblock
  157.           block          blocks all caller chat requests. Use this  verb to
  158.                          temporarily overide  any  event  settings  you may
  159.                          have. You must use noblock  to  allow  normal chat
  160.                          requests to work, or  bring  OPhone  up  in config
  161.                          mode and modify the block flag  under  the Options
  162.                          section.
  163.  
  164.                          Examples:
  165.  
  166.                          phone block    ; block caller chat requests.
  167.                          phone noblock  ; allow caller chat requests.
  168.  
  169.           OPhone  generates  exit  codes for use in batch files. These exit
  170.           codes are:
  171.  
  172.                0    Normal exit.
  173.                1    FOSSIL not loaded or not captured.
  174.                2    exit due to carrier loss while in remote node.
  175.                3    could not open LASTUSER or LASTUS##.DAT file.
  176.  
  177.  
  178.  
  179.  
  180.  
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.  
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202.  
  203.  
  204.  
  205.  
  206.  
  207.           OPhone 2.66                   April 6th, 1991                   4
  208.  
  209.  
  210.  
  211.           2  Changes and New Features
  212.  
  213.  
  214.           OPhone 2.66 has been extensively rewritten.  The  primary changes
  215.           include the addition of windowing routines and code to manipulate
  216.           the user record output by Opus 1.1x in the  lastuser  data  file.
  217.           How these changes can affect operation of your  Opus  1.1x system
  218.           are outlined below.
  219.  
  220.               -  OPhone does not  run  on  "generic"  MS-DOS  systems. This
  221.                  includes but is not limited to DEC Rainbows,  some  of the
  222.                  older Epsons, and Tandy 2000 systems.
  223.  
  224.               -  OPhone does not use  the  Fossil  to gather local keyboard
  225.                  data.  OPhone uses Turbo C++'s runtime function  bioskey()
  226.                  to  check for and to obtain raw  keyboard  entries.  As  a
  227.                  result you must run OPhone 2.66 on a PC clone that  is ROM
  228.                  BIOS compatible with the  defacto  IBM  PC/XT/AT standard,
  229.                  such as Phoenix, AMI, etc.
  230.  
  231.               -  OPhone  does  not  use  the  Fossil to write to the  local
  232.                  screen. A custom windowing package is used  extensively to
  233.                  write directly to screen memory.  This  requires  that you
  234.                  run your BBS with a MDA, CGA, HERC, EGA, or VGA compatible
  235.                  subsystem in TEXT mode. I did this for performance reasons
  236.                  in implementing the windowing package. As a  consequence I
  237.                  can  not  guarantee  what impact it may  have  on  systems
  238.                  running certain multitaskers, such as DoubleDOS.
  239.  
  240.               -  OPhone uses the FOSSIL fpr serial reads and writes.
  241.  
  242.               -  OPhone is somewhat  DESQView  aware. It will check for the
  243.                  presence of  DESQView and, if DESQView is running, it will
  244.                  query for and  use  the  DESQView  provided  screen buffer
  245.                  pointer to do  direct  screen writes. If OPhone is running
  246.                  under DESQView it will  yield  idle  time back to DESQView
  247.                  for use by other MS-DOS  applications  also  running under
  248.                  DESQView. I have tested OPhone  2.66  under  DESQView 2.31
  249.                  running on a 33Mhz  80386  system  with QEMM386 5.11. When
  250.                  running under DESQView the word "DESQView" will  appear on
  251.                  the far left of the second line on the sysop's side of the
  252.                  screen.
  253.  
  254.               -  OPhone is somewhat Windows 3.0 aware. OPhone will only run
  255.                  in a DOS subwindow  or  DOS full screen, but if it detects
  256.                  the  presense  of  Windows it will release  time  back  to
  257.                  Windows if  idle.  When  running  under  Windows  the word
  258.                  "Windows" will appear on the far left of  the  second line
  259.                  on the sysop's side of the screen.
  260.  
  261.               -  OPhone is an Opus 1.1x and 1.2x aware utility.
  262.  
  263.  
  264.  
  265.           OPhone 2.66                   April 6th, 1991                   5
  266.  
  267.  
  268.  
  269.               -  OPhone allows the display and editing of the caller's user
  270.                  record in LASTUSER. If Opus 1.1x or 1.2x are configured to
  271.                  reload the lastuser file  (via  the  SECURE PRM file verb;
  272.                  check the Opus docs for  further  details),  then  you can
  273.                  change a caller's record on the fly within OPhone and have
  274.                  Opus save the changes back out to the  LASTUSER  file when
  275.                  the caller finally leaves.
  276.  
  277.               -  OPhone  no  longer  has  an  opening   script   file.  The
  278.                  configuration data is  now  stored in a binary file called
  279.                  PHONE.INF. You manipulate this file with the Options menu.
  280.                  See the section on Options for further details.
  281.  
  282.               -  DEFINEd words are no longer case sensitive.
  283.  
  284.               -  OPhone allows for a default file. The default onabort file
  285.                  is PHONE.ABT. The default capture file is PHONE.CPT. As an
  286.                  absolute minimum you can quickly install  OPhone  into the
  287.                  main menu of Opus using the following:
  288.  
  289.                  _OUTSIDE Priv. !Locks "OPhone" = RUN Phone.exe
  290.  
  291.               -  OPhone 2.66 recognizes  the  '/t#'  task  switch.  It will
  292.                  properly format the  file template "lastuser.dat" and open
  293.                  the correct lastuser file associated with the current Opus
  294.                  task (see usage and restrictions above).
  295.  
  296.               -  OPhone uses  the  .PRM  file  for  inportant  information.
  297.                  Specifically it will load the task  number,  sysop's name,
  298.                  and language  selections  as  well  as  using  the version
  299.                  number in the file  to  determine  if  it is running under
  300.                  Opus 1.1x or Opus 1.2x.
  301.  
  302.               -  OPhone  will  swap  to  EMS  or disk during a spawn.  This
  303.                  feature must be enabled in the Options/Section menu; it is
  304.                  disabled by default.
  305.  
  306.               -  OPhone will use a mouse. This feature must  be  enabled in
  307.                  the Options/Section menu; it is disabled by default.
  308.  
  309.               -  OPhone will pass  the  high-bit on all characters. This is
  310.                  done to  support  extended  language  character  sets,  as
  311.                  required  by  many European languages  and  Chinese.  This
  312.                  "fix" curtesy Doug Boone.
  313.  
  314.  
  315.  
  316.  
  317.  
  318.  
  319.  
  320.  
  321.  
  322.  
  323.           OPhone 2.66                   April 6th, 1991                   6
  324.  
  325.  
  326.  
  327.           3  Basic Requirements
  328.  
  329.  
  330.           The following is a  quick  list of items to check before bringing
  331.           up OPhone for the first time. These are minimum requirements that
  332.           should all be met.
  333.  
  334.           DOS            OPhone  requires  MS-DOS  3.1  or   higher.  Lower
  335.                          versions of DOS will cause OPhone to exit.
  336.  
  337.           Memory         OPhone is written in the small  memory  model (64K
  338.                          code, 64K data space). As a consequence  it should
  339.                          be provided 128K of memory to run (to be exact, it
  340.                          requires at least the current  file  length  + 256
  341.                          bytes for the PSP +  64K for the data segment). It
  342.                          does  not  use  the  far  heap. It is  capable  of
  343.                          running under DESQView's small Dos (128K) window.
  344.  
  345.           Fossil         OPhone  requires a Revision 5 or higher  compliant
  346.                          Fossil to operate.  It requires the basic services
  347.                          to send and receive data through the  serial port,
  348.                          ability to flush the buffers, and ability to check
  349.                          for control C from the remote user. This includes,
  350.                          but may not  be  limited to, Opus!Com 5.31 and X00
  351.                          1.2x or higher. BNU has not worked for  me  in the
  352.                          past and may not in the future.
  353.  
  354.           Hardware       OPhone uses calls to  the  ROM  BIOS  for keyboard
  355.                          reads,  and writes directly to the video  hardware
  356.                          in text mode  (80  character  by  25  line). Video
  357.                          hardware can be MDA, CGA, Hercules, EGA,  VGA, and
  358.                          MCGA.  Monochrome monitors used with VGA and  MCGA
  359.                          may cause problems  because the autodetect code (a
  360.                          call to  the ROM BIOS) determines that MCGA or VGA
  361.                          are color. If a monochrome monitor is connected to
  362.                          the VGA or MCGA output, the resultant  display may
  363.                          not be  satisfactory. In that case you may use the
  364.                          Colors  selection  under  Options  to  change  the
  365.                          display to your liking.
  366.  
  367.           Files
  368.  
  369.           Phone.INF      OPhone generates  a  file  called  PHONE.INF every
  370.                          time   it  exits.  This  file  contains  all   the
  371.                          initialization  data required by OPhone on  start-
  372.                          up, as well  as the sysop's operating preferences.
  373.                          PHONE.INF is first searched for on  the  drive and
  374.                          path from which PHONE.EXE is invoked.  If  that is
  375.                          not  supplied,  then  PHONE.INF  must  be  in  the
  376.                          current  subdirectory  from  which  PHONE.EXE   is
  377.                          invoked. It is the FIRST file OPhone opens.
  378.  
  379.  
  380.  
  381.           OPhone 2.66                   April 6th, 1991                   7
  382.  
  383.  
  384.  
  385.           Prm            OPhone needs  the Opus PRM file in order to locate
  386.                          certain information. If it does not  find  the PRM
  387.                          file, then the language strings will  not  be read
  388.                          in for the Language  pick  menu,  and  the sysop's
  389.                          name (YOUR  name) will not be displayed in the top
  390.                          menu.  Further, if a task is  not  passed  on  the
  391.                          command line, then OPhone will default to the task
  392.                          number in the .PRM  file.  It  should have done so
  393.                          all along, but frankly, I just never thought to do
  394.                          it.  The  PRM  file is now the  SECOND  file  that
  395.                          OPhone opens (it has to open Phone.INF first).
  396.  
  397.           Lastuser       OPhone requires that it know where LASTUS##.DAT is
  398.                          located. If  it does not find the lastuser file it
  399.                          will abort.
  400.  
  401.           Capture        OPhone will always attempt to open a capture file.
  402.                          If it  succeeds, the name of the capture file will
  403.                          be    based    on    the    template     in    the
  404.                          Options/Files/Capture string.  Logging information
  405.                          is written to the  capture  file.  If  the Capture
  406.                          flag is ON, then the chat  conversation  is logged
  407.                          to the file as  well.  If  the file already exits,
  408.                          then it will be opened in append mode. If the file
  409.                          does not exit, it  will  be  created. If OPhone is
  410.                          unable to open a capture file, it will continue to
  411.                          operate.   The   default   capture  file  name  is
  412.                          PHONE.CPT.
  413.  
  414.           Abort          If a caller's page is  blocked,  times  out during
  415.                          normal paging limits,  or attempts to page outside
  416.                          of the  normal  paging  limit,  then  OPhone  will
  417.                          attempt to send a  file  to  the caller called the
  418.                          abort file. The default is PHONE.ABT,  and  can be
  419.                          changed  in the Options/File/Abort section of  the
  420.                          menus.
  421.  
  422.  
  423.  
  424.  
  425.  
  426.  
  427.  
  428.  
  429.  
  430.  
  431.  
  432.  
  433.  
  434.  
  435.  
  436.  
  437.  
  438.  
  439.           OPhone 2.66                   April 6th, 1991                   8
  440.  
  441.  
  442.  
  443.           4  Quick Setup
  444.  
  445.  
  446.           4.1  First Time Users
  447.  
  448.           To  bring  OPhone  up  the   first  time,  place  OPhone  in  the
  449.           subdirectory you intend to invoke it from. It can  either  be  in
  450.           the  Opus directory, or some other directory  in  your  path.  To
  451.           configure OPhone, at the prompt type
  452.  
  453.           phone config
  454.  
  455.           to bring OPhone up in config  mode.  In this mode OPhone does not
  456.           need the FOSSIL, lastuser, or .PRM data files. In this  mode type
  457.           ALT O to drop the Options menu. From there you can select colors,
  458.           determine  default  operating  modes, and set up  paths  for  the
  459.           various  support  files  that OPhone will use. Once you've set up
  460.           all your options, escape back to the main command  bar  and  type
  461.           ALT Q to exit OPhone and save your preferences and options.
  462.  
  463.           Your second task is to tell Opus about OPhone,  so  that  callers
  464.           can use it. In the Opus  control  file, in the MAIN MENU section,
  465.           you could have the following:
  466.  
  467.                _OUTSIDE  Disgrace  "Phone" = RUN phone.exe
  468.  
  469.           This will allow anyone  with  Disgrace  priv  or higher to invoke
  470.           OPhone by typing the letter 'P' at their prompt.  For  the  local
  471.           side, where the sysop invokes phone, you need to create a file in
  472.           the Opus Misc subdirectory that corresponds to a function key you
  473.           want to start OPhone with. For example, you want to invoke OPhone
  474.           for chat via the F1 key on your  side.  In  the  Misc subdirectoy
  475.           create a file called F1.BBS with the following in it:
  476.  
  477.           ^L
  478.           The sysop wishes to chat with you...
  479.           One moment please...
  480.           ^OCphone chat
  481.  
  482.           OPhone will pick up  the  necessary  parameters from the lastuser
  483.           and PRM files.
  484.  
  485.           For  those  of  you who want to change or edit  the  user  record
  486.           and/or allow for on-line time  adjustment, then you must not only
  487.           set  the  appropriate  OPhone features, but you must tell Opus to
  488.           read the lastuser file back in. You do this with the Opus control
  489.           file, in the Session  Section,  Outside  information. You need to
  490.           change or add the Secure command. Mine is "Secure 3". For further
  491.           information please rummage through the Opus documentation.
  492.  
  493.  
  494.  
  495.  
  496.  
  497.           OPhone 2.66                   April 6th, 1991                   9
  498.  
  499.  
  500.  
  501.           After you have configured Opus to read the lastuser file back in,
  502.           you may want to  configure  OPhone  to  compensate for time spent
  503.           chatting so that when the caller returns to Opus they will not be
  504.           penalized for time spent outside. To do this automatically, go to
  505.           the Options/Session menu and set Time adjust and  Update  user to
  506.           auto. Selecting Time adjust  will  also  set  Update user. If you
  507.           want to update the  caller  only when you feel it's deserved, you
  508.           may set Update user  back  to manual. Just remember that you must
  509.           write the caller's record back  out before exiting, via the Write
  510.           selection on the main user editor menu.
  511.  
  512.           4.2  Previous Users
  513.  
  514.           If  you've used previous versions of OPhone,  then  put  the  new
  515.           binary in  the same subdirectory the previous version resides in.
  516.           That's it.  OPhone will read the PHONE.INF file and automatically
  517.           convert it to the current  data structure, saving nearly all your
  518.           preferences. The only thing that  does _not_ get converted is the
  519.           last selection of each  menu.  OPhone  remembers where the select
  520.           bar  is on each menu, so that when you invoke that menu again you
  521.           can quickly go to the most common portions you normally use. When
  522.           new versions of OPhone  read  in prior .INF files, it zeroes your
  523.           last-used menu selections.
  524.  
  525.  
  526.  
  527.  
  528.  
  529.  
  530.  
  531.  
  532.  
  533.  
  534.  
  535.  
  536.  
  537.  
  538.  
  539.  
  540.  
  541.  
  542.  
  543.  
  544.  
  545.  
  546.  
  547.  
  548.  
  549.  
  550.  
  551.  
  552.  
  553.  
  554.  
  555.           OPhone 2.66                  April 6th, 1991                   10
  556.  
  557.  
  558.  
  559.           5  Local Menus
  560.  
  561.  
  562.           OPhone uses drop-down menus  on  the  sysop's  side to access its
  563.           many functions. This allows for the organization of like features
  564.           and the presentation of as uncluttered a screen as possible. When
  565.           OPhone is first started, the same basic split window is presented
  566.           to  the  sysop  and caller as  in  previous  versions.  Users  of
  567.           previous versions may note how much faster the screen is drawn on
  568.           the local side and how more  colorful  (if they have color) it is
  569.           than in previous versions.
  570.  
  571.           The sysop has a command bar  at  the very top line, starting with
  572.           the  word  ALT  and  followed  by Quit, Help, User, Dos,  Window,
  573.           Screen, Options, and Capture. This  shows  the  range  of primary
  574.           commands available to the  sysop  and how to invoke them, via the
  575.           Alt Q,  Alt  H,  Alt  U, etc, key sequences. Once a menu has been
  576.           selected in this way normal (non-ALT) keystrokes will move around
  577.           the menus.
  578.  
  579.           5.1  Basic Menu Functionality
  580.  
  581.           Once  a  primary  menu  has  been  pulled  up, the  following  is
  582.           generally common to them all:
  583.  
  584.               -  If a mouse is installed on your system, you may use  it to
  585.                  move  around  the  menus. I have developed  OPhone  on  my
  586.                  system  which  uses the Microsoft  two-button  mouse.  The
  587.                  right button will select  an  item,  while the left button
  588.                  will exit from a selection.
  589.  
  590.               -  Keyboard Escape or a  right  mouse  button click will exit
  591.                  from any menu and from  any text and numeric entry fields.
  592.                  If escaping from an entry field or the security lock, then
  593.                  the previous contents are redisplayed.
  594.  
  595.               -  All menus have a selection bar that moves up and  down the
  596.                  selections.
  597.  
  598.               -  Selections outside the menu select  bar  appear  as normal
  599.                  intensity characters, with capitalized letters  or special
  600.                  characters  as   high   intensity.   The   high  intensity
  601.                  letters/characters are the selection characters.
  602.  
  603.               -  Menu entries may be  selected  by  typing  the highlighted
  604.                  letter or character, by using the up and  down  arrow keys
  605.                  to  move  the  select  bar  to that item and then  hitting
  606.                  return, by using the up and down arrow keys  to  move  the
  607.                  bar and then using the right arrow key to select the item,
  608.                  or by moving  to  the  entry  with  the  mouse  cursor and
  609.                  clicking the left button.
  610.  
  611.  
  612.  
  613.           OPhone 2.66                  April 6th, 1991                   11
  614.  
  615.  
  616.  
  617.               -  Some menus  will disappear when an item is selected. These
  618.                  menus allow you to  pick  one item from a list of multiple
  619.                  choices (a pick list). Some  menus allow you to alter many
  620.                  different data items and will only  disappear  when Escape
  621.                  is pressed or the right mouse button is clicked.
  622.  
  623.           The following sections  will  give  specific  directions  on each
  624.           menu's use.
  625.  
  626.           5.2  Primary Command Bar
  627.  
  628.           The  primary  command  bar is the first line at the  top  of  the
  629.           screen and  provides the functions Quit, Help, User, Dos, Screen,
  630.           Window,  and  Capture.  These  commands  are  accessed   via  the
  631.           ALT+character sequence, the character being highlighted.
  632.  
  633.           Quit  (Alt Q) pops up a simple button (figure 1) that asks if you
  634.           want to Exit OPhone.  Pressing  Return will exit back to the BBS.
  635.           Pressing Escape will return to OPhone.
  636.  
  637.                                   ┌[■]───────────┐
  638.                                   │ Exit OPhone? │▒
  639.                                   └──────────────┘▒
  640.                                    ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
  641.  
  642.                                  Figure 1: Exit Menu
  643.           Help (figure 2) amplifies on the basic commands  by  listing them
  644.           with a little more text. You can access the primary commands from
  645.           this menu by selecting the highlighted letter as  apposed  to the
  646.           Alt letter on the primary command bar.
  647.  
  648.                               ┌[■]───────────────────┐
  649.                               │ Exit OPhone          │▒
  650.                               │ User record editor  »│▒
  651.                               │ Dos shell            │▒
  652.                               │ Window clear         │▒
  653.                               │ Screen clear         │▒
  654.                               │ Capture chat to file │▒
  655.                               │ About this program  »│▒
  656.                               └──────────────────────┘▒
  657.                                ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
  658.  
  659.                               Figure 2: Sysop Help Menu
  660.           About is the only selection not on the primary command  bar. When
  661.           selected, About will display a simple  information  window giving
  662.           the  revision level and date of compilation  of  OPhone  and  the
  663.           compiler used to compile OPhone.
  664.  
  665.           User record editor (Alt  U)  is explained in detail later in this
  666.           document.
  667.  
  668.  
  669.  
  670.  
  671.           OPhone 2.66                  April 6th, 1991                   12
  672.  
  673.  
  674.  
  675.           Dos shell (Alt D) shells to another copy of command.com  if there
  676.           is enough room  in  the  current  Dos  TPA. From there you can do
  677.           whatever is necessary that can't be done from  within  OPhone. If
  678.           you have swap on shell  enabled in the Options/Session menu, then
  679.           when you shell to dos all but 1K of OPhone  will  be swapped out.
  680.           When you return, OPhone will swap back in again.
  681.  
  682.           Window (Alt W)  and  Screen  (Alt  S) clear keys redraw the sysop
  683.           window and the full screen, respectively. Window and screen clear
  684.           are  only  on  the ANSI mode screen. If the caller calls in ASCII
  685.           mode, then the window  and  screen  clearing functions are absent
  686.           from the command bar as well as from the help menu.
  687.  
  688.           Options (Alt O) selects  the  sections of menus that allow you to
  689.           change   the  configurable  parameters  of  OPhone.  Options   is
  690.           explained in detail later in this document.
  691.  
  692.           Capture (Alt C) toggle turns conversation capture to a local file
  693.           on and off.
  694.  
  695.           The second line of the main screen contains a simple clock. It is
  696.           updated once every second as part of the loop that scans for data
  697.           from the local and  remote  keyboards.  The  middle of the second
  698.           line  will  also  contain the sysop's name if in ANSI mode or the
  699.           caller's name if in ASCII mode.
  700.  
  701.  
  702.  
  703.  
  704.  
  705.  
  706.  
  707.  
  708.  
  709.  
  710.  
  711.  
  712.  
  713.  
  714.  
  715.  
  716.  
  717.  
  718.  
  719.  
  720.  
  721.  
  722.  
  723.  
  724.  
  725.  
  726.  
  727.  
  728.  
  729.           OPhone 2.66                  April 6th, 1991                   13
  730.  
  731.  
  732.  
  733.           6  User Record Editor Menu
  734.  
  735.  
  736.           The User Record Editor  menu  (figure 3) is the central menu from
  737.           which caller data is  viewed  and  altered.  This menu is entered
  738.           directly with the ALT U command at the primary command bar or via
  739.           the U (User) command on the sysop's Help menu.
  740.  
  741.                  ┌[■]──────────────────────────────────────────────┐
  742.                  │ Name                                            │▒
  743.                  │ aLias                                           │▒
  744.                  │ Password                                        │▒
  745.                  │ Access                                         »│▒
  746.                  │ City                                            │▒
  747.                  │ phone #                                         │▒
  748.                  │ Help level                                     »│▒
  749.                  │ Security lock  ABCDEFGHIJKLMNOPQRSTUVWXYZ012345 │▒
  750.                  │ Remaining time (min)                            │▒
  751.                  │─────────────────────────────────────────────────│▒
  752.                  │ User options                                   »│▒
  753.                  │ Matrix mail cost accounting                    »│▒
  754.                  │ File upload/download accounting                »│▒
  755.                  │ Write changes to user information file          │▒
  756.                  └─────────────────────────────────────────────────┘▒
  757.                   ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
  758.  
  759.                           Figure 3: User Record Editor Menu
  760.  
  761.           Five of the first six lines  of  the main User Record Editor menu
  762.           (Name, aLias, Password,  City,  and Phone #) are text strings.You
  763.           may edit these fields by typing the highlighted capital letter or
  764.           character ('N' for name, 'L' for aLias, or '#' for  Phone number,
  765.           for example)  on  the  main  menu  or  by selecting them with the
  766.           mouse.  When  this  occurs the current field  contents  are  left
  767.           justified,  and the full extent of the  field  is  identified  by
  768.           blocks  going from the right end of the  string  to  the  field's
  769.           rightmost limit. Text editing on these fields may  be  exited via
  770.           Keyboard Escape or a right mouse button click (which abandons any
  771.           edits)  and Return return or a left  mouse  button  click  (which
  772.           accepts any edits). If data is entered in the text string fields,
  773.           all  leading  and  trailing spaces are stripped,  and  the  first
  774.           letter of each word  is  capitalized,  with  the remainder of the
  775.           word in lower case.
  776.  
  777.           While in string field editing mode the following keys are active:
  778.  
  779.               -  The Insert key  allows  you to toggle insert or overstrike
  780.                  mode. Overwrite mode is  acknowledged  with  a single-line
  781.                  cursor, while insert mode  is  acknowledged  with  a full-
  782.                  character-box cursor. The default is overwrite.
  783.  
  784.  
  785.  
  786.  
  787.           OPhone 2.66                  April 6th, 1991                   14
  788.  
  789.  
  790.  
  791.               -  The Home and End keys go to the start and end of the line,
  792.                  respectively.
  793.  
  794.               -  Destructive  backspace allows deleting of text from  right
  795.                  to left. If backspacing  takes  place  in  the middle of a
  796.                  string, text to the right of the string follows the cursor
  797.                  back towards the left.
  798.  
  799.               -  The Delete key allows in  place deleting except at the end
  800.                  of the  string, at which point it behaves like destructive
  801.                  backspace;
  802.  
  803.               -  The  left  and   right  arrow  keys  allow  nondestructive
  804.                  movement within the string body,  up to the very first and
  805.                  last characters in the string.
  806.  
  807.           The Write command allows you to write the changes you've  made to
  808.           the user record back out to the lastuser file. This is  useful if
  809.           you have configured Opus  to  reread  the  lastuser file when the
  810.           caller  returns  to  Opus (via Opus' PRM file verb SECURE; please
  811.           see  the  Opus  docs for further details). When Write is selected
  812.           you can be prompted by a single line dialogue pop up box. It will
  813.           contain the name of the lastuser file OPhone read the information
  814.           from. The field is  a  standard text field, so you can manipulate
  815.           the file name text, but if you type  return  you  will  write the
  816.           changes out to the modified file name. To abort just type Escape.
  817.  
  818.  
  819.  
  820.  
  821.  
  822.  
  823.  
  824.  
  825.  
  826.  
  827.  
  828.  
  829.  
  830.  
  831.  
  832.  
  833.  
  834.  
  835.  
  836.  
  837.  
  838.  
  839.  
  840.  
  841.  
  842.  
  843.  
  844.  
  845.           OPhone 2.66                  April 6th, 1991                   15
  846.  
  847.  
  848.  
  849.           6.1  User Access Levels
  850.  
  851.           The  Access Levels (figure 4) are selected  from  the  main  User
  852.           menu. Access Levels allow the selection of all  the  major access
  853.           or privilege levels. When  invoked  with  the  'A' command on the
  854.           main menu the selection  bar  will  appear  on the current access
  855.           level.  You  may  select  another  access  level  by  typing  the
  856.           highlighted letter of the access you wish to give the  caller. If
  857.           you make your selection via the letter, then the access menu will
  858.           disappear and the new  access  will  be  displayed in the default
  859.           field on  the  main  menu.  Of  all  the access levels, the last,
  860.           Hidden, is an unknown to me  at  this time. I included it because
  861.           under Opus 1.03 it was useful in keeping unwanted callers off the
  862.           system. By marking their record as Hidden I could bounce  them as
  863.           soon as they logged on, faster than even Twitting.
  864.  
  865.                                   ┌[■]────────────┐
  866.                                   │ Twit          │▒
  867.                                   │ Disgrace      │▒
  868.                                   │ Limited       │▒
  869.                                   │ Normal        │▒
  870.                                   │ Worthy        │▒
  871.                                   │ Privel        │▒
  872.                                   │ Favored       │▒
  873.                                   │ Extra         │▒
  874.                                   │ Clerk         │▒
  875.                                   │ AsstSysop     │▒
  876.                                   │ Sysop         │▒
  877.                                   │ Hidden        │▒
  878.                                   └───────────────┘▒
  879.                                    ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
  880.  
  881.                             Figure 4: User Access Levels
  882.  
  883.           6.2  Security Lock
  884.  
  885.           The Security Lock (figure 5) is  a  set  of bits in a 32-bit word
  886.           that allow much finer caller  access  to  Opus  functions (please
  887.           read the relevant Opus documentation for more details).
  888.  
  889.                  │ Security lock  ABCDEFGHIJKLMNOPQRSTUVWXYZ012345 │▒
  890.  
  891.                                Figure 5: Security Lock
  892.  
  893.           You may select the Security Lock with 'S' or with the mouse. Once
  894.           in  the edit mode, pressing any letter or the numbers 0 to 5 will
  895.           toggle that bit. If the letter is upper  case,  the corresponding
  896.           bit  is set; if lower case, the bit is clear. For the numbers, if
  897.           the  bit is set the number is visible; if clear, only a period is
  898.           shown. You can also use the mouse to toggle these bits by placing
  899.           the mouse cursor over  a  bit and clicking the left mouse button.
  900.  
  901.  
  902.  
  903.           OPhone 2.66                  April 6th, 1991                   16
  904.  
  905.  
  906.  
  907.           To return with the settings you have selected, click on  any part
  908.           of "Security Lock" with the left mouse button or press  Return on
  909.           the keyboard.  To escape and restore the previous settings, click
  910.           with the right mouse button or press the keyboard Escape.
  911.  
  912.  
  913.  
  914.  
  915.  
  916.  
  917.  
  918.  
  919.  
  920.  
  921.  
  922.  
  923.  
  924.  
  925.  
  926.  
  927.  
  928.  
  929.  
  930.  
  931.  
  932.  
  933.  
  934.  
  935.  
  936.  
  937.  
  938.  
  939.  
  940.  
  941.  
  942.  
  943.  
  944.  
  945.  
  946.  
  947.  
  948.  
  949.  
  950.  
  951.  
  952.  
  953.  
  954.  
  955.  
  956.  
  957.  
  958.  
  959.  
  960.  
  961.           OPhone 2.66                  April 6th, 1991                   17
  962.  
  963.  
  964.  
  965.           6.3  User Help Levels
  966.  
  967.           The Help Levels menu (figure 6) is selected from  the  main  menu
  968.           with the 'H' key.  When  selected it will appear with the current
  969.           help  level  in  the menu selection bar.  Press  the  highlighted
  970.           letter of the help level you wish to give the caller or 'Q'uit or
  971.           Escape  to  exit  without changing. When  a  new  help  level  is
  972.           selected  the menu will disappear and the  new  help  level  will
  973.           appear on the main user  menu. Expert, Regular, and Novice levels
  974.           are  still  the  same as they were in Opus 1.03.  The  new  Hitek
  975.           creates the  Lotus  style  menu  bar  across  the top line of the
  976.           caller's screen. This help level seems to be working better under
  977.           Opus 1.13. Full Tilt Boogie is something that was  added  to  the
  978.           Opus 1.13 header file, and is included for  completeness.  I have
  979.           no real idea what it is.
  980.  
  981.                                 ┌[■]───────────────┐
  982.                                 │ Hitek            │▒
  983.                                 │ Expert           │▒
  984.                                 │ Regular          │▒
  985.                                 │ Novice           │▒
  986.                                 │ Full Tilt Boogie │▒
  987.                                 └──────────────────┘▒
  988.                                  ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
  989.  
  990.                                 Figure 6: Help Levels
  991.  
  992.           6.4  Session Time Control
  993.  
  994.           The Remaining time selection on the main user menu allows  you to
  995.           adjust the caller's time left on  line.  You may change it to any
  996.           value, and when you exit OPhone, that value will be given  to the
  997.           caller.  Please  note  that the remaining time  is  always  being
  998.           updated by OPhone, so that if  you  make the change early on when
  999.           answering a page, then the value finally given to the caller will
  1000.           be that original amount  less  the time spent talking to him. The
  1001.           toggle selection beneath Remaining time, Time adjusted..., can be
  1002.           used to automatically compensate for chat time by adding the time
  1003.           spent in chat back to the caller's remaining  time.  This feature
  1004.           is  only  useful  if you have  selected  Write  changes  to  user
  1005.           information file to be Yes.
  1006.  
  1007.  
  1008.  
  1009.  
  1010.  
  1011.  
  1012.  
  1013.  
  1014.  
  1015.  
  1016.  
  1017.  
  1018.  
  1019.           OPhone 2.66                  April 6th, 1991                   18
  1020.  
  1021.  
  1022.  
  1023.           6.5  Matrix Mail Cost Accounting
  1024.  
  1025.           The Matrix mail cost accounting menu (figure 7) allows you to set
  1026.           the  credit  and  debit costs of sending  long  distance  netmail
  1027.           messages. The menu fields are free form and allow  the  entry  of
  1028.           money  as  dollars  and cents (US). The maximum amount allowed in
  1029.           either field is $655.35 because the  size  of the field is 16 bit
  1030.           with a max unsigned value of 65535.
  1031.  
  1032.                                  ┌[■]──────────────┐
  1033.                                  │ Credit  $  0.00 │▒
  1034.                                  │ Debit   $  0.00 │▒
  1035.                                  └─────────────────┘▒
  1036.                                   ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
  1037.  
  1038.                            Figure 7: Matrix Mail Cost Menu
  1039.  
  1040.           Select the field you wish to modify. When selected, you may enter
  1041.           data in the Credit and Debit fields as absolute values, or in the
  1042.           alternate  OMAN  method  of  prefixing  the value with a plus  or
  1043.           minus. Thus entering 10 in the credit field would fix it  at $10,
  1044.           while entering +5 would add 5 dollars to the value already there.
  1045.           Entries are accepted with a return, while escape  will  abort the
  1046.           entry.
  1047.  
  1048.           6.6  File Upload/Download Accounting
  1049.  
  1050.           The File upload/download accounting menu (figure 8) allows you to
  1051.           change caller's  upload  and  download  totals.  There  are three
  1052.           fields,  total  upload  in  K,  total download in K, and  today's
  1053.           download in K. You may change these fields to allow caller's more
  1054.           download capability if needed.
  1055.  
  1056.                                 ┌[■]────────────────┐
  1057.                                 │ Upload         0K │▒
  1058.                                 │ Download       0K │▒
  1059.                                 │ Today          0K │▒
  1060.                                 └───────────────────┘▒
  1061.                                  ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
  1062.  
  1063.                    Figure 8: File Upload/Download Accounting Menu
  1064.  
  1065.  
  1066.  
  1067.  
  1068.  
  1069.  
  1070.  
  1071.  
  1072.  
  1073.  
  1074.  
  1075.  
  1076.  
  1077.           OPhone 2.66                  April 6th, 1991                   19
  1078.  
  1079.  
  1080.  
  1081.           6.7  User Options Menu
  1082.  
  1083.           The User Options menu (figure 9) is selected from the Main Caller
  1084.           Statistics menu. This  is  a flags modification menu. Selecting a
  1085.           given  flag  toggles  the flag so that it is 'Yes' or 'No'. Flags
  1086.           are  modified  by  selecting  the  item   via   it's  highlighted
  1087.           capitalized letter. Modification of the  flag  is  immediate. For
  1088.           example, typing 'H' for hex message areas will  toggle  that flag
  1089.           to 'No' if it were yes. The exception to this is the 'Video mode'
  1090.           selection, which presents another menu  ( see below ). You should
  1091.           check your Opus 1.1x documentation (if and when it should finally
  1092.           arrive) concerning what all the flags mean for the caller. Unlike
  1093.           some of the other menus, this menu will stay up until  you either
  1094.           press Escape or 'Q'uit.
  1095.  
  1096.                               ┌[■]────────────────────┐
  1097.                               │ Hex msg areas  Yes    │▒
  1098.                               │ IBM chars      Yes    │▒
  1099.                               │ Editor         LORE   │▒
  1100.                               │ More prompt    Yes    │▒
  1101.                               │ Video mode     Avatar»│▒
  1102.                               │ talKer         No     │▒
  1103.                               │ Formfeed       Yes    │▒
  1104.                               │ Phone verify   No     │▒
  1105.                               │ Alias used     No     │▒
  1106.                               │ Name listed    Yes    │▒
  1107.                               │ Time listed    Yes    │▒
  1108.                               │ City listed    Yes    │▒
  1109.                               │ Language     English »│▒
  1110.                               └───────────────────────┘▒
  1111.                                ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
  1112.  
  1113.                                Figure 9: User Options
  1114.  
  1115.  
  1116.  
  1117.  
  1118.  
  1119.  
  1120.  
  1121.  
  1122.  
  1123.  
  1124.  
  1125.  
  1126.  
  1127.  
  1128.  
  1129.  
  1130.  
  1131.  
  1132.  
  1133.  
  1134.  
  1135.           OPhone 2.66                  April 6th, 1991                   20
  1136.  
  1137.  
  1138.  
  1139.           6.7.1  User Display Menu
  1140.  
  1141.           The Display menu in  figure  10 is selected from the User Options
  1142.           menu with the  'V'  command.  It  allows  you  to  select between
  1143.           straight Ascii, standard Ansi, and Avatar for the display of Opus
  1144.           text and optional  colors.  As  defined  in  other documentation,
  1145.           straight  ASCII is unembellished text with no  cursor-positioning
  1146.           escape  sequences;  Ansi  provides  these escape sequences, along
  1147.           with additional  screen color information; and Avatar is the Opus
  1148.           1.1x display method in which  the oAnsi or Avatar embedded screen
  1149.           control  information   is  sent  raw  to  the  caller  for  local
  1150.           interpretation. The caller should have a terminal program capable
  1151.           of interpreting the Avatar control sequences on his  or  her end.
  1152.           When  the  Display   menu   is  shown,  the  current  default  is
  1153.           highlighted by  the selection bar. You may select another Display
  1154.           mode  by  pressing   the  appropriate  highlighted  letter.  Once
  1155.           selected, the menu disappears and the new video mode appears next
  1156.           to the 'Video mode' prompt. NOTE: Selection of  the  Display mode
  1157.           DOES  affect  operation  under OPhone. If you change from Ansi to
  1158.           Ascii you will change the local screen form two  windows  to  the
  1159.           single screen. Only two lines will  be  visible at the top on the
  1160.           local side. If you change from Ascii to Ansi you  will  go to the
  1161.           two-window mode. If you  change  the user's name in Ascii mode it
  1162.           will be reflected on both sides of the screen.
  1163.  
  1164.                               ┌[■]────────────────────┐
  1165.                               │ Hex msg areas  Yes    │▒
  1166.                               │ IBM chars      Yes    │▒
  1167.                               │ Editor         LORE   │▒
  1168.                               │ More prompt┌[■]─────┐ │▒
  1169.                               │ Video mode │ Ascii  │▒│▒
  1170.                               │ talKer     │ aNsi   │▒│▒
  1171.                               │ Form feed  │ aVatar │▒│▒
  1172.                               │ Phone verif└────────┘▒│▒
  1173.                               │ Alias used  ▒▒▒▒▒▒▒▒▒▒│▒
  1174.                               │ Name listed           │▒
  1175.                               │ Time listed           │▒
  1176.                               │ City listed           │▒
  1177.                               │ Language     English »│▒
  1178.                               └───────────────────────┘▒
  1179.                                ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
  1180.  
  1181.                                  Figure 10: Display
  1182.  
  1183.  
  1184.  
  1185.  
  1186.  
  1187.  
  1188.  
  1189.  
  1190.  
  1191.  
  1192.  
  1193.           OPhone 2.66                  April 6th, 1991                   21
  1194.  
  1195.  
  1196.  
  1197.           6.7.2  User Language Menu
  1198.  
  1199.           Pressing L from the User Options menu selects  the  Language menu
  1200.           (figure 11).  The Language menu selects the caller's language set
  1201.           in the user  record.  The  strings  used in the Language menu are
  1202.           read from the Opus 1.1x .PRM file. Only  those  languages defined
  1203.           in the  PRM  file  are  read from the .PRM file and placed in the
  1204.           menu.  If  the  Opus .PRM file can not be opened,  then  all  six
  1205.           language selections  are displayed, but a single question mark is
  1206.           displayed in all six languages.
  1207.  
  1208.                                    ┌[■]─────────┐
  1209.                                    │ 1 English  │▒
  1210.                                    │ 2 French   │▒
  1211.                                    └────────────┘▒
  1212.                                     ▒▒▒▒▒▒▒▒▒▒▒▒▒▒
  1213.  
  1214.                               Figure 11: Language Menu
  1215.  
  1216.           If OPhone can't find the .PRM file, then  the  following Language
  1217.           menu will be displayed (figure 12).
  1218.  
  1219.                                    ┌[■]─────────┐
  1220.                                    │ 1 ?        │▒
  1221.                                    │ 2 ?        │▒
  1222.                                    │ 3 ?        │▒
  1223.                                    │ 4 ?        │▒
  1224.                                    │ 5 ?        │▒
  1225.                                    │ 6 ?        │▒
  1226.                                    │ 7 ?        │▒
  1227.                                    │ 8 ?        │▒
  1228.                                    │ 9 ?        │▒
  1229.                                    │10 ?        │▒
  1230.                                    │11 ?        │▒
  1231.                                    │12 ?        │▒
  1232.                                    └────────────┘▒
  1233.                                     ▒▒▒▒▒▒▒▒▒▒▒▒▒▒
  1234.  
  1235.                           Figure 12: Default Language Menu
  1236.  
  1237.  
  1238.  
  1239.  
  1240.  
  1241.  
  1242.  
  1243.  
  1244.  
  1245.  
  1246.  
  1247.  
  1248.  
  1249.  
  1250.  
  1251.           OPhone 2.66                  April 6th, 1991                   22
  1252.  
  1253.  
  1254.  
  1255.           7  Options Menu
  1256.  
  1257.  
  1258.           The OPhone Options menu (figure 13) allows the setting of general
  1259.           OPhone parameters.
  1260.  
  1261.                                 ┌[■]───────────────┐
  1262.                                 │ Menu colors     »│▒
  1263.                                 │ Chat colors     »│▒
  1264.                                 │ Session control »│▒
  1265.                                 │ Ring schedule   »│▒
  1266.                                 │ Files           »│▒
  1267.                                 └──────────────────┘▒
  1268.                                  ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
  1269.  
  1270.                                Figure 13: Options Menu
  1271.  
  1272.           Menu colors  allow  you  to  change  the  colors of the pull down
  1273.           menus.
  1274.  
  1275.           Chat colors allow you to change the colors of the  chat window(s)
  1276.           and surrounding borders.
  1277.  
  1278.           Session control allows you to set/clear  automatic  caller record
  1279.           update, automatic caller time  compensate,  and  caller initiated
  1280.           chat block/open.
  1281.  
  1282.           Ring control allows you to set  the  ring schedule for all 7 days
  1283.           of the week, the number of times to sound the alarm, and the type
  1284.           of alarm to sound.
  1285.  
  1286.           Files allows you to specify the file name and path of the capture
  1287.           and abort files.
  1288.  
  1289.  
  1290.  
  1291.  
  1292.  
  1293.  
  1294.  
  1295.  
  1296.  
  1297.  
  1298.  
  1299.  
  1300.  
  1301.  
  1302.  
  1303.  
  1304.  
  1305.  
  1306.  
  1307.  
  1308.  
  1309.           OPhone 2.66                  April 6th, 1991                   23
  1310.  
  1311.  
  1312.  
  1313.           7.1  Menu Colors
  1314.  
  1315.           The Menu Color menu (figure 14) allows you to set the  colors for
  1316.           the pull-down menus.
  1317.  
  1318.                                ┌[■]──────────────────┐
  1319.                                │ Menu background    »│▒
  1320.                                │ Border character   »│▒
  1321.                                │ Normal text        »│▒
  1322.                                │ Highlighted text   »│▒
  1323.                                │─────────────────────│▒
  1324.                                │ Select bar backgnd »│▒
  1325.                                │ Select bar text    »│▒
  1326.                                │ Off bar background »│▒
  1327.                                │ Off bar text       »│▒
  1328.                                └─────────────────────┘▒
  1329.                                 ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
  1330.  
  1331.                                Figure 14: Menu Colors
  1332.  
  1333.           Menu background selects the menu background for all the menu text
  1334.           and the menu border.
  1335.  
  1336.           Border character selects the menu border character color when the
  1337.           menu is active.
  1338.  
  1339.           Normal text selects the non-highlighted text in the menu.
  1340.  
  1341.           Highlighted text selects the  color  for  the capital letters and
  1342.           special characters that help select a menu option.
  1343.  
  1344.           Select  bar  background  sets the background color  of  the  menu
  1345.           select bar text.
  1346.  
  1347.           Select bar text sets the text color of the menu select bar.
  1348.  
  1349.           Off bar background selects the background color of  the  menu bar
  1350.           when you have selected that menu item.
  1351.  
  1352.           Off bar text sets the text forground color of the menu select bar
  1353.           when you have selected that menu item.
  1354.  
  1355.           If  any  colors  are  changed,  the  change  becomes  immediately
  1356.           apparent on the Menu Color menu, and the color changes take place
  1357.           as you move back up the menu chain to the primary command bar.
  1358.  
  1359.           If  you  change  any  of  the  menu  colors  (except the menu bar
  1360.           foreground or  background colors), then when you exit the Options
  1361.           menu,  OPhone  will  redraw both the local and remote screen, and
  1362.           present a fresh screen on both sides.
  1363.  
  1364.  
  1365.  
  1366.  
  1367.           OPhone 2.66                  April 6th, 1991                   24
  1368.  
  1369.  
  1370.  
  1371.           7.2  Main Screen Colors
  1372.  
  1373.                                ┌[■]──────────────────┐
  1374.                                │ Window background  »│▒
  1375.                                │ Sysop window text  »│▒
  1376.                                │ Caller window text »│▒
  1377.                                │─────────────────────│▒
  1378.                                │ Border background  »│▒
  1379.                                │ Label text         »│▒
  1380.                                │ Information text   »│▒
  1381.                                │ Flag text          »│▒
  1382.                                └─────────────────────┘▒
  1383.                                 ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
  1384.  
  1385.                             Figure 15: Main Screen Colors
  1386.  
  1387.           Windows background allows  you  to set the local background color
  1388.           of the sysop and caller windows.
  1389.  
  1390.           Sysop  window text allows you to set the  color  of  the  sysop's
  1391.           local text.
  1392.  
  1393.           Caller window text allows you to set the color  of  the  caller's
  1394.           local text.
  1395.  
  1396.           Border background allows you to set the background  color  of the
  1397.           upper and  lower  bars  that  border  the  windows as well as the
  1398.           center bar when the caller is in ansi mode.
  1399.  
  1400.           Label  text allows you to set the text color of the labels on the
  1401.           bottom line of the local screen.
  1402.  
  1403.           Information text allows you to set the text color of the caller's
  1404.           name, the sysop's  name,  and the information displayed along the
  1405.           bottom line of the local screen.
  1406.  
  1407.           Flag text allows you to set the color of the "DESQview" and other
  1408.           (future) special text that appears on the local screen.
  1409.  
  1410.  
  1411.  
  1412.  
  1413.  
  1414.  
  1415.  
  1416.  
  1417.  
  1418.  
  1419.  
  1420.  
  1421.  
  1422.  
  1423.  
  1424.  
  1425.           OPhone 2.66                  April 6th, 1991                   25
  1426.  
  1427.  
  1428.  
  1429.           7.2.1  Color Menu
  1430.  
  1431.           The background and foreground  color  menu  (figure 16) allow the
  1432.           selection of all sixteen  colors  for  background  and foreground
  1433.           text and characters. Selections are made via number or menu bar.
  1434.  
  1435.                                  ┌[■]─────────────┐
  1436.                                  │ 0 Black        │▒
  1437.                                  │ 1 Blue         │▒
  1438.                                  │ 2 Green        │▒
  1439.                                  │ 3 Cyan         │▒
  1440.                                  │ 4 Red          │▒
  1441.                                  │ 5 Magenta      │▒
  1442.                                  │ 6 Brown        │▒
  1443.                                  │ 7 Lightgray    │▒
  1444.                                  │ 8 Darkgray     │▒
  1445.                                  │ 9 Lightblue    │▒
  1446.                                  │ A Lightgreen   │▒
  1447.                                  │ B Lightcyan    │▒
  1448.                                  │ C Lightred     │▒
  1449.                                  │ D Lightmagenta │▒
  1450.                                  │ E Yellow       │▒
  1451.                                  │ F White        │▒
  1452.                                  └────────────────┘▒
  1453.                                   ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
  1454.  
  1455.                                 Figure 16: Color Menu
  1456.  
  1457.           Please note that only on EGA and VGA can you  show  all 16 colors
  1458.           in the background. For example, you can have blue  letters  on  a
  1459.           white background. If you select such a combination for CGA, mono,
  1460.           or Hercules mon cards, then such colored text will flash.
  1461.  
  1462.  
  1463.  
  1464.  
  1465.  
  1466.  
  1467.  
  1468.  
  1469.  
  1470.  
  1471.  
  1472.  
  1473.  
  1474.  
  1475.  
  1476.  
  1477.  
  1478.  
  1479.  
  1480.  
  1481.  
  1482.  
  1483.           OPhone 2.66                  April 6th, 1991                   26
  1484.  
  1485.  
  1486.  
  1487.           7.3  Basic Session Control
  1488.  
  1489.           Session control (figure 17)  allows  you  to  set flags that will
  1490.           allow automatic time adjust for  time  spent  in  chat, automatic
  1491.           update of the user's LASTUSER file on exit, and if OPhone is open
  1492.           to chat requests per  the  hours  specified  in the Ring Schedule
  1493.           menu.
  1494.  
  1495.                               ┌[■]───────────────────┐
  1496.                               │ Time adjust: manual  │▒
  1497.                               │ Update user: manual  │▒
  1498.                               │ Caller ring: open    │▒
  1499.                               │ Verify quit: yes     │▒
  1500.                               │  Mouse used: no      │▒
  1501.                               │  Shell swap: no      │▒
  1502.                               └──────────────────────┘▒
  1503.                                ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
  1504.  
  1505.                              Figure 17: Session Control
  1506.  
  1507.           Time  adjust  allows  OPhone to add the time spent in chat to the
  1508.           time the caller must be off the system. This keeps the  chat time
  1509.           from impacting the total  time  a caller is allowed on line. When
  1510.           in  manual,  you  can add time to the caller's time from the User
  1511.           Record Editor menu. When in  auto,  this  is  done automatically.
  1512.           Please  note that when time adjust is in  auto,  the  time  left,
  1513.           displayed  on  the  lower right corner, is not updated. Also note
  1514.           that when you toggle time adjust from manual to  auto,  that  you
  1515.           also toggle update user from manual to auto. It makes no sense to
  1516.           toggle one without toggling the other, and OPhone  does  this for
  1517.           you. However, if you do not want update  user  in  auto,  you may
  1518.           then toggle update user back to manual.
  1519.  
  1520.           Update user  allows OPhone to automatically write the user record
  1521.           back out when OPhone exits. This is useful on those  Opus systems
  1522.           configured to read the  user  record back in again (see your Opus
  1523.           documentation for further details). If  you  do  not  have update
  1524.           user  in  auto  and you make changes to the user record, you must
  1525.           use the write command on the User Record Editor menu to save your
  1526.           changes.
  1527.  
  1528.           Caller  ring  allows  you  to  block  all  caller  chat  requests
  1529.           regardless of the settings  in  your  schedule  file. You can set
  1530.           this flag from the command line with the "phone block" and "phone
  1531.           noblock" commands, or you can do it here. When open, caller's can
  1532.           request a chat. When blocked, caller's are blocked.
  1533.  
  1534.           Verify quit turns on or off the verify button when you  press ALT
  1535.           Q. If you don't want the  hassle  of being queried every time you
  1536.           exit, then turn off this traning wheel.
  1537.  
  1538.  
  1539.  
  1540.  
  1541.           OPhone 2.66                  April 6th, 1991                   27
  1542.  
  1543.  
  1544.  
  1545.           Shell swap allows you to swap most of OPhone out  to  disk or EMS
  1546.           when you shell to dos, thus reclaiming all that memory  for other
  1547.           use.  It  allows  you  to  shell  on  systems with  tight  memory
  1548.           constraints  or  in  small  multitasker  partitions.  If  EMS  is
  1549.           present, and if there is enough, then all but about 1K is swapped
  1550.           to EMS. If  EMS is not present, then it is swapped to a temp disk
  1551.           file  at the root of the current disk.  IF  THIS  FEATURE  CAUSES
  1552.           PROBLEMS TURN IT OFF.
  1553.  
  1554.  
  1555.  
  1556.  
  1557.  
  1558.  
  1559.  
  1560.  
  1561.  
  1562.  
  1563.  
  1564.  
  1565.  
  1566.  
  1567.  
  1568.  
  1569.  
  1570.  
  1571.  
  1572.  
  1573.  
  1574.  
  1575.  
  1576.  
  1577.  
  1578.  
  1579.  
  1580.  
  1581.  
  1582.  
  1583.  
  1584.  
  1585.  
  1586.  
  1587.  
  1588.  
  1589.  
  1590.  
  1591.  
  1592.  
  1593.  
  1594.  
  1595.  
  1596.  
  1597.  
  1598.  
  1599.           OPhone 2.66                  April 6th, 1991                   28
  1600.  
  1601.  
  1602.  
  1603.           7.4  Ring Schedule Control
  1604.  
  1605.           OPhone contains its on  internal  schedule  structure.  This menu
  1606.           allows  you  to  manipulate  that  on the fly with Ring  Schedule
  1607.           (figure 18).
  1608.  
  1609.                            ┌[■]─────────────────────────┐
  1610.                            │ Sun 10:00 22:00  6 Silent »│▒
  1611.                            │ Mon 10:00 22:00  6 Silent »│▒
  1612.                            │ Tue 10:00 22:00  6 Silent »│▒
  1613.                            │ Wed 10:00 22:00  6 Silent »│▒
  1614.                            │ tHu 10:00 22:00  6 Silent »│▒
  1615.                            │ Fri 10:00 22:00  6 Silent »│▒
  1616.                            │ sAt 10:00 22:00  6 Silent »│▒
  1617.                            │ Global (all days)         »│▒
  1618.                            └────────────────────────────┘▒
  1619.                             ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
  1620.  
  1621.                               Figure 18: Ring Schedule
  1622.  
  1623.           You can modify any day of  the  week  or all days with the Global
  1624.           selection. With Global you  can  set the start time for all days,
  1625.           and then pick those days you want different. In all instances you
  1626.           get another menu, Daily Events.
  1627.  
  1628.           7.4.1  Daily Event Editor
  1629.  
  1630.           Daily  Events (figure 19) allows you to set  the  Start  and  End
  1631.           times when a chat is allowed, how many  Times  to  signal  on the
  1632.           local side, and the type of Alarm. Start and end time are entered
  1633.           in  military  time,  and  can  range from 00:00 to 23:59.  Values
  1634.           outside of this range are ignored. Times can range from 1  to 99.
  1635.           The alarm type is  chosen  from the pick list menu Alarms (figure
  1636.           20).
  1637.  
  1638.                                  ┌[■]─────────────┐
  1639.                                  │ Start: 10:00   │▒
  1640.                                  │   End: 22:00   │▒
  1641.                                  │ Times:  6      │▒
  1642.                                  │ Alarm: Silent »│▒
  1643.                                  └────────────────┘▒
  1644.                                   ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
  1645.  
  1646.                                Figure 19: Daily Events
  1647.  
  1648.           At initial startup  the  default  start  time  is  10:00  and the
  1649.           default end time is  22:00.  The default alarm type is Silent for
  1650.           six alarms. Please note at this time that the start time  may not
  1651.           be  greater  than the end time, and  that  times  may  not  cross
  1652.           midnight, i.e. the end may not be greater than 23:59.
  1653.  
  1654.  
  1655.  
  1656.  
  1657.           OPhone 2.66                  April 6th, 1991                   29
  1658.  
  1659.  
  1660.  
  1661.           7.4.2  Alarm Selection
  1662.  
  1663.                                      ┌[■]─────┐
  1664.                                      │ Silent │▒
  1665.                                      │ Bells  │▒
  1666.                                      │ Phone  │▒
  1667.                                      │ Flynt  │▒
  1668.                                      │ Dive   │▒
  1669.                                      └────────┘▒
  1670.                                       ▒▒▒▒▒▒▒▒▒▒
  1671.  
  1672.                              Figure 20: Alarm Selection
  1673.  
  1674.  
  1675.  
  1676.  
  1677.  
  1678.  
  1679.  
  1680.  
  1681.  
  1682.  
  1683.  
  1684.  
  1685.  
  1686.  
  1687.  
  1688.  
  1689.  
  1690.  
  1691.  
  1692.  
  1693.  
  1694.  
  1695.  
  1696.  
  1697.  
  1698.  
  1699.  
  1700.  
  1701.  
  1702.  
  1703.  
  1704.  
  1705.  
  1706.  
  1707.  
  1708.  
  1709.  
  1710.  
  1711.  
  1712.  
  1713.  
  1714.  
  1715.           OPhone 2.66                  April 6th, 1991                   30
  1716.  
  1717.  
  1718.  
  1719.           7.5  OPhone File Configuration
  1720.  
  1721.           The OPhone Files menu  allows  you  to  specify the capture file,
  1722.           abort file, lastuser, and  PRM  names.  You may use environmental
  1723.           variables and metacharacters  in  their names (see section on use
  1724.           of environmental variables and metacharacters).
  1725.  
  1726.           ┌[■]──────────────────────────────────────────────────────────┐
  1727.           │ Capture Phone.Cpt...........................................│▒
  1728.           │ Abort   Phone.Abt...........................................│▒
  1729.           │ Lastuse Lastus$N.Dat........................................│▒
  1730.           │ Prm     Bbs.Prm.............................................│▒
  1731.           └─────────────────────────────────────────────────────────────┘▒
  1732.            ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
  1733.  
  1734.                         Figure 21: OPhone File Configuration
  1735.  
  1736.           Figure 21 shows the default file names.
  1737.  
  1738.           The Capture file is the path and/or file name OPhone will open on
  1739.           startup.  In this file is written the log  of  the  current  chat
  1740.           session, as well as any captured conversation.
  1741.  
  1742.           The Abort file is  the  path and/or file name OPhone will execute
  1743.           if the caller  attempts  to  chat  outside of the time limits, is
  1744.           blocked by sysop action, or times out during regular chat hours.
  1745.  
  1746.           The Lastuser file is  the  path and/or file name OPhone will read
  1747.           in when it starts up. This file is written out by Opus, and is of
  1748.           the form  LASTUS##.DAT, where '##' is the hexadecimal task number
  1749.           for  that  instance  of   Opus.   The   default  string  has  the
  1750.           metacharacter '$N'. OPhone will replace this with the task number
  1751.           passed to it or read from the Opus parm file.
  1752.  
  1753.           The Prm file is the path and/or file name OPhone will read in for
  1754.           additional operating information. The  PRM  file  is  Opus' prime
  1755.           configuration file.
  1756.  
  1757.  
  1758.  
  1759.  
  1760.  
  1761.  
  1762.  
  1763.  
  1764.  
  1765.  
  1766.  
  1767.  
  1768.  
  1769.  
  1770.  
  1771.  
  1772.  
  1773.           OPhone 2.66                  April 6th, 1991                   31
  1774.  
  1775.  
  1776.  
  1777.           8  The Remote (Caller) Side
  1778.  
  1779.  
  1780.           The caller's side of OPhone  is either identical to standard Opus
  1781.           chat if the caller is in ascii mode (no Ansi  screen  codes) or a
  1782.           limited  monochrome  version  of the local side of the screen. At
  1783.           the top of the caller's screen is a line of caller commands. They
  1784.           are currently  limited to control W (^W), which re-displays their
  1785.           bottom window, and control  L  (^L)  which re-displays the entire
  1786.           screen. Their actions are reproduced on both sides of the screen.
  1787.           The  next  line  down is your name, followed by 10 lines for your
  1788.           window, followed by the line with the caller's name, and then the
  1789.           caller's window. There  is  currently no other information on the
  1790.           caller's side of the screen.
  1791.  
  1792.  
  1793.  
  1794.  
  1795.  
  1796.  
  1797.  
  1798.  
  1799.  
  1800.  
  1801.  
  1802.  
  1803.  
  1804.  
  1805.  
  1806.  
  1807.  
  1808.  
  1809.  
  1810.  
  1811.  
  1812.  
  1813.  
  1814.  
  1815.  
  1816.  
  1817.  
  1818.  
  1819.  
  1820.  
  1821.  
  1822.  
  1823.  
  1824.  
  1825.  
  1826.  
  1827.  
  1828.  
  1829.  
  1830.  
  1831.           OPhone 2.66                  April 6th, 1991                   32
  1832.  
  1833.  
  1834.  
  1835.           9  Script Language
  1836.  
  1837.  
  1838.           OPhone's control file uses a  simple  script  language.  There is
  1839.           usually one command per  line,  followed  by  one or more command
  1840.           parameters. The commands can be prefaced with whitespace (tabs or
  1841.           spaces), and white space is  used  to  delineate  the parameters.
  1842.           This simple scripting feature allows you some flexible control on
  1843.           how OPhone operates. The current commands are:
  1844.  
  1845.           9.1  Script Commands
  1846.  
  1847.           9.1.1  Dos
  1848.  
  1849.           dos            Provides a way to  execute  programs  and commands
  1850.                          external   to   OPhone.   These  commands  can  be
  1851.                          intrinsic to COMMAND.COM, an external  executable,
  1852.                          or a  batch file. OPhone performs a shell with the
  1853.                          command. This provides the external  child process
  1854.                          with a full set of file handles. The child process
  1855.                          inherits  OPhone's   environment   variables,  and
  1856.                          executes  in  whatever  system  memory   is  left.
  1857.                          Remember, however,  that  OPhone  is  still memory
  1858.                          resident when it does this.  When  the  command is
  1859.                          finished it should return back to  OPhone  on it's
  1860.                          own. You should NOT execute a  child  process that
  1861.                          requires user input to exit  unless  it  is Fossil
  1862.                          aware or you provide I/O redirection to the serial
  1863.                          port.
  1864.  
  1865.                          There are two ways to  run a dos program; with and
  1866.                          without quoting. You use  quoting  around  the dos
  1867.                          string  if  the  external program requires passing
  1868.                          additional command line parameters, as in
  1869.  
  1870.                          dos "foo /a /b /c input.dat output.dat"
  1871.  
  1872.                          If the program can be executed without any command
  1873.                          line parameters you can use
  1874.  
  1875.                          dos foo
  1876.  
  1877.                          to execute  the program. If you have swap on shell
  1878.                          enabled in the Options/Session menu, then when you
  1879.                          shell to dos via  the  dos  command  all but 1K of
  1880.                          OPhone will  be  swapped  out.  When  you  return,
  1881.                          OPhone will swap back in again.
  1882.  
  1883.  
  1884.  
  1885.  
  1886.  
  1887.  
  1888.  
  1889.           OPhone 2.66                  April 6th, 1991                   33
  1890.  
  1891.  
  1892.  
  1893.           9.1.2  Dosexit
  1894.  
  1895.           dosexit        Provides  a  way  to  exit  back  to  DOS with  an
  1896.                          errorlevel that can then be used  in  batch files.
  1897.                          It is meant to be used with a conditional test, as
  1898.                          in the following example:
  1899.  
  1900.                          if timelimit dosexit 10
  1901.  
  1902.                          If the caller is calling outside  of  regular chat
  1903.                          hours, then OPhone will  exit  back  to DOS (and a
  1904.                          batch file) with errorlevel 10.
  1905.  
  1906.           9.1.3  Print
  1907.  
  1908.           print          Send a quoted  string  of text, usually out to the
  1909.                          caller.  This  string  must  be enclosed in double
  1910.                          quotes.
  1911.  
  1912.                          Examples:
  1913.  
  1914.                          ; standard print command.
  1915.                          print "This is a test"
  1916.                          ; print the time with a metacharacter.
  1917.                          print "The time is $T."
  1918.                          ; print an environmental variable.
  1919.                          print "The temp drive is %tmp%."
  1920.  
  1921.           9.1.4  Implied print
  1922.  
  1923.                          The implied  print is a single double quote at the
  1924.                          start of  a string. It must be the first character
  1925.                          on the line to be  sent to the caller. The implied
  1926.                          print   is   for   use  with  oAnsi/Avatar  escape
  1927.                          sequences,  but  can  be  used  in  place  of  the
  1928.                          explicit print command. Do NOT put a closing quote
  1929.                          on the end of the string.
  1930.  
  1931.                          Example:
  1932.  
  1933.                          "This string will print.
  1934.  
  1935.           9.1.5  Include
  1936.  
  1937.           include        Allows you to include another file.  You  may nest
  1938.                          include files eight deep. Included files should be
  1939.                          other OPhone script files.
  1940.  
  1941.                          Example:
  1942.  
  1943.                          include d:\OPhonedir\standard.scr
  1944.  
  1945.  
  1946.  
  1947.           OPhone 2.66                  April 6th, 1991                   34
  1948.  
  1949.  
  1950.  
  1951.           9.1.6  Exit
  1952.  
  1953.           exit           Allows you  to exit from a script file before end-
  1954.                          of-file.
  1955.                          Example:
  1956.  
  1957.                          exit
  1958.  
  1959.           9.1.7  Define
  1960.  
  1961.           define         defines a label. Used with the if conditional test
  1962.                          below.  For  example, if "define  thislabel"    is
  1963.                          encountered,   then "thislabel" is stored  in  the
  1964.                          label  list.  If  the command  "if thislabel"   is
  1965.                          encountered, then the command block following  the
  1966.                          if test will be executed. This has the same  exact
  1967.                          function    as  the  -d{label}  command    switch.
  1968.                          Defined  labels  are  case insensitive, as is  the
  1969.                          test  for  them. A test  for  "ThisLabel"  is  the
  1970.                          same as a test for "THISLABEL".
  1971.  
  1972.           9.1.8  If conditional tests
  1973.  
  1974.           if             tests certain internal conditions flags or for the
  1975.                          existence of a  defined string flag. IF statements
  1976.                          can take two broad  forms.  The  first is a single
  1977.                          line command that will only  execute  one  line if
  1978.                          the test is true.
  1979.  
  1980.                          Example:
  1981.  
  1982.                          if <test> command
  1983.  
  1984.                          The second is when executing more than  one script
  1985.                          instruction.  Note the required use of then  after
  1986.                          the if test.
  1987.  
  1988.                          Example:
  1989.  
  1990.                          if <test> then
  1991.                          command
  1992.                          command
  1993.                          ...
  1994.                          endif
  1995.  
  1996.                          NOTE
  1997.                          If the test is missing a matching command or then,
  1998.                          then  the error message "Invalid if  construction"
  1999.                          is issued to   the   console  and the script where
  2000.                          the error occurred is aborted. If the error occurs
  2001.  
  2002.  
  2003.  
  2004.  
  2005.           OPhone 2.66                  April 6th, 1991                   35
  2006.  
  2007.  
  2008.  
  2009.                          in the   root  script, then Phone is terminated or
  2010.                          the next script on the command line is executed.
  2011.  
  2012.                          If the test is true or the string flag exists then
  2013.                          the line following the test or all commands in the
  2014.                          command    block  after  the  then  to  the   next
  2015.                          balanced  endif  are  executed. If  the  condition
  2016.                          is  false,  the  command  after  the  test  or all
  2017.                          commands in the command block  after  the  then to
  2018.                          the    next  balanced    endif  are  ignored.  The
  2019.                          conditional   test can include the ! or not negate
  2020.                          test as a prefix  to the test. In  this  test,  if
  2021.                          the  condition  is    false,  then  the  block  of
  2022.                          commands  to  the    next    balanced  endif    is
  2023.                          executed.
  2024.  
  2025.                          Examples:
  2026.  
  2027.                          if !day mon print "This is not Monday."
  2028.                          if not day mon print "This is also not Monday."
  2029.  
  2030.                          ; if the phone capture file is not in the
  2031.                          ; current directory then open it elsewhere.
  2032.                          if !file phone.cpt open c:\phonfile\phone.cpt
  2033.  
  2034.                          NOTE
  2035.                          The last test in a string of if tests on a similar
  2036.                          action  will have the final outcome if  the  final
  2037.                          conditional  is true. For example, be  careful how
  2038.                          many times you test and then set the event time.
  2039.  
  2040.           if day         will  execute  if it is a given day  of  the  week
  2041.                          according  to  the time of day clock.  An  example
  2042.                          test  would be "if day mon". All the days  of  the
  2043.                          week    must  use  the  first  three  letters. For
  2044.                          example, 'mon' for Monday, 'tue' for Tuesday, etc.
  2045.                          The spelling is case insensitive.
  2046.  
  2047.                          Example:
  2048.  
  2049.                          ; set event times for Saturday.
  2050.                          ; allow from noon to 6 pm.
  2051.                          if day sat event 12:00 18:00
  2052.  
  2053.           if !day        will execute if it is not a given day of the week.
  2054.  
  2055.           if weekday     will execute if it is Monday through Friday
  2056.  
  2057.           if !weekday    will execute if it  is  the  weekend,  Saturday or
  2058.                          Sunday.
  2059.  
  2060.  
  2061.  
  2062.  
  2063.           OPhone 2.66                  April 6th, 1991                   36
  2064.  
  2065.  
  2066.  
  2067.           if file        will execute if a  given  file  exists. The  wild-
  2068.                          card characters  '*'  and  '?' can be used in  the
  2069.                          test,  and    a    drive  and  path  can  also  be
  2070.                          specified.    An  example    would  be   "if  file
  2071.                          lastus??.dat". In  this instance, a test for Opus'
  2072.                          lastuser file is  made, and  the '?'  is  a  wild-
  2073.                          card that will test  even    if  Opus is being run
  2074.                          multiline.
  2075.  
  2076.           if !file       will execute if a given file does not exist.
  2077.  
  2078.           if timelimit   will execute if the caller is trying to phone  you
  2079.                          outside  the time limits specified with  event  or
  2080.                          using Phone's defaults of 10 am to 10 pm. You  can
  2081.                          use  this to bracket those lines in  your  onabort
  2082.                          file  so that they only see the Phone time   limit
  2083.                          when the time limit is exceeded.
  2084.  
  2085.           if !timelimit  the reverse of above. Will execute in the  onabort
  2086.                          file if within the timelimit.
  2087.  
  2088.           if timeout     will execute if the caller's page timed out during
  2089.                          normal paging hours.
  2090.  
  2091.           if blocked     will execute if the caller's page was blocked with
  2092.                          the block command  or  by the sysop pressing Alt Q
  2093.                          at the alarm pop-up window.
  2094.  
  2095.           if <label>     will  execute  if a given label has  been  defined
  2096.                          with  the  define verb or the  -d    command  line
  2097.                          switch.  This test is case insensitive. An example
  2098.                          would be "if    MyLabel"    and  would  execute if
  2099.                          'MyLabel'   had  been defined  with define MyLabel
  2100.                          or  -dMyLabel    on the command line. This feature
  2101.                          allows custom flags to  be  passed to script flags
  2102.                          using  conditional execution.   It    is  also the
  2103.                          method  by   which    the  Yabbs utilities will be
  2104.                          able to discriminate their part  of a large config
  2105.                          file from other applications.
  2106.  
  2107.                          NOTE
  2108.                          The   default label is YPHONE.   Use    this  with
  2109.                          other Y  utilities  to  separate  sections  of   a
  2110.                          single control file dedicated for each utility. As
  2111.                          each  utility  is released, it will have  its  own
  2112.                          uniquely   defined  internal  label  so  that  all
  2113.                          control files can be combined into one master list
  2114.                          if you so desire.
  2115.  
  2116.           if !<label>    will   execute  if a given label  has  not    been
  2117.                          defined.
  2118.  
  2119.  
  2120.  
  2121.           OPhone 2.66                  April 6th, 1991                   37
  2122.  
  2123.  
  2124.  
  2125.                          NOTE
  2126.                          If statements can  be nested. Multi-line if blocks
  2127.                          (if... then )  must  have an endif. Single line if
  2128.                          statements do not need an endif.
  2129.  
  2130.           9.1.9  Endif
  2131.  
  2132.           endif          indicates the end of an if test.
  2133.  
  2134.  
  2135.  
  2136.  
  2137.  
  2138.  
  2139.  
  2140.  
  2141.  
  2142.  
  2143.  
  2144.  
  2145.  
  2146.  
  2147.  
  2148.  
  2149.  
  2150.  
  2151.  
  2152.  
  2153.  
  2154.  
  2155.  
  2156.  
  2157.  
  2158.  
  2159.  
  2160.  
  2161.  
  2162.  
  2163.  
  2164.  
  2165.  
  2166.  
  2167.  
  2168.  
  2169.  
  2170.  
  2171.  
  2172.  
  2173.  
  2174.  
  2175.  
  2176.  
  2177.  
  2178.  
  2179.           OPhone 2.66                  April 6th, 1991                   38
  2180.  
  2181.  
  2182.  
  2183.           10  Metacharacters
  2184.  
  2185.  
  2186.           Metacharacters are special  two character combinations that allow
  2187.           you to substitute information into a given string. Metacharacters
  2188.           begin  with  the dollar sign, '$', and are  followed  by a single
  2189.           letter. When a metacharacter sequence is found in a line, it   is
  2190.           replaced with one  or  more  characters  that    it   represents.
  2191.           Metacharacters  should  be   considered  very  simple    internal
  2192.           constants. You can never set them to a particular value,  but you
  2193.           can read them and use them. The list of metacharacters are:
  2194.  
  2195.           $B             the port's  baud rate is inserted in the line. For
  2196.                          example, "1200" would be inserted for $B.
  2197.  
  2198.           $D             the system's date is  inserted  in  the  line. For
  2199.                          example, "Apr  15, 1989" would be inserted for $D.
  2200.                          Month names are    truncated  to  the  first three
  2201.                          characters.
  2202.  
  2203.           $E             the  system's  event limits are  inserted  in  the
  2204.                          line.   For  example,  if  you  have  defined   an
  2205.                          allowable event  window from  10:00 to 22:00 hours
  2206.                          (10 am to 10 pm),  then  the  string  "10:00am  to
  2207.                          10:00pm" is inserted in the line  in place of $E.
  2208.  
  2209.           $F             the   caller's first name is inserted in the line.
  2210.                          For  example,  caller  John  Doe would have "John"
  2211.                          inserted in the line.
  2212.  
  2213.           $L             the language number, which currently ranges from 1
  2214.                          to 6 for Opus 1.1x and 12 for Opus 1.2x.  Use this
  2215.                          in a file  name  to specify which language file to
  2216.                          open for a given caller.
  2217.  
  2218.           $N             the task number is inserted in the string. This is
  2219.                          the task number passed via the '/t#'  command line
  2220.                          switch from Opus when OPhone  is  invoked,  or the
  2221.                          default  task found in the PRM  file  if  no  task
  2222.                          number is passed. The  string  is  two characters,
  2223.                          padded  with  a  zero  if  less than 0Fh,  and  is
  2224.                          hexadecimally based.
  2225.  
  2226.           $P             the  port Phone  is  active on is inserted in  the
  2227.                          line. For example, if  Phone  is  on com1:, '1' is
  2228.                          inserted place of $P.
  2229.  
  2230.           $T             the  system's  current  time  is  inserted  in the
  2231.                          line    in  HH:MM:SS  format. The  hour  field  is
  2232.                          packed with a zero if the hour is less than 10.
  2233.  
  2234.  
  2235.  
  2236.  
  2237.           OPhone 2.66                  April 6th, 1991                   39
  2238.  
  2239.  
  2240.  
  2241.           $U             the caller's full name is inserted in the line.
  2242.  
  2243.  
  2244.           11  Environmental Variables
  2245.  
  2246.  
  2247.           In    addition  to  the   metacharacter,   Phone   can  reference
  2248.           environmental  variables  and  insert them into the  script  line
  2249.           or   file   templates.     When  referenced,  the  name  of    an
  2250.           environmental variable  is placed between two percent signs. This
  2251.           is   the    same  feature  found in MS-DOS (v3.3 and later) batch
  2252.           files. For  example,  you  might  reference  the  path  where you
  2253.           open  your  capture file with an environmental variable, thus:
  2254.  
  2255.                %bbspath%phone.cpt
  2256.  
  2257.           and you would then have the following in your autoexec.bat file:
  2258.  
  2259.                set bbspath=d:\bbs\capture\
  2260.  
  2261.           so that when the open statement is executed, it will expand to:
  2262.  
  2263.                d:\bbs\capture\phone.cpt
  2264.  
  2265.           Environmental  variable references allow you a greater degree  of
  2266.           flexibility in your use of Phone. Any environmental variable  can
  2267.           be  referenced. If you reference an environmental  variable  that
  2268.           does not exist, Phone will substitute the null string, just  like
  2269.           MS-DOS.
  2270.  
  2271.           If  you need to use a  percent  sign,  then  you  can  escape the
  2272.           percent  sign by  putting  two in succession. For example, if you
  2273.           had the line:
  2274.  
  2275.                print "This is a percent sign: %%"
  2276.  
  2277.           then when it is printed, it would display as
  2278.  
  2279.                "This is a percent sign: %"
  2280.  
  2281.           You should do the same with the dollar sign, '$', if you need  an
  2282.           explicit  '$' character in your script. Putting  two  dollar sign
  2283.           in succession will escape the second one.
  2284.  
  2285.  
  2286.  
  2287.  
  2288.  
  2289.  
  2290.  
  2291.  
  2292.  
  2293.  
  2294.  
  2295.           OPhone 2.66                  April 6th, 1991                   40
  2296.  
  2297.  
  2298.  
  2299.           12  Using Metacharacters and Environmental Variables
  2300.  
  2301.  
  2302.           Metacharacters and environmental variables are most useful in the
  2303.           file strings under the Options menus and in the abort  file. Here
  2304.           are several examples for the file section.
  2305.  
  2306.           First, consider an entry for the capture file in the Options/File
  2307.           menu.
  2308.  
  2309.                %tmp%phone$n.cpt
  2310.  
  2311.           The environmental variable %tmp%,  if  initialized  with  the SET
  2312.           command in a batch file, will expand to whatever it is set to. If
  2313.           set to  "f:\foo\",  then  the  first  part  of the file name will
  2314.           expand to
  2315.  
  2316.                f:\foo\phone...
  2317.  
  2318.           The metacharacter $N will expand to the current  task  number. If
  2319.           phone is invoked by Opus with  a  '/t1' on the command line, then
  2320.           the file name will fully expand to
  2321.  
  2322.                f:\foo\phone01.cpt.
  2323.  
  2324.           Assuming that the subdirectory 'f:\foo' exists, and that there is
  2325.           space, then the file 'phone01.cpt' will be opened (or created, as
  2326.           the case may be).
  2327.  
  2328.           Second, consider an entry for the abort file.  Opus  provides the
  2329.           ability to  specify the caller's language. You can take advantage
  2330.           of this by including the $L metacharacter in the abort file name,
  2331.           such as
  2332.  
  2333.                phone$l.abt.
  2334.  
  2335.           When the file name  is  expanded,  the  caller's language will be
  2336.           inserted where the $L is located in the file name.  Assuming that
  2337.           the caller's language  is  English, and English corresponds to 1,
  2338.           then if an abort takes place phone will attempt to apologize with
  2339.           the file
  2340.  
  2341.                phone01.abt.
  2342.  
  2343.           Finally, OPhone will recognize and expand environmental variables
  2344.           in the /u<lastuserfile> command line switch. For  example, assume
  2345.           you have explicitly coded
  2346.  
  2347.                phone /ulastus%task%.dat ...
  2348.  
  2349.  
  2350.  
  2351.  
  2352.  
  2353.           OPhone 2.66                  April 6th, 1991                   41
  2354.  
  2355.  
  2356.  
  2357.           Normally, if a standard system  call  is  made  with COMMAND.COM,
  2358.           then  COMMAND.COM  will  parse the command line  and  expand  the
  2359.           environmental variables.  But Opus does an exec (after doing only
  2360.           a parse). As such the environmental variables are  passed  to the
  2361.           child process. If  an  environmental variable is passed to OPhone
  2362.           in the /U command  line  variable,  then  OPhone will replace the
  2363.           variable with the proper value. If for example you
  2364.  
  2365.                set task=01
  2366.  
  2367.           then OPhone will translate lastus%task% to lastus01. This feature
  2368.           is  useful  in multitasking Opii where a  ^OC  is  used  to  call
  2369.           OPhone, such as from one of the function key BBS files. This is a
  2370.           last line of defense, as it appears the '#' Avatar character does
  2371.           not always work.
  2372.  
  2373.  
  2374.  
  2375.  
  2376.  
  2377.  
  2378.  
  2379.  
  2380.  
  2381.  
  2382.  
  2383.  
  2384.  
  2385.  
  2386.  
  2387.  
  2388.  
  2389.  
  2390.  
  2391.  
  2392.  
  2393.  
  2394.  
  2395.  
  2396.  
  2397.  
  2398.  
  2399.  
  2400.  
  2401.  
  2402.  
  2403.  
  2404.  
  2405.  
  2406.  
  2407.  
  2408.  
  2409.  
  2410.  
  2411.           OPhone 2.66                  April 6th, 1991                   42
  2412.  
  2413.  
  2414.  
  2415.           13  Opus Ansi or Avatar Control Codes
  2416.  
  2417.  
  2418.           OPhone supports a subset of  the oAnsi control codes. These codes
  2419.           can be incorporated into the  abort  file  to  provide additional
  2420.           colors and screen placement. You  can  incorporate  these control
  2421.           codes in print quote strings, or you can use them  stand-alone as
  2422.           long as the string is preceded with a double quote.  This implied
  2423.           print  must not be enclosed with a  matching  double  quote.  The
  2424.           matching double quote will simply be printed out  to  the caller.
  2425.           For further information please see the example abort file.
  2426.  
  2427.           ^F^B           User's full name.
  2428.  
  2429.           ^F^C           User's city and state/province.
  2430.  
  2431.           ^F^E           Current date.
  2432.  
  2433.           ^F^F           User's first name.
  2434.  
  2435.           ^F^R           Current time.
  2436.  
  2437.           ^L             Clear screen.
  2438.  
  2439.           ^V^A           Set color.
  2440.  
  2441.           ^V^B           Blinking on.
  2442.  
  2443.           ^V^C           Move cursor up one line.
  2444.  
  2445.           ^V^D           Move cursor down one line.
  2446.  
  2447.           ^V^E           Move cursor left.
  2448.  
  2449.           ^V^F           Move cursor right.
  2450.  
  2451.           ^V^G           Clear to the end of the line.
  2452.  
  2453.           ^V^H           Set cursor position.
  2454.  
  2455.           ^Y             Replicate [char] [number of times].
  2456.  
  2457.           Please check the relevant Opus documentation for further details.
  2458.  
  2459.  
  2460.  
  2461.  
  2462.  
  2463.  
  2464.  
  2465.  
  2466.  
  2467.  
  2468.  
  2469.           OPhone 2.66                  April 6th, 1991                   43
  2470.  
  2471.  
  2472.  
  2473.  
  2474.  
  2475.  
  2476.  
  2477.  
  2478.  
  2479.                                     Contents
  2480.  
  2481.  
  2482.                   1  Introduction  . . . . . . . . . . . . . . . . . 2
  2483.                   2  Changes and New Features  . . . . . . . . . . . 5
  2484.                   3  Basic Requirements  . . . . . . . . . . . . . . 7
  2485.                   4  Quick Setup . . . . . . . . . . . . . . . . . . 9
  2486.                      4.1  First Time Users . . . . . . . . . . . . . 9
  2487.                      4.2  Previous Users . . . . . . . . . . . . .  10
  2488.                   5  Local Menus . . . . . . . . . . . . . . . . .  11
  2489.                      5.1  Basic Menu Functionality . . . . . . . .  11
  2490.                      5.2  Primary Command Bar  . . . . . . . . . .  12
  2491.                   6  User Record Editor Menu . . . . . . . . . . .  14
  2492.                      6.1  User Access Levels . . . . . . . . . . .  16
  2493.                      6.2  Security Lock  . . . . . . . . . . . . .  16
  2494.                      6.3  User Help Levels . . . . . . . . . . . .  18
  2495.                      6.4  Session Time Control . . . . . . . . . .  18
  2496.                      6.5  Matrix Mail Cost Accounting  . . . . . .  19
  2497.                      6.6  File Upload/Download Accounting  . . . .  19
  2498.                      6.7  User Options Menu  . . . . . . . . . . .  20
  2499.                         6.7.1  User Display Menu . . . . . . . . .  21
  2500.                         6.7.2  User Language Menu  . . . . . . . .  22
  2501.                   7  Options Menu  . . . . . . . . . . . . . . . .  23
  2502.                      7.1  Menu Colors  . . . . . . . . . . . . . .  24
  2503.                      7.2  Main Screen Colors . . . . . . . . . . .  25
  2504.                         7.2.1  Color Menu  . . . . . . . . . . . .  26
  2505.                      7.3  Basic Session Control  . . . . . . . . .  27
  2506.                      7.4  Ring Schedule Control  . . . . . . . . .  29
  2507.                         7.4.1  Daily Event Editor  . . . . . . . .  29
  2508.                         7.4.2  Alarm Selection . . . . . . . . . .  30
  2509.                      7.5  OPhone File Configuration  . . . . . . .  31
  2510.                   8  The Remote (Caller) Side  . . . . . . . . . .  32
  2511.                   9  Script Language . . . . . . . . . . . . . . .  33
  2512.                      9.1  Script Commands  . . . . . . . . . . . .  33
  2513.                         9.1.1  Dos . . . . . . . . . . . . . . . .  33
  2514.                         9.1.2  Dosexit . . . . . . . . . . . . . .  34
  2515.                         9.1.3  Print . . . . . . . . . . . . . . .  34
  2516.                         9.1.4  Implied print . . . . . . . . . . .  34
  2517.                         9.1.5  Include . . . . . . . . . . . . . .  34
  2518.                         9.1.6  Exit  . . . . . . . . . . . . . . .  35
  2519.                         9.1.7  Define  . . . . . . . . . . . . . .  35
  2520.                         9.1.8  If conditional tests  . . . . . . .  35
  2521.                         9.1.9  Endif . . . . . . . . . . . . . . .  38
  2522.                   10  Metacharacters . . . . . . . . . . . . . . .  39
  2523.                   11  Environmental Variables  . . . . . . . . . .  40
  2524.  
  2525.  
  2526.  
  2527.                                           i
  2528.  
  2529.  
  2530.  
  2531.                   12  Using Metacharacters and Environmental
  2532.                       Variables  . . . . . . . . . . . . . . . . .  41
  2533.                   13  Opus Ansi or Avatar Control Codes  . . . . .  43
  2534.  
  2535.  
  2536.  
  2537.  
  2538.  
  2539.  
  2540.  
  2541.  
  2542.  
  2543.  
  2544.  
  2545.  
  2546.  
  2547.  
  2548.  
  2549.  
  2550.  
  2551.  
  2552.  
  2553.  
  2554.  
  2555.  
  2556.  
  2557.  
  2558.  
  2559.  
  2560.  
  2561.  
  2562.  
  2563.  
  2564.  
  2565.  
  2566.  
  2567.  
  2568.  
  2569.  
  2570.  
  2571.  
  2572.  
  2573.  
  2574.  
  2575.  
  2576.  
  2577.  
  2578.  
  2579.  
  2580.  
  2581.  
  2582.  
  2583.  
  2584.  
  2585.                                          ii
  2586.  
  2587.  
  2588.  
  2589.  
  2590.  
  2591.  
  2592.  
  2593.  
  2594.  
  2595.                                     Figures
  2596.  
  2597.  
  2598.                Figure 1: Exit Menu . . . . . . . . . . . . . . . . .12
  2599.                Figure 2: Sysop Help Menu . . . . . . . . . . . . . .12
  2600.                Figure 3: User Record Editor Menu . . . . . . . . . .14
  2601.                Figure 4: User Access Levels  . . . . . . . . . . . .16
  2602.                Figure 5: Security Lock . . . . . . . . . . . . . . .16
  2603.                Figure 6: Help Levels . . . . . . . . . . . . . . . .18
  2604.                Figure 7: Matrix Mail Cost Menu . . . . . . . . . . .19
  2605.                Figure 8: File Upload/Download Accounting Menu  . . .19
  2606.                Figure 9: User Options  . . . . . . . . . . . . . . .20
  2607.                Figure 10: Display  . . . . . . . . . . . . . . . . .21
  2608.                Figure 11: Language Menu  . . . . . . . . . . . . . .22
  2609.                Figure 12: Default Language Menu  . . . . . . . . . .22
  2610.                Figure 13: Options Menu . . . . . . . . . . . . . . .23
  2611.                Figure 14: Menu Colors  . . . . . . . . . . . . . . .24
  2612.                Figure 15: Main Screen Colors . . . . . . . . . . . .25
  2613.                Figure 16: Color Menu . . . . . . . . . . . . . . . .26
  2614.                Figure 17: Session Control  . . . . . . . . . . . . .27
  2615.                Figure 18: Ring Schedule  . . . . . . . . . . . . . .29
  2616.                Figure 19: Daily Events . . . . . . . . . . . . . . .29
  2617.                Figure 20: Alarm Selection  . . . . . . . . . . . . .30
  2618.                Figure 21: OPhone File Configuration  . . . . . . . .31
  2619.  
  2620.  
  2621.  
  2622.  
  2623.  
  2624.  
  2625.  
  2626.  
  2627.  
  2628.  
  2629.  
  2630.  
  2631.  
  2632.  
  2633.  
  2634.  
  2635.  
  2636.  
  2637.  
  2638.  
  2639.  
  2640.  
  2641.  
  2642.  
  2643.                                          iii
  2644.