home *** CD-ROM | disk | FTP | other *** search
/ Stars of Shareware: DFÜ und Kommunikation / SOS-DFUE.ISO / programm / dos / terminal / depty309 / readme.exe (.txt) < prev    next >
Encoding:
David's Readme Compiler Executable  |  1993-12-29  |  125.9 KB  |  1,818 lines

  1. 4YY_^
  2. 2YY_^
  3.  H PT
  4.  nY_^
  5. H9E0}
  6.  ; A B D G H I K M O P Q R S s t u vQ
  7. `Y_^]
  8. YYF;6
  9.  A B D7
  10. <Ar    ,@
  11. _^_^]
  12.  H I K M P Q6*6*V*$*{*
  13.  H I Q
  14. YYF;v
  15. ;Dz~    
  16.  H I K M P Q
  17. DF_^]
  18. YY9|,uK
  19. ;D@ui
  20. ;DDu2
  21. H9D0~
  22. 9D<|    u
  23. 17Y;D2v
  24. H9D0u
  25. YY_^]
  26. YY_^]
  27. p5Y)D:
  28. 1Y;D2wK
  29. `[.97t
  30.  G H I K M O P Q R S s t u w
  31. fJfJfFf
  32. eJfJf
  33. eJfJf=f(f#eYe
  34. u/SQR
  35. ntm9n
  36. pfmlmU
  37. [[XP3
  38. !r.RP
  39. !r$RP
  40. t$Ot!
  41. tx#>>
  42. Borland C++ - Copyright 1991 Borland Intl.
  43. Null pointer assignment
  44. Divide error
  45. Abnormal program termination
  46. Courier
  47. ind text   <F7>
  48. find 
  49. gain  <F8>
  50. rint entry     
  51. ave entry      
  52. dit entry      
  53. LPT1:
  54. LPT2:
  55. LPT3:
  56. Printer port :
  57. PostScript?  :
  58. Press <Space> to change values
  59. %!PS-Adobe-2.0
  60. %%Creator:DRC v2.0
  61. %%EndComments
  62. /leftmargin { 40 } bind def
  63. /bot { 54 } bind def /top { 
  64.  } bind def
  65. /cw { 40 } bind def
  66. /xtab
  67.  {currentpoint exch dup cvi
  68.  leftmargin cvi sub cvi
  69.  cw cvi mod sub
  70.  cw add
  71.  exch moveto
  72.  } bind def
  73. /ptsize { 12 } bind def /lead { 12 } bind def
  74. /F { findfont exch scalefont setfont } bind def
  75. /newline {
  76.  currentpoint exch pop lead sub
  77.  dup bot lt {
  78.   pop showpage restore save
  79.   top
  80.   } if
  81.  leftmargin exch moveto
  82.  } bind def
  83. %%Endprolog
  84. %%BeginSetup
  85. ptsize /| F
  86. leftmargin top moveto
  87. %%EndSetup
  88. Do you want to overwrite
  89. %.20s (Y/N)? 
  90. File exists
  91. %-50.50s
  92. newline
  93. ) show newline
  94. newline
  95. showpage restore
  96.  Print Settings 
  97.  - Printing -
  98.  Save as what file? 
  99. Failed saving to file!
  100.  PgUp/Dn: 
  101. <F10>
  102.  options
  103.  PgUp/Dn
  104.  Line %d of %d 
  105.  Search for 
  106. David's Readme Compiler, (c) 1992, David Harris.
  107. Readme error: no attached data.
  108.  Topics 
  109. MMMODE
  110.  ; < = > ? @ A B C D T U V W X Y Z [ \ ]
  111.  G O w u R S s t
  112. EAEIIOOUUYIOU
  113. (press any key to continue)
  114. Insert paper in printer then press
  115. a key (<ESC> cancels print)
  116.  Printer error 
  117. The printer on LPT%d: is
  118. confused
  119. out of paper
  120. off line
  121. Correct then press a key
  122. or hit <ESC> to cancel print
  123.  Insert Paper 
  124. <ESC>
  125.  key pressed:
  126. Please confirm cancel/quit
  127. Accept this data?  
  128.  Insufficient disk space 
  129. There is not enough space on the target
  130. disk to receive the file(s): please replace
  131. the disk with another formatted disk, then
  132. press any key to retry, or <ESC> to cancel 
  133. 0123456789
  134.          !!!!!                  
  135. @@@@@@@@@@@@@@@
  136. @@@@@@@
  137. @@@@@@
  138. @@@@ 
  139. ),(((((),(((
  140. (null)
  141. print scanf : floating point formats not linked
  142. uData file generated by RCOM.
  143.  Deputy Communications Software - A Brief Guide
  144. About Deputy
  145. Changes in Version 3.09
  146. Shareware Licence
  147. How to Register Deputy
  148. Installation
  149. Instructions
  150. Getting going
  151. Using Menus
  152. Setting up Deputy
  153. The Main Menu
  154. MNP5 Data Compression
  155. File Transfer
  156. The Text Editor
  157. The Dial Directory
  158. Other Features
  159. Keyboard Mapping
  160. Deputy Host Mode
  161. Calling the Deputy Host
  162. The Deputy Script Language (DSL)
  163. Script Auto-Learning
  164. Writing your own scripts
  165. DSL Command List
  166. Example Script
  167. Command Line Arguments
  168.                                  
  169.                                  
  170.      
  171.      
  172.      Advanced Communications software with MNP5 data compression
  173.   (c) 1993 SEG Communications  Email: Segcom@cix.compulink.com.uk
  174.             Written by Anders Heerfordt & Michael Spalter
  175.   Thankyou for obtaining this shareware copy of DEPUTY.  There are
  176.   many communications programs around now, but Deputy presents the
  177.   most advanced and useful facilities in a way  which is simple to
  178.   use for the novice and yet not cumbersome for the expert.
  179.   This Brief Guide should hopefully  give you good idea of what to
  180.   expect from Deputy once you start using it. Do remember that any
  181.   section of this guide can be sent to the printer by pressing F10.
  182.  Deputy's Main Features 
  183.  Avaiable in FOUR European Languages (more soon !)
  184.  MNP Levels 2,4 & 5 error correction & data compression
  185.  Powerful script language with 'learn' facility and
  186.     supporting 32 bit integers, string/integer arrays,
  187.     calling of daughter scripts and random access filing.
  188.  VT52/100/200/320, ANSI, Prestel, Minitel & Wyse60 Emulations
  189.  Full mouse support, including script language commands
  190.  Background file transfers - including droping to DOS
  191.  Zmodem, Xmodem, Ymodem, YmodemG, ASCII & Kermit protocols
  192.  Full history logs of all file transfers, with CPS rates
  193.  Built-in context sensitive informative help screens
  194.  Host mode with messaging and file transfer facilities
  195.  User friendly dial directory with history of all calls
  196.  Support for all DTE rates up to 115200 bps & 1200/75 split
  197.  Novell (tm) NACS/NASI Interface with multi-session support
  198.  Easy to learn user interface with 'Hot-Key' commands
  199.  Support for 16550 buffered UARTS & INT14 interfaces
  200.  Pop-up menu windows can be shifted horizontally/vertically
  201.  External protocol support & 43/50 line VGA modes
  202.  Mercury compatibility with id encryption (UK only)
  203.   We are sure that you'll find this guide useful and hope  that  you
  204.   find  Deputy suitable for your purposes and will register soon. We
  205.   often make alterations and improvements to Deputy as a  result  of
  206.   user  feedback;  because  of this, the manual may not always match
  207.   the software exactly.
  208.   Readme Version 1.8
  209.   This Brief Guide was created using DRC by David Harris; he
  210.   can be reached by Email at david@otago.ac.nz.
  211.   MNP is a registered Tradmark of Microcom Inc.
  212.   Deputy is a registered tradmark of SEG Communications
  213.   Netware is a registered trademark of Novell Inc.
  214.  Changes in Version 3.09 
  215.   This is Deputy 3.09.  This replaces SHAREWARE Version 3.04.
  216.   Versions 3.05 through to 3.08 were not released as shareware.
  217.   NOTE : If you are upgrading a previous  version  of  Deputy,  you
  218.   will lose the contents of your dial directory and config file, as
  219.   the  formats  have  changed  since  V.3.04.  Registered users may
  220.   receive a conversion utility to convert the dial directory.
  221.   Since  Deputy  version  3.04,  we  have  made  various  changes  and
  222.   improvements as a result of  user  feedback  and  suggestions.  Most
  223.   changes are internal and may not be noticed by many users:
  224.   * Problem of 'VERSION OUT OF DATE' fixed
  225.   * Built in Novice mode removed; instead, the script AUTO.DSL
  226.     is provided which will run automatially if NOVICE MODE is
  227.     enabled. This is more flexible as AUTO.DSL can be modified.
  228.   * Command line -MEM option added. This disables overlays which
  229.     therefore uses more memory but increases menu 'popup' speed.
  230.   * SC.EXE will now run in less RAM
  231.   * You can select Alt hotkeys when the bar menu is active
  232.   * Kermit7 added to upload menu
  233.   * Changes to INT14 to support Extended BIOS calls
  234.   * Changes to flow control, so that when you disable it when
  235.     the flow is blocked, the flow is restarted automatically.
  236.   * In the editor, wrap now defaults to 'ON'
  237.   * DCD status now reports true state in INT14 (BIOS) mode
  238.   * In the Host mode, some changes to echo to main screen.
  239.   * The success sound setting now affects the Bell signal
  240.   * Some work on video modes, to make them work with odd VGA cards
  241.   * Shell escapes under DV are not multitasked anymore, so a file
  242.     transfer will not progress while you are shelled to DOS under DV.
  243.   * Filenames are now truncated to 11 chars in download log
  244.   * The accuracy of the Wyse and other VT emulation has been improved
  245.   * Modem init string input window now scrolls horizontally
  246.   * Key input window now shows same number of chars as dial window
  247.   * VT320 codes for special keys changed from CSI to ESC[.
  248.   * If you load 'PRINT' while shelled to DOS you will get a warning
  249.   * DSL: New PushKey command simulates a keypress
  250.   * DSL: DoWait() now returns -1 instead of 0FFFFH when timeout.
  251.   * DSL: New commands: Arg, Call, DialKey, DialNumber, Rand.
  252.   * DSL: 'OK' declared as a variable in all learned scripts.
  253.   * If the dial string is empty, Dial will succeed without
  254.     dialling. Speed, parity etc will be set from the dial dir.
  255.   * If the dial string starts with !, dialling is passed-through.
  256.   * Function keys refreshed when carrier drops.
  257.   * Strip parity bit setting of terminal emulation now has priority over
  258.     the general strip parity setting. So if you have set strip ON and
  259.     select the 'BBS' emulation, BBS wil override the strip setting.
  260.   * If a zmodem is resumed, the diskspace is compared to the remaining
  261.     filesize after opening the file, rather than the complete filesize.
  262.  Changes in Version 3.04 
  263.  Since version 3.00, user feedback has  enabled  us  to  make  various
  264.  changes  to  Deputy to make it even more user friendly.  In addition,
  265.  we have made various performance  enhancements  and  added  some  new
  266.  features.   Notably,  the  user  interface  has now been changed to a
  267.  'pull down' style and you can now use a mouse to control Deputy.  The
  268.  following  list  details  most  of  the  noticable  changes,  in   no
  269.  particular  order. Further details are given at the bottom:
  270.  * All IRQ's from 2-7 are now allowed for custom ports
  271.  * Message to show 'no scripts' added.
  272.  * Script menu is now not limited to 15 script names
  273.  * DSL Commands added:
  274.    NAP, DTR, CTS, RTS, RI, DSR, WrStr, FSeek
  275.    FTell, FRdChar, FWrChar, CloseGrab, TDelay
  276.  * New DSL command: SendChar(ch:CHAR) added to script language.
  277.  * New DSL command: SetRawLog(b:BOOLEAN) added to script language.
  278.  * effect of /r in strings changed to carriage return only
  279.  * Integers are now 32 bits
  280.  * Menuing system redesigned; now uses a 'pull down' system.
  281.  * String Arrays are now fully tested and supported
  282.  * Mouse support added ! Left button brings up menu.
  283.  * Mouse(Boolean) DSL command added - enables the mouse cursor
  284.  * ReadMouse() DSL function returns buttons pressed
  285.  * WhereMouse(X,Y) will return 0-79,0-24 giving mouse position
  286.  * Fsize and Diskspace now return results in bytes not Kb
  287.  * File Menu now shows printer status (on or off)
  288.  * Self-contained manual now has a search option.
  289.  * Mercury dialling tidied up on the screen
  290.  * Zmodem transfers speeded up on 8250 and slow machines.
  291.  * 43/50 line mode routines changed.
  292.  * When trying to load too large a file to editor, it will refuse.
  293.  * Selecting port that doesnt 'exist' will give you warning
  294.  * 16550 FIFO status restored when program exits
  295.  * Some work done to make shelling to DOS safer under DOS5 and later.
  296.  * Kermit changed to make it better cope with parity errors on Kermit7.
  297.  * Kermit7 protocol added to upload menu
  298.  * 'Type' option moved to upload menu
  299.  * Upload directory added to file transfer setup menu
  300.  * The -Z command line option now disables Zmodem streaming
  301.  * Kermit changed so that the AddCR doesn't have an effect.
  302.  * Shareware message is now not flashing and is less frequent.
  303.  * Keyboard is polled less frequently during file downloads.
  304.  * Some changes to the sequence of events at loadtime/exittime
  305.  * Change to learn mode, to do with the effect of ESC.
  306.  * If program runs out of free memory, ESC won't misbehave.
  307.  * Some causes of obscure hangs fixed
  308.  * Various 'little niggles and quirks' changed
  309.  * Array elements can be set by procedures such as read();
  310.  * Compiler won't scroll seeen if there's an error
  311.  * Pressing Ctrl-Space when online now sends a 'null'.
  312.  * The Macros from the setup are now set when the program loads.
  313.  * Macros are reset when carrier drops.
  314.  * The cursor is forced on when the program exits
  315.  * DSL command Pos() now returns -1 if it doesnt find a match.
  316.  * Mouse now also works in Y/N windows. Works as ESC in menus.
  317.  * Changes done done to Minitel in the areas of inverted attribute,
  318.    double hight attribute, accents, and undocumented terminal features.
  319.  * Changes to make cursor proper shape after videomode changes.
  320.  * Install program altered and made friendlier
  321.  * A problem with Wyse semigraphics sometimes not working, fixed.
  322.  The Shareware Concept 
  323.   This software is provided on a try-before-you-buy arrangement. You
  324.   may use the software  for  up  to  30  days  without  payment,  to
  325.   determine  if it meets your requirements. If, after this time, you
  326.   wish to continue using the software, you are required to  register
  327.   it  and make full payment.  Payment entitles you to continue using
  328.   the software; in addition you will receive a printed manual and  a
  329.   copy of the latest (non-shareware) version of Deputy.
  330.   Also,  once  you  register Deputy, you will be entitled to receive
  331.   updates of the software for one year, subject to a small  handling
  332.   fee  to cover the costs of distribution. You will also be entitled
  333.   to 90 days unlimited telephone support  from  our  London  office.
  334.   Technical  support  is also available on Compuserve, Cix and other
  335.   commercial online system in the UK and Worldwide.
  336.   You are encouraged to distribute the  shareware  version  of  this
  337.   software  amongst  friends and collegues and upload it to bulletin
  338.   boards so that others can evaluate it; it must be  distributed  in
  339.   its  original  form  and  complete  with all associated files.  No
  340.   money may  be  charged  for  such  distribution,  other  than  for
  341.   legitimate copying or media charges. Deputy may not be supplied as
  342.   part of any other purchase without written permission.  We reserve
  343.   the right to withdraw or alter this licence at any time.
  344.   The Shareware Concept relies on honesty; many months of hard  work
  345.   have  gone into creating this software.  Continued development can
  346.   only be possible by support from the users. If you have  comments,
  347.   suggestions  (or even complaints) about the software please let us
  348.   know about them.
  349.   Remember that this shareware version  of  Deputy,  although  fully
  350.   functional,  is  only intended to give you a trial-run of Deputy -
  351.   there are some facilities which to take full advantage of, you may
  352.   need to refer to the  manual  which  you  will  receive  when  you
  353.   register, particularly the DSL command language.
  354.  IMPORTANT NOTES FOR SHAREWARE VENDORS / BULLETIN BOARDS ETC. 
  355.   Vendors of shareware discs are welcome to distribute the shareware
  356.   verion of Deputy in its complete form providing  that  they  first
  357.   notify  SEG  that  they intend doing so - this is so that we can
  358.   keep you on our database to ensure that you always have the latest
  359.   version of Deputy.  Such distribution is subject to all the normal
  360.   terms shown in the shareware licence elsewhere.  Vendors  may  not
  361.   charge  more  than 
  362. 10 for supplying Deputy, although most vendors
  363.   charge considerably less. It should be made  clear  to  purchasers
  364.   that  they  are  not  buying or paying for the registration of the
  365.   software; the fee they pay to you is merely an administration  and
  366.   distribution charge.
  367.   Bulletin Boards and other  online  systems  are  also  welcome  to
  368.   distribute  the  shareware version of Deputy to their users in its
  369.   complete form as long  as  no  special  charge  is  made  for  the
  370.   distribution, other than your normal connection/online charges.
  371.   Deputy MAY NOT be  supplied  together  with  any  other  goods  or
  372.   services  without  the  written  permission  of SEG; for instance,
  373.   Deputy may not be bundled when selling modems. If you wish  to  do
  374.   this, please call SEG for written clearance first.
  375.  Software Licence 
  376.   This  user  manual  and  the  associated  software is protected by
  377.   international copyright law. Unauthorised duplication, other  than
  378.   that  allowed  under  the  shareware distibution concept described
  379.   herein is prohibited.  Please read the licence terms  shown  below
  380.   before  using this software. ALL TRADEMARKS ACKNOWLEDGED. 'MNP' is
  381.   a registered trademark of Microcom Corp.   'Hayes'  is  (c)  Hayes
  382.   Inc.    MS-DOS  is  (c)  Microsoft  Corp.   'Deputy'  is  (c)  SEG
  383.   Communications.
  384.   Deputy  is  NOT  'free'  or  'public  domain'  software.    Deputy
  385.   (comprising  the  software,  utilities,  supporting  files and all
  386.   documentation) is the copyright property of SEG Communications. It
  387.   may not be duplicated in part or full, except under the terms laid
  388.   out in the shareware agreement shown elsewhere.  Deputy may not be
  389.   supplied with any other paid-for goods or services  without  prior
  390.   written  permission.  SEG  may  at any time withdraw the shareware
  391.   licence.  Due to  our  continuing  programme  of  ongoing  product
  392.   development,  we  cannot  guarantee  that  these instructions will
  393.   match the software exactly; from time to time, features are added,
  394.   removed or altered.  It should be remembered that although  Deputy
  395.   provides compatibility with various terminal emulations, there are
  396.   many  differences  between  PC's and dedicated terminals; as such,
  397.   various compromises have to be made with the emulations.
  398.   The  software  and  documentation   may   not   be   modified   or
  399.   reverse-engineered  in any way.  The software is provided "as-is".
  400.   Neither SEG Communications or the authors offer any warranty  that
  401.   Deputy   is   suitable   for  your  purposes  or  error-free.   No
  402.   responsibility is accepted for any loss arising  as  a  direct  or
  403.   indirect  result  of using the software. This being so, every care
  404.   has been taken to ensure that the software  is  free  of  defects.
  405.   Users  are granted a non-exclusive licence to sample the software,
  406.   but ownership  of  the  software  and  documentation  remains  the
  407.   property  of the copyright owners.  Usage outside the terms of the
  408.   shareware terms stated elsewhere in this document is prohibited.
  409.   IN  ADDITION  TO  THE  ABOVE,  ALL  PARTIES  ARE  PROTECTED BY ANY
  410.   STATUTORY LAWS IN THEIR COUNTRY,  PARTICULARLY  THOSE  RELATED  TO
  411.   COPYRIGHT  AND  SOFTWARE  THEFT.  ANY PERSON OR ORGANISATION FOUND
  412.   CONTRAVENING ANY TERMS OF THIS LICENCE ARE LIABLE TO PROSECUTION.
  413.  Deputy Registration Details 
  414.   For your convenience,  print out the following order form;  to do
  415.   so,  ready your printer  and then press 'P'.  The easiest  way to
  416.   register Deputy is with your credit card. You can make your order
  417.   by fax, phone or mail or E-mail. Site licences are available.
  418. The current registration price is 
  419. 49 (UK Pounds), until 30/06/94
  420.   Surname ............................. Initials ..................
  421.   Company Name (if applicable) ....................................
  422.   Address .........................................................
  423.   .................................................................
  424.   From where did you obtain Deputy ? ..............................
  425.   Please supply .......... copies of Deputy at 
  426. 49 each (UK Pounds)
  427.   Carriage:  
  428. 3 UK    
  429. 5 Europe    
  430. 7 Rest of the world
  431.   VAT @ 17.5% must be added to all orders within the UK/EC
  432.                                           ^^^^^^^^^^^^^^^^
  433.   (e.g. One copy of Deputy, for UK delivery is 
  434. 61.11 inc.)
  435.   Total Payable .....................  Disc Size: 3.5 / 5.25 / 360K
  436.   Payment by: Money order / Visa / Mastercard / Cheque
  437.   Card Number ................................. Expires ...........
  438.   Cardholder Name/Address .........................................
  439.   .................................................................
  440.   An invoice will be provided. Send or Fax completed form to:
  441.       Deputy Registration            Or Call: (081) 959 3377
  442.       SEG Communications               Fax: (081) 959 2137
  443.       137 Hale Lane
  444.       Edgware                  International: + 44 81 959 3377
  445.       Middx HA8 9QP                      Fax: + 44 81 959 2137
  446.       United Kingdom              Email: segcom@cix.compulink.co.uk
  447.  WE REALLY DO VALUE YOUR OPINION. If you have comments or suggestions 
  448.  about Deputy, please let us know. Deputy is a user supported program.
  449.  Installation 
  450.   If  this  disc was provided on disc directly by SEG Communications
  451.   or from a software library then follow  the  instructions  on  the
  452.   floppy  disc  to  copy  all  the  files into a suitable directory.
  453.   Answer the questions when prompted and  the  installation  process
  454.   should then complete automatically.
  455.   If  this  software  was  downloaded from a bulletin board or other
  456.   online system, un-arc or un-zip the files  into  a  newly  created
  457.   directory, e.g. C:\DEPUTY.
  458.   This archive should contain at least the following files:
  459.   README.EXE    - The Automatic brief guide to Deputy (this!)
  460.   DEPUTY.EXE    - The main executable file
  461.   DEFAULT.HLP   - Help Data (One file for each language)
  462.   DEFAULT.LNG   - Language file (one for each language)
  463.   DEPUTY.DIR    - The Default dial directory
  464.   DEPUTY.MSG    - Default file for text editor (you can delete this)
  465.   DSLFILES.EXE  - Sample DSL source files (self-extracting, run it)
  466.  To start Deputy, change to its directory and type: 'DEPUTY <ENTER>'.
  467.  ** HELP IS ALWAYS AVAILABLE WITHIN DEPUTY BY PRESSING ALT-F1 **
  468.  This  shareware  version  of  the manual assumes that you have a
  469.  'basic' knowledge of  comms  principles;  being  somewhat  of  a
  470.  potential  minefield, this guide would soon become three volumes
  471.  thick if we attempted to unravel comms  for  everyone.
  472.  Remember that this manual is only a very brief intruction guide;
  473.  when you register Deputy, you receive the  full  printed  manual
  474.  which covers everything in much greater depth.
  475.  If this is the first time you have run Deputy, it probably won't
  476.  be  configured.   As  such, it will immediately ask you the most
  477.  important setup options; the screen you  are  using  (colour  or
  478.  mono) and to which port your modem is connected to (e.g. COM1).
  479.  If this version of Deputy has come with any language files, then
  480.  you will also be asked which langauage you wish to use.
  481.  When  Deputy  loads,  after the shareware notice, you are placed
  482.  into in terminal mode, in the default emulation. Of course, when
  483.  you register Deputy, you receive a verison of Deputy without the
  484.  shareware reminder screens. You can immediately start talking to
  485.  your modem with 'Hayes' AT commands from this position.
  486.  The  line  at the bottom of the screen is the STATUS LINE.  This
  487.  gives you information about the current status of  the  software
  488.  and  your  modem.  It  should look something like the first line
  489.  shown below; each item is annotated:
  490.  Deputy 
  491.  DCD CTS 
  492.  No Log 
  493.  9600 NORM 
  494.  TTY   
  495.  000 
  496.   00:00   0
  497.        
  498.       
  499.        
  500.       
  501.        
  502.        
  503.      
  504.        
  505.       
  506.        
  507.       
  508.        
  509.      
  510.        
  511.       
  512.        
  513.       
  514.  Call Cost 
  515.      
  516.        
  517.       
  518.        
  519.       
  520.   Time online 
  521.      
  522.        
  523.       
  524.        
  525.       
  526.      RX speedometer 
  527.        
  528.       
  529.        
  530.       
  531.  Terminal Emulation
  532.        
  533.       
  534.        
  535.  MNP mode (MNP2, MNP4, MNP5)
  536.        
  537.       
  538.        
  539.  COM speed (300-115200 bps)
  540.        
  541.       
  542.  Name of open log file (if any)
  543.        
  544.  Status of RS232 'CTS' (clear to send) line
  545.        
  546.  Status of RS232 'DCD' (carrier detect) line
  547.  Name of currently active script (if any)
  548.  The  two  RS232 status indicators DCD and CTS are displayed when
  549.  true (or highon) and are blank when false (lowoff). If there  is
  550.  no  active  script  (see  later), then that space is occupied by
  551.  "Deputy" as shown above. Call cost is  shown  in  pence  and  is
  552.  active  only  when  the  optional  external call cost program is
  553.  used.
  554.  Pressing Alt-M in terminal mode  (or  clicking  the  left  mouse
  555.  button)  will  bring  up Deputy's main bar menu.  From here, you
  556.  can select most Deputy functions by  selecting  the  appropriate
  557.  option.    Each   option  on  the  bar  menu  will  bring  up  a
  558.  corresponding sub-menu - you can press the left or right  arrows
  559.  to move to the next menu along.
  560.  Alternatively,  most menus can be brought up instantly by use of
  561.  hot-keys.  These are shown on the main menu; for instance  "Dial
  562.  Directory  ALT-N".   This  means  that  to  call  up the dialing
  563.  directory, you press <N> whilst holding down the <ALT> key.
  564.  If this is the first time you are running Deputy, then  various
  565.  preferences  can  now  be set, in addition to those already set.
  566.  From the main Menu select setup.  As mentioned  previously,  you
  567.  can alternatively bring up the setup menu by pressing Alt-S; see
  568.  the next section 'SETTING UP DEPUTY'.
  569.   *** REMEMBER: MENU WINDOWS CAN BE SHIFTED AROUND THE SCREEN **
  570.    *** BY PRESSING CTRL-LEFT/CTRL-RIGHT OR CTRL-UP/CTRL-DOWN ***
  571.  The setup menu (Alt-S or 'S' from the main menu) enables  to  to
  572.  customise   Deputy   to  both  your  system  and  your  personal
  573.  preferences. The menu looks like this:
  574.        S - Serial
  575.        M - Modem Control
  576.        E - Emulation
  577.        F - File Transfer
  578.        S - Screen Setup
  579.        A - Macro Setup
  580.        H - Host Setup
  581.        U - Miscellaneous
  582.        S - Save Options
  583.       Each option will bring up its own 'sub-menu' as follows:
  584.       S - Serial
  585.         This   option   allows  you  to  select  all  of  your  default
  586.         communications parameters.  These may need to  be  altered  for
  587.         different  services,  so they can also be set for each entry in
  588.         the dialing directory (see section  10).  The  options  are  as
  589.         follows:
  590.         PORT:  This  selects the COM or Serial port to which your modem
  591.         is connected. Often it will be COM1, but if your  computer  has
  592.         more  than  one COM port, you may have another peripheral, such
  593.         as  a  mouse,  connected to COM1, in which case, select and use
  594.         COM2 for your modem.
  595.         BAUD: The term 'Baud' is actually deliberately misused here; in
  596.         this context we actually mean Bits Per Second  (BPS)  and  this
  597.         refers  the  speed  of communication between the modem and your
  598.         computer.  This should be set to the highest line speed of your
  599.         modem  (eg  2400),  however,  if  your  modem   supports   data
  600.         compression,  the  Baud  Rate setting should be doubled or even
  601.         trippled if you are using V42bis.  Refer to your  modem  manual
  602.         for recommendations.
  603.         PARITY:  This  option  controls  not only the data parity (odd,
  604.         even or none), but also the byte length (7 or 8 bits). All data
  605.         types supported have only one stop bit.  For  most  systems,  a
  606.         setting  of 8N1 is required but there are various systems which
  607.         support 7 bit data, normally requiring a  setting  of  7E1;  in
  608.         particular viewdata or 'Prestel' type systems use 7E1 data.
  609.         STRIPT PARITY & CHECK PARITY: These two  options  are  normally
  610.         only  useful  in special cimcumstances. They allow you to strip
  611.         the 8th bit from each byte (Binary 'AND' with 127) and  discard
  612.         bytes whose parity is incorrect, respectively.
  613.         RTS/CTS: This controls 'hardware flow control' and is desirable
  614.         wherever  possible,  assuming  that your modem supports it; you
  615.         may have to enable it  on  your  modem  with  a  command.  Flow
  616.         control  ensures  that the modem and computer only receive data
  617.         when they are ready to handle it. RTS and CTS are  two  control
  618.         lines which form part of the modem cable.
  619.         XON/XOFF:  This  controls 'software flow control' and is useful
  620.         where RTS/CTS flow control cannot be used. Instead of  toggling
  621.         the  RTS/CTS  lines,  an XOFF code is sent to request that data
  622.         flow stops followed by an XON code to resume. Again,  this  may
  623.         also need to be enabled on your modem.
  624.         MNP:  Deputy's  MNP  Level  5 emulation is covered in detail in
  625.         section 7. This option allows you to set the level  of  service
  626.         that you require: None, Level 4, Level 5 or Auto, in which case
  627.         Deputy will attempt to establish the highest level possible.
  628.       M - Modem Control
  629.         This  option allows you to alter the commands which Deputy uses
  630.         to for control your modem.
  631.         PREDIAL COMMAND: This setting is often left blank but  can  can
  632.         be  a  command  to  enable  a particular feature, such as error
  633.         correction,  on  your  modem.   A  Carriage  Return   <CR>   is
  634.         automatically sent after the command.
  635.         DIAL COMMAND: On a 'Hayes compatible' modem, the  Dial  command
  636.         is  almost  always  ATD  but can be suffixed by a 'T' or 'P' to
  637.         select tone or  pulse  dialing. If you are on an internal PABX,
  638.         you  may also want to add an 9 followed by a comma to select an
  639.         outside line. eg ATDT9,
  640.         PRE-HOST and POST-HOST COMMANDS: These are the commands used by
  641.         Deputy's Host Mode to enable and disable auto-answering on your
  642.         modem.  These are normally ATS0=1 and ATS0=0 respectively.
  643.         DIAL TIMEOUT: This sets the length of time that  Deputy  allows
  644.         for  a  call  to connect before reporting no answer. A sensible
  645.         setting is 60 seconds; your modem may have its own timer.  If a
  646.         number is engaged, the attempt will abort immediately.
  647.         DTR DISC: Some modems do not drop the line in response to DTR
  648.         dropping, particularly  if  you  are using a non-standard modem
  649.         cable. This option allows you to enable the Hayes (tm) Standard
  650.         method for dropping the line by issuing the +++ escape sequence
  651.         followed by the ATH0 command.
  652.         ROUTING  ID:  Users  in the UK may have access to a Mercury 2300
  653.         account, whereby calls may be routed via Mercury. If you have  a
  654.         Mercury  account,  then you can enter your 10 digit ID code plus
  655.         any cost centre digits  here.   You  than  then  select  Mercury
  656.         routing  from  within  the dial directory (see section 10).  For
  657.         security purposes, you cannot display your Mercury ID,  it  will
  658.         be shows as a series of asterisks.
  659.       E - Emulation
  660.         This option allows you to select the default terminal emulation
  661.         for Deputy.  Current emulations supported are  TTY  (Teletype),
  662.         VT52, VT100/102, VT200, VT320, ANSI, PRESTEL and WY60 (Wyse 60)
  663.       F - File Transfer
  664.         This controls various options with regard to File Transfer:
  665.         DOWNLOAD  DIR:  This  option  allows  you  to set the drive and
  666.         directory where  downloaded  files  are  to  be  saved.  If  no
  667.         directory is set, then downloads will be saved into the current
  668.         directory.
  669.         AUTO ZMODEM: This will enable Deputy to automatically  start  a
  670.         Zmodem  download  when  it sees the standard Zmodem header from
  671.         the remote system.
  672.         AUTO CIS: For users of the Compuserve conferencing system, this
  673.         option  will enable  downloads to start automatically using the
  674.         'Compuserve B' file transfer protocol.
  675.         EXISTING  FILES:  If  you  try to download a file which already
  676.         exists on your computer then there are  various  actions  which
  677.         Deputy  can  take:  overwrite, abort, rename the file or to ask
  678.         you each time, which is the most flexible option.  In addition,
  679.         if  you  are using Zmodem, you also have the option to resume a
  680.         previously    interrupted    file    transfer    which    saves
  681.         retransmitting the whole file in full.
  682.         RENAME: Under some circumstances, you may wish to always change
  683.         the filename of downloaded files. If you  enable  this  option,
  684.         you will be prompted for a new filename at every download.
  685.         ABORTED FILES: This determines the action that Deputy will take
  686.         if  a  download is interrupted for any reason.  There are three
  687.         options: Delete the part-file, keep it, or ask you  each  time.
  688.         If  you  are  using  Zmodem,  then interrupted downloads can be
  689.         restarted so it is worth keeping the part-file.
  690.         FORCE NAME: Although unlikely, under some circumstance, you may
  691.         wish  to set the filename under which all downloads are stored.
  692.         To do this, enter the name under this option. Bear in mind that
  693.         you are likely to get continuous reminders that the file exists
  694.         if you try to download more files.
  695.         SUCCESS  SOUND: Whilst a download is in progress, you may often
  696.         leave the computer and do something else. Enabling the  Success
  697.         Sound will make Deputy sound a pleasant warble noise to let you
  698.         you know that a file transfer has completed.
  699.         EXTERNAL  UPLOAD  &  DOWNLOAD:  Deputy provides seven different
  700.         file transfer protocols, however there  may  be  a  specialised
  701.         protocol which you wish to use which is provided by an external
  702.         program. These two options allow you to  specify  the  filename
  703.         and  command  line syntax for uploading or downloading using an
  704.         external program.   Full  pathnames  should  be  specified,  if
  705.         applicable.
  706.       C - Screen Setup
  707.         WRAP: Under some terminal  emulations,  when  the  cursor
  708.         reaches  the  end of the line, it should move down to the
  709.         start of the next line.   However,  should  you  wish  to
  710.         inhibit  this,  disabling  WRAP will cause all characters
  711.         received after column 79 to be  lost,  until  a  carriage
  712.         return  is  received.  Most  systems  which you call will
  713.         never allow column 79 to be reached  without  a  Carriage
  714.         Return anyway, so WRAP will most often be unimportant.
  715.         STATUSLINE: This enables or disables Deputy's Status Line
  716.         which is normally diaplayed at the bottom of the screen.
  717.         SHADOWS:  The  shadows  cast  by  pop-up  windows  can be
  718.         disabled by using this option.
  719.         SCREEN MODES: This option applied to EGAVGA screens  only
  720.         and  allows  you  to  select the screen mode; 25,43 or 50
  721.         lines. EGA screens should use 43 lines, whilst VGA should
  722.         use 50 lines.
  723.         SCREEN  SAVER:  For  both  privacy  and  reducing  screen
  724.         burn-in,  it  is  often  desirable to dim a static screen
  725.         display.  Enabling Deputy's Screen  Saver  will  dim  the
  726.         screen after a preset time of inactivity.  Time should be
  727.         entered  in  seconds.   This  facility should not be used
  728.         with multi-tasking enviroments.
  729.         COLOURS:   The   'Colours'   option   may    take    some
  730.         experimenting.  It  allows  you  to  completely customize
  731.         every aspect of the Deputy colour  scheme.   Colours  are
  732.         refered  to  by number. When you select each item, a grid
  733.         is displayed  showing  you  all  available  colours.  For
  734.         instance,  if  you  want  to select yellow on red for the
  735.         status line you would enter '78'.  As  well  as  allowing
  736.         you  to  select COLOUR, BLACK & WHITE or MONOCHROME mode,
  737.         the following colours can be changed:
  738.         Mainscreen  - The default colour of the main terminal screen
  739.         Statusline  - The colour of the status line at the bottom
  740.         Menuframe   - The colour of the frame which borders menus
  741.         Menutext    - Normal text within menu frames
  742.         MenuSelect  - The highlighted item on a menu
  743.         Fileinfo    - File information on the filetransfer window
  744.         FileinfoFr  - Frame colour of the file transfer window
  745.         Prompt      - Colour of static promptslabels within windows
  746.         Error       - Any error messages which may occur
  747.         Errorframe  - The frame around any error messages
  748.         Progressbar - The progress bar in the file transfer window
  749.         BLOCK CURSOR: By default, Deputy  uses  a  blinking  line
  750.         cursor; this option gives you a flashing block instead.
  751.         CHARACTER   SET:  When  in  VT320  mode,  this  selection
  752.         determines which international character set is used.
  753.       A - Macros
  754.         Deputy  allows  you  to  set  up to ten Macros; these are
  755.         words or strings which you may regularly need to type. By
  756.         programming the Macros, you can send  them  automatically
  757.         by  pressing  function keys F1 to F10. Select this option
  758.         to edit them. You  can  insert  control  codes  into  the
  759.         macros  by  quoting  them  as  three digit octal numbers,
  760.         preceeded by a reverse oblique: e.g. \007
  761.       H - Host mode setup
  762.         Deputy has a  sophisticated  host  mode  function.   This
  763.         option allows you to set normal and privileged passwords.
  764.         Full details on the host mode are given in section 12.
  765.       M - Miscellaneous
  766.       This menu option controls various functions:
  767.         RAW  LOGGING:  When you are logging incoming text to disc
  768.         (see section 10), then Deputy  will  normally  strip  all
  769.         control codes (VT100, ANSI etc.) so that the log contains
  770.         plain text.  If you require the file to include all bytes
  771.         received including control codes then enable Raw Logging.
  772.         LOCAL  ECHO:  If the system you are connected to does not
  773.         echo what you type, enabling Local Echo will  enable  you
  774.         to  see what you are typing - this can be useful when you
  775.         are communicating with someone else using Deputy.
  776.         REMOTE  ECHO  will  force  all  text   received   to   be
  777.         immediately  echoed back to the remote system; this could
  778.         also be useful when  communicating  with  another  Deputy
  779.         user.  Note:  If  you  have REMOTE ECHO enabled, then the
  780.         remote user should NOT have local echo enabled, and  vice
  781.         versa.
  782.         CR->CRLF:   Some  systems  do  not  send  linefeeds  with
  783.         carriage returns; if at the end of  a  received  line  of
  784.         text  the  cursor  moves to the start of the line but not
  785.         down a line, then enabling CR->CRLF IN should cure  this.
  786.         Similarly,  enabling  CR->CRLF  OUT will add linefeeds to
  787.         all carriage returns transmitted.
  788.         BS  DESTRUCTIVE: Normally, pressing the backspace key has
  789.         the effect  of  moving  back  a  space.   However,  under
  790.         certain  circumstances,  you  may  wish  the BS key to be
  791.         destructive, i.e.  move  back  a  space  and  remove  the
  792.         character at that position.
  793.         MARGIN  BELL:  For  some  systems  it may be useful to be
  794.         warned when your cursor approaches the end of a line.  If
  795.         this option is enabled, Deputy will 'beep' when you  pass
  796.         column 77 on the screen.
  797.         BUFFER  SIZE: Once text has scrolled up of the screen you
  798.         can still view it again by calling the Review Buffer with
  799.         Alt-R.  This  setting  defines  the  amount   of   memory
  800.         allocated to the review buffer.
  801.         NOVICE  MODE: If Novice Mode is selected, whenever Deputy
  802.         is not connected to a remote service, a  simple  to  use,
  803.         four  option  menu  will  appear  on  the  screen. If you
  804.         disable Deputy's Novice Mode, you  control  it  with  the
  805.         normal menus and  hot-keys. The  NOVICE  mode is actually
  806.         a normal DSL script called AUTO.DSL, so you can edit it.
  807.         EDITOR  COMMAND:  Deputy  has  a  built  in  text  editor
  808.         allowing full manipulation of text (see  later  section).
  809.         You  may,  however,  prefer  a  different,  external text
  810.         editor such as Edlin.  By entering its filename here, the
  811.         external editor will be called in place of  the  internal
  812.         Deputy editor.
  813.         INACTIVITY   TIMEOUT:  This  facility  will  prevent  you
  814.         accidentally leaving your modem  online  and  running  up
  815.         phone  charges; if no data is sent or received for longer
  816.         that the time specified (in seconds),  then  Deputy  will
  817.         hang  up the line.  Time is entered in seconds and counts
  818.         from that time that the last data was receivedtransmitted
  819.         or a key pressed.
  820.       O - Save Options
  821.         Once you have set up  your  preferences,  you  must  save
  822.         them  to  the config file if you want these options to be
  823.         retained  when  you  exit  Deputy,  otherwise  they   are
  824.         temporary  only.   Selecting  this  option  will save the
  825.         config file.
  826.  As mentioned previously, pressing Alt-M from terminal mode  will
  827.  bring  up  Deputy's main menu. From here, you can select most of
  828.  Deputy's other functions. In most cases, you can bypass the main
  829.  menu and initiate each option instantly  with  the  hot-keys  by
  830.  pressing  the key combination shown on the right of each option.
  831.  The main bar menu's options are as follows:
  832.  FILE   SCRIPT  MAIN   DIAL   SETUP  DOWNLOAD  UPLOAD  EXIT   HELP
  833.  The file menu (Press Alt-F) will being up these option:
  834.     O - DOS       - Shell to DOS, but remain online.
  835.     X - Exit      - Leave Deputy altogether
  836.     L - Logging   - Turn logging on or off
  837.     P - Printer   - Turn the printer on or off
  838.     D - Directory - View a disc directory
  839.  The  SCRIPT  menu  brings up a list of available scripts, either
  840.  compiled or not compiled. The MAIN menu displays  commonly  used
  841.  functions  of  Deputy  such  as 'clear screen' and 'hangup'. The
  842.  DIAL option will bring up Deputy's dial  directory  which  holds
  843.  details of the services you wish to call.
  844.  By  far  the  most  significant  feature  of   Deputy   is   the
  845.  implementation of MNP5. This is the most common error correction
  846.  system  currently  in  use  and ensures clean data and increased
  847.  data speeds.  Many modems support MNP5  themselves,  but  Deputy
  848.  allows you to add MNP5 to any modem.
  849.  There are five levels of MNP - Deputy supports levels 2,4 and 5.
  850.  Levels  4  and below are error correction levels which packetise
  851.  data and add CRC (checksums) before transfer.  This enables  the
  852.  receiving  system to test the integrity of the received data and
  853.  to request a re-send if it was  corrupted  in  transit  (due  to
  854.  line-noise  or  other  interference).   This  whole  process  is
  855.  automatic and completely transparent to the user - all  you  see
  856.  is clean data, no matter how bad the line is.
  857.  MNP  level  5  adds data compression to the lower levels; before
  858.  the packets are transferred, complex compression algorithms  are
  859.  applied  to the data which can achieve a compression ratio of up
  860.  to 2:1, effectively halving your online time.   The  compression
  861.  efficiency  is heavily dependant on the data being sentreceived;
  862.  MNP5 works best on plain ascii  text  and  will  work  worst  on
  863.  pre-compressed  files (eg .ARC or .ZIP files). In fact, MNP5 can
  864.  add a time overhead if you  are  transferring  ready  compressed
  865.  files,  therefore  it  may  be  advisable to limit Deputy to MNP
  866.  level 4 for file transfers.
  867.  To enable MNP, select it  from  the  'SERIAL  SETUP'  menu;  the
  868.  options  are  MNP2,  MNP4,  MNP5, None or Auto.  In 'Auto' mode,
  869.  Deputy will attempt  to  establish  MNP  in  the  highest  level
  870.  possible,  or  normal  (uncorrected)  mode  if  the remote modem
  871.  doesn't support MNP.  MNP level 4 is also  compatible  with  the
  872.  CCITT  V42  error correction standard. An MNP connection will be
  873.  attempted every time your modem connects to a remote system.
  874.  Pressing Alt-I during  a  call  will  pop  up  a  window  giving
  875.  statistics   on  the  error  correction  currently  in  use,  as
  876.  appropriate. This is useful for checking line quality.
  877.  One of the most common  functions  of  comms  software  is  file
  878.  transfer; uploading (sending a file) or downloading (receiving a
  879.  file).   There   are   several   protocols  in  common  use  for
  880.  transferring files, each with varying  efficiencies.   The  most
  881.  efficient  protocols  are Zmodem and YmodemG, although Zmodem is
  882.  by far the most flexible as it allows  you  to  restart  aborted
  883.  transfers  from the point at which they were interrupted, rather
  884.  than  having  to  resend  the  whole  file.   Deputy  can   also
  885.  automatically start Zmodem downloads.
  886.  NOTE:  FILE TRANSFERS ARE ALWAYS IN THE BACKGROUND. You can drop
  887.  to DOS or use Deputy's other features such as  the  text  editor
  888.  whilst the download proceeds in the background.
  889.  Deputy currently supports the following file transfer protocols:
  890.  Xmodem,  Ymodem,  YmodemG,  Zmodem,  Kermit and ASCII (where the
  891.  file is sent in raw form without headers for simple  capture  at
  892.  the  receiving  end).  By using an external program, you can add
  893.  oyur own file transfer protocols to Deputy.
  894.  Uploading procedures vary according to the system which you  are
  895.  dialled  into,  but  when  you are prompted to start sending the
  896.  file, press ALT-U, PageUp or select 'U' from the main  menu  and
  897.  then select the protocol as prompted.  You will then be prompted
  898.  for  the  filename  of  the file which you wish to send; you can
  899.  include  drive  designations  and  pathnames.   To  display  the
  900.  contents  of  a  directory, press Alt-F, select 'directory', and
  901.  enter the pathname and the search pattern  (e.g.   c:*.*).   You
  902.  can also bring up this directory by entering a wildcard instaead
  903.  of an upload filename.
  904.  Downloading  is  started  by  pressing  Alt-D,  PageDown  or  by
  905.  selecting 'D' from the main menu. If you are using  Zmodem,  and
  906.  'AutoDownload'  has  been enabled on the setup menu, then you do
  907.  not need to start the download -  Deputy  will  see  the  Zmodem
  908.  ehaders and automatically start the download.
  909.  If you try to download a file which already exists on your disc,
  910.  Deputy  can take several different actions, depending on the way
  911.  you set it up on the 'File Transfer' setup menu; options include
  912.  restarting aborted downloads.  With any protocol,  if  you  have
  913.  enabled  'Rename',  then you will always be prompted to enter an
  914.  alternative filename.  When  you  are  transferring  files,  the
  915.  progress  bar  in  the centre of the transfer window gives you a
  916.  quick visual indication of progress. An 'alarm' will  sound  (if
  917.  enabled) to indicate completion of a file transfer.
  918.  On  the  download and upload menus, you will also find an option
  919.  labelled "History".  Selecting this will display a full  listing
  920.  of all files transferred successfully.
  921.  Deputy contains its own built in Wordstar (tm) compatible  text
  922.  editor.  It is easy to use and allows you to edit text files and
  923.  includes various features for text manipulation.
  924.  The  Editor  is  also used to display the review buffer; as such
  925.  you can edit and save to disc any text contained in  the  review
  926.  buffer.   To  invoke the editor in its own right, press Alt-E or
  927.  select 'Editor' from the main menu (Alt-M).  The Editor takes up
  928.  half of the screen, but you can enlarge it to the full screen by
  929.  pressing <F5>.  Pressing <F5>  again  shrinks  it  back  to  its
  930.  original size.
  931.  The  filename  of  the  current  file is shown on the top status
  932.  line, together with other useful information.   To  load  a  new
  933.  file,  press  F3  and enter the filename along with any relevant
  934.  pathnames.  To save the current file, press <F2>.
  935.  The normal keyboard editing keys are all available (cursor keys,
  936.  Pageup, Ins etc.).  The following commands are available  within
  937.  the text editor:
  938.          Cursor Movement                    Block Commands
  939.     LEFT or ^S - Character Left     F7 or ^KB - Mark Beginning
  940.    RIGHT or ^D - Character Right    F8 or ^KK - Mark End
  941.       UP or ^E - Character Up             ^KC - Copy Block
  942.     DOWN or ^X - Character Down           ^KV - Move Block
  943.    ^LEFT or ^A - Word Left                ^KY - Delete Block
  944.   ^RIGHT or ^F - Word Right               ^KW - Write Block
  945.             ^W - Scroll Up                ^KR - Read Block
  946.             ^Z - Scroll Down              ^KP - Print Block
  947.     PgUp or ^R - Page Up                  ^KT - Transmit Block
  948.     PgDn or ^C - Page Down
  949.    Home or ^QS - Start of Line            ^QB - Find Block
  950.     End or ^QD - End of Line              ^QK - Find Block End
  951.   ^Home or ^QE - Top of Screen            Ins - Insert/Overwrite
  952.    ^End or ^QX - Bottom of Screen          ^N - Insert Line
  953.   ^PgUp or ^QR - Start of File             ^M - Insert Line
  954.   ^PgDn or ^QC - End of File        Tab or ^I - Insert Tab
  955.                                            ^B - Reformat paragraph
  956.                                     Del or ^G - Delete Character
  957.            F2 - Save file                  ^H - Delete Char. Left
  958.           ^F2 - Save file as               ^T - Delete Word
  959.            F3 - Load file                  ^Y - Delete Line
  960.           F10 - Swap position             ^QY - Del. rest of line
  961.            F9 - COMPILE .DSL            Alt-J - Justify on/off
  962.            F5 - Zoom in/out
  963.  The Dial Directory  provides  a  convenient  method  of  storing
  964.  details  of the services which you regularly call.  Each service
  965.  has its own entry  detailing  service  name,  number  and  setup
  966.  information.
  967.  To open up the dialing directory, select <N> from the main menu,
  968.  or press Alt-N from terminal mode. The first 15 entries  in  the
  969.  directory will be shown; if this is the first time you have used
  970.  Deputy, then the entires will be mostly blank.  The entries will
  971.  look something like this:
  972.       
  973.       
  974.  Service Name     
  975.  Key     
  976.  Phone Number            
  977.       
  978.       
  979.  Fred's System    
  980.  Fred    
  981.  011 555 1234            
  982.       
  983.  Cix (V32)        
  984.  Cix     
  985.  081 390 9800            
  986.       
  987.  Cix (V22bis)     
  988.  Cix2    
  989.  081 390 1244            
  990.       
  991.  Bix (USA)        
  992.  Bix     
  993.  M 0101 (617) 861 9767   
  994.       
  995.                   
  996.          
  997.                          
  998.       
  999.  The  cursor keys can move up or down the directory. If there is
  1000.  an entry already set up with a service which you wish  to  call,
  1001.  move to that entry and press <ENTER>. It will then dial.
  1002.  To  edit an existing or blank entry, move to it using the cursor
  1003.  keys and press <F2>. To add a new entry, press <F4>.   A  window
  1004.  will pop up showing the settings for that entry, as follows:
  1005.  Service              Cix 
  1006.  - The service name
  1007.  Key                  Cix 
  1008.  - A 'key' for reference
  1009.  Number        0813995252 
  1010.  - The full telephone number
  1011.  Speed              DEFLT 
  1012.  - Setting for the DTE speed
  1013.  Parity               8N1 
  1014.  - Data type: parity & length
  1015.  Strip Parity       DEFLT 
  1016.  - Strip the 8th bit of each byte
  1017.  MNP                DEFLT 
  1018.  - Use Deputy's built in MNP
  1019.  Emulation           ANSI 
  1020.  - Terminal Emulation
  1021.  ModemCmd           AT\N3 
  1022.  - Additional command for your modem
  1023.  Macros             DEFLT 
  1024.  - Specific macro script
  1025.  Logfile            DEFLT 
  1026.  - Name of service specific logfile
  1027.  Script           CIX.SCR 
  1028.  - Script to run after connection
  1029.  DownloadDir        DEFLT 
  1030.  - Where to store downloaded files
  1031.  Tie                 CIX2 
  1032.  - Alternative entry (see 'key')
  1033.  Retries            DEFLT 
  1034.  - No. of attempts before aborting
  1035.  Timeout            DEFLT 
  1036.  - Time before aborting dial attempt
  1037.  Most of the entries will not need altering;  assuming  that  you
  1038.  have  set  up  Deputy  correctly,  the  DEFAULT  values  will be
  1039.  adequate.  As a minimum, you  must  set  the  service  name  and
  1040.  number. To alter each item, move to it using the cursor keys and
  1041.  press <Enter>.
  1042.  Many  public  services  have  several  telephone numbers; if one
  1043.  number is engaged or unavailable, you  can  instruct  Deputy  to
  1044.  automatically  try  an alternative number. To do this, enter the
  1045.  second number as a separate entry and give it a 'Key' in the key
  1046.  field. Then enter that 'Key' into the 'Tie' field of  the  first
  1047.  number.   If  you  set  the retries field, then the first number
  1048.  will be retried before trying the second number.
  1049.  Deputy  keeps  records  of  use  for  each  entry in the Dialing
  1050.  Directory.  Pressing <F5> will display the  statistics  for  any
  1051.  entry,  including  usage details (data volumes, number of calls,
  1052.  last call etc. . Pressing <F6> will display the  complete  usage
  1053.  history of the dial directory showing all calls made.
  1054.  Brackets,  dashes  and  spaces  can  be  used  to make telephone
  1055.  numbers more readable; these are ignored  by  the  dialler.   eg
  1056.  '(0123)   456789'   or   '0123-456789'.    Commas   are  usually
  1057.  interpreted as a pause, but this  may  vary  depending  on  your
  1058.  modem. You can also include any iof your defined DIAL MACROS  in
  1059.  the  number,  for  instance:  @1 712 1234 where @1 is defined as
  1060.  '9, 0101 213' under the 'modem control setup' menu.
  1061.  The MACRO field can contain the name of a  compiled  DSL  script
  1062.  which uses the MAPKEY command to define the F1-F12 keys. See the
  1063.  chapter on script files for more details.
  1064.  The  script  field should contain details of an automatic script
  1065.  to be run immediately after connection; see  the  later  section
  1066.  for full details  on  scripts.  Note  that  normally,  the  dial
  1067.  directory  is called FROM a script in which case this field must
  1068.  be left blank to prevent an endless loop.
  1069.  If  you  require  a record of all online 'transactions' then you
  1070.  can set up a logging  file  name;  all  text  received  for  the
  1071.  duration  of  the  call  will  be  logged  to that file.  If the
  1072.  logfile already exists from a previous call, new  data  will  be
  1073.  appended   to   the   end.  Beware,  unmaintained  logfiles  can
  1074.  potentially become very big!
  1075.  Mercury Users: UK users who wish  to  access  the  Mercury  2300
  1076.  service  can  do  so  by  adding the prefix 'M' to the telephone
  1077.  number string, as shown in the above table on the  third  entry.
  1078.  Your Mercury id can be setup from the setup menu on Alt-S or <S>
  1079.  from  the  main menu. This assumes that the Mercury 2200 service
  1080.  is available in your area and that you have a valid account.
  1081.  Logging allows you to save all text received directly to a  file
  1082.  as well as displaying it on screen. To start logging, select <L>
  1083.  from the main menu, or simply press Alt-L. You will be asked for
  1084.  a  filename  to  save  the log under which can include paths. To
  1085.  stop logging and close  the  file,  press  Alt-L  again.  Whilst
  1086.  logging is operating, the filename is shown on the status line.
  1087.  Some  services  which  you  may call may have a 'real time' chat
  1088.  facility. Chat mode separates incoming text from  outgoing  text
  1089.  so that what you are writing isn't interrupted by a sudden burst
  1090.  of  incoming  text. To enter chat mode, select <Y> from the main
  1091.  menu. To return to normal terminal mode, press <ESC>.
  1092.  Review allows you to scroll 'back up the page' to see text which
  1093.  may have scrolled off the top of the screen.   Review  uses  the
  1094.  standard  text editor so text can be edited, printed or saved to
  1095.  disc (see section 6). To enter the review  editor,  press  Alt-R
  1096.  from the main terminal screen or press 'R' from the main menu.
  1097.  You  can  clear  the  screen  at  any  time by pressing Alt-W or
  1098.  selecting <W> from the main menu. If you need to drop to DOS for
  1099.  any reason, you can do this by pressing <O> from the  Main  Menu
  1100.  or   Alt-O.    If  you  require a directory listing, then select
  1101.  DIRECTORY from the file menu (Alt-F).
  1102.  There  may  be various keypress sequences which you need to send
  1103.  regularly; by programming Deputy's macros,  you  can  send  them
  1104.  quickly by pressing the Macro keys: F1 to F12. The macros can be
  1105.  set from the setup menu.
  1106.  Deputy  supports  many terminal emulations; these are emulations
  1107.  of dedicated terminals such as VT100,  VT220  etc.   The  actual
  1108.  terminal's  keyboards  will  vary  from  that on your PC, and as
  1109.  such, there will always have to be compromises.
  1110.  Deputy  defaults  to  sensible  keyboard   mappings   for   each
  1111.  emulation, but you can set Deputy up to make any key produce any
  1112.  ASCII  code  or  sequence.  This  is   done  by  using  Deputy's
  1113.  script language (DSL) which is detailed later.
  1114.  The  following  example  scrip  will  set  up  keys  for a VT320
  1115.  keyboard emulation. The 'MapKey' command  takes  two  arguments;
  1116.  one is the key code and the other is the new definition for it.
  1117.  Script VT320;       (*  VT320  Script V.1.00               *)
  1118.                      (*  Select VT320 emulation first       *)
  1119.  BEGIN
  1120.  (* Map F11-F12 to Ctl-F1 and Ctl-F2 in addition to F11 and F12 *)
  1121.  MapKey(350,"\033[23~");         (* F11 -> Ctl-F1  *)
  1122.  MapKey(351,"\033[24~");         (* F12 -> Ctl-F2  *)
  1123.  (* Add function keys F13-F20 *)
  1124.  MapKey(352,"\033[25~");         (* F13 -> Ctl-F3  *)
  1125.  MapKey(353,"\033[26~");         (* F14 -> Ctl-F4  *)
  1126.  MapKey(354,"\033[27~");         (* F15 -> Ctl-F5  *)
  1127.  MapKey(355,"\033[28~");         (* F16 -> Ctl-F6  *)
  1128.  MapKey(356,"\033[29~");         (* F17 -> Ctl-F7  *)
  1129.  MapKey(357,"\033[30~");         (* F18 -> Ctl-F8  *)
  1130.  MapKey(358,"\033[31~");         (* F19 -> Ctl-F9  *)
  1131.  MapKey(359,"\033[32~");         (* F20 -> Ctl-F10 *)
  1132.  (* Reassign certain keys to more closely match their labels *)
  1133.  MapKey(335,"\033[1~");          (* Find      -> End       *)
  1134.  MapKey(338,"\033[2~");          (* Insert    -> Insert    *)
  1135.  MapKey(339,"\033[3~");          (* Remove    -> Delete    *)
  1136.  MapKey(327,"\033[4~");          (* Select    -> Home      *)
  1137.  MapKey(329,"\033[5~");          (* Prev Scr  -> Page Up   *)
  1138.  (* Swap backspace and Rub Out functions *)
  1139.  MapKey(8,"\177");               (* Backspace -> Backspace     *)
  1140.  MapKey(127,"\008");             (* Ctl-H     -> Ctl-Backspace *)
  1141.  END VT320.
  1142.                        -- end of section --
  1143.  One of the most common functions of modems is  for  transferring
  1144.  files  between  locations.  Deputy's host mode allows you to set
  1145.  your computer and modem  to  automatically  answer  and  process
  1146.  incoming  calls,  allowing  users  to send and receive files and
  1147.  also to leave messages, both public and private.   In  addition,
  1148.  authorized  people  can  remotely  drop down to DOS to carry out
  1149.  routine system maintainance.
  1150.  There is very little setting up required for the host mode; from
  1151.  the normal setup menu, MODEM CONTROL has two  settings  relevant
  1152.  to host mode which enable and disable auto-answer on your modem.
  1153.  Under the HOST MODE SETUP option, you can set passwords for both
  1154.  normal users and a Sysop (systems operator) - this is a security
  1155.  measure  to  prevent  unauthorised people accessing your system.
  1156.  Using this method, users are asked for a  user  id  (name)  when
  1157.  they  log in, but they can enter anything as their id. All users
  1158.  share the same password.
  1159.  To  make  your  system more sophisticated, you can create a user
  1160.  file containing a list of users and unique passwords. This means
  1161.  that each user can only log in under their own  id.  If  a  user
  1162.  file  exists,  then the 'normal user password' becomes inactive,
  1163.  although the Sysop Password is  still  available.  Select  'User
  1164.  Passwords'  from the HOST setup menu to edit them. On each line,
  1165.  you give user name, a password and then two flags.
  1166.  Here is an example:
  1167.        Freddie    Cola
  1168.        Jim        Wine     U
  1169.        Tony       Lemonade UD
  1170.        Joe_Smith  Coffee   UD
  1171.        Alan_Jones Tea      D
  1172.  Only a single space is required between words, but several  have
  1173.  been  used  for  clarity. The 'U' or 'D' (or both) after some of
  1174.  the names allow that user to either UPLOAD or DOWNLOAD files. If
  1175.  the flags are not set, then the user will  only  be  allowed  to
  1176.  read and post messages.
  1177.  To  start  up host mode, press Alt-A or select 'A' from Deputy's
  1178.  main menu. You are offered several further options:
  1179.    Enter Host Mode - Prepare to answer incoming calls.
  1180.    View messages - View the messages posted to the system.
  1181.    View Mail - View the User-to-User mail file
  1182.    View Activity - Shows details of who has called.
  1183.  NOTE: If you view the mail or public message files,  be  careful
  1184.  not to edit the headers as this could corrupt the message file.
  1185.  If  you  select  "ENTER HOST MODE" then the modem will be set to
  1186.  answer incoming calls. Deputy will display a message to indicate
  1187.  that it is ready to answer.
  1188.  The Deputy Host can be personalized; There are two special  host
  1189.  files  supplied  with  Deputy:  HOST.HLP  and SCREENST.TXT.  The
  1190.  first of these is the file displayed  when  callers  type  HELP;
  1191.  this  should  not need changing but you can alter if you want to
  1192.  give additional information or  personalise  the  message.   The
  1193.  second  file  (SCREENST.TXT)  is  a  plain  ASCII  file which is
  1194.  displayed as soon as a user  connects.   Normally  this  message
  1195.  would  contain  the  system name and a friendly welcome message;
  1196.  you can use the PC box character set to draw simple pictures. As
  1197.  usual, both of these files can be  edited  using  the  built  in
  1198.  Editor (Alt-E).
  1199.  Deputy  will  create three directories which the host mode uses.
  1200.  HOSTDIR is used to store usage  logs  and  message  files.   Two
  1201.  subdirectories  below HOSTDIR will also be created, called FILES
  1202.  and UPLOAD.  This is where you should put files for  callers  to
  1203.  download and where uploaded files will be stored, respectively.
  1204.  As a caller to the Deputy Host, operation is fairly simple.  The
  1205.  first screen you are presented with is the welcome message, held
  1206.  in the SCREENST.TXT file (see previous section). Following that,
  1207.  you  are  asked  for  your username and password.  You will have
  1208.  three attempts at each, resulting in disconnection if you do not
  1209.  enter a correct combination after that.
  1210.  Once you have completed the login procedure correctly, you  will
  1211.  be at the 'Read prompt' which is displayed thus: Read:
  1212.  The  host  is  controlled  using simple commands, rather than by
  1213.  menus - this makes it quick to operate once you are used to  the
  1214.  commands.   For  a listing and explanation of the commands, type
  1215.  'HELP' at the main prompt. The 'HOST.HLP' file will be displayed
  1216.  (see previous section). Something similar to the following  will
  1217.  display:
  1218.                   DEPUTY HOST MODE - ONLINE HELP
  1219.                   ------------------------------
  1220.      DIR <pattern>        Show files available for download
  1221.      UPLOAD               Send a file to the host computer
  1222.      DOWNLOAD <filename   Download the specified file
  1223.      TYPE <filename>      Output (text) file to screen
  1224.      BYE                  Disconnect - end your call
  1225.      SAY                  Post a public message
  1226.      MAIL                 Send User-to-User mail
  1227.      SHOWMAIL             Display private mail, addressed to you
  1228.      XMODEM               Select Xmodem as the default protocol
  1229.      YMODEM                 "    Ymodem  "  "     "       "
  1230.      ZMODEM                 "    Zmodem  "  "     "       "
  1231.      KERMIT                 "    Kermit  "  "     "       "
  1232.       Priviledged User Commands (Available to Sysop only):
  1233.      CD                   Change current file directory
  1234.      SHELL                Drop down to DOS shell (Sysop Only)
  1235.      EDIT <filename>      Edit file specified
  1236.  In  addition  to  these  commands,  pressing <ENTER> at the READ
  1237.  prompt will list the available public messages and  the  subject
  1238.  of  each.   If  you want to read any message, type the number of
  1239.  that message and press <ENTER>. If you want  to  post  your  own
  1240.  message, type SAY <ENTER>. You can then enter your message. When
  1241.  you  are  finished,  enter a single period on the line and press
  1242.  <ENTER>.
  1243.  As well as public messages, you  can  post  a  mail  message  to
  1244.  another  user,  in  privacy  - other callers will not be able to
  1245.  read the message. Type 'MAIL <CR>' and enter the recipients name
  1246.  when requested. Type your message as you would a public message,
  1247.  ending the message with a single period on  a  line.  Next  time
  1248.  that  user logs on, he will be informed of waiting private mail.
  1249.  To view private mail addressed to you, type SHOWMAIL.
  1250.  If you wish to download a file, you can view the available files
  1251.  by typing DIR, followed optionally by a search pattern -  if  no
  1252.  pattern  is given, it defaults to *.* (all files available).  To
  1253.  start the download, ensure you have selected your preferred file
  1254.  transfer protocol  (Xmodem,Ymodem,Zmodem  or  Kermit)  and  type
  1255.  DOWNLOAD  <filename>.   Then  start  your  own local download as
  1256.  required by your own  particular  software  (If  you  are  using
  1257.  Deputy  then  press  PageDown  to start a download).  NOTE: If a
  1258.  userlist file (password.txt) is being used, you must  have  your
  1259.  UPLOAD or DOWNLOAD flags enabled to be able to transfer files.
  1260.  Using  a  script  language  is  a  way  of  automating  Deputy's
  1261.  operation to enable functions to be carried  out  without  human
  1262.  intervention,  as  far  as possible. Most often, a simple script
  1263.  will  perform  a  task  such  as  sending  login  sequences  and
  1264.  passwords  automatically,  saving  you  from having to type them
  1265.  manually each time you call systems.
  1266.  A Deputy script, is a sequence of commands with a similar syntax
  1267.  to many other programming langauges.   There  are  two  ways  to
  1268.  create scripts with Deputy.
  1269.  1)  Using the SCRIPT LEARN command from the main menu, instructs
  1270.  Deputy to watch what you do  whilst  you  manually  log  onto  a
  1271.  system.  A  script is then automatically written which will copy
  1272.  exactly that sequence the next time you logon  to  that  system.
  1273.  This  method  is  very simple to use, without the user requiring
  1274.  any knowledge of the script langauge.
  1275.  2) By using the text editor to manually write a list of commands
  1276.  for Deputy to sequentially execute - this gives you the greatest
  1277.  flexibility and allows you access to the complete  command  set.
  1278.  Customisation   is   very   simple   but  this  method  requires
  1279.  substantially more work than method 1.
  1280.  Before  starting  the  learn  facility,  make sure that you have
  1281.  already added the service details to the dial directory (see the
  1282.  section on the dial directory).  Ensure that  the  entry  has  a
  1283.  'key'  entered  into  its  key field for the script to refer to.
  1284.  Make sure that you are out of  the  dial  directory,  in  normal
  1285.  terminal mode.
  1286.  Start the learn procedure by pressing Alt-M to bring up the main
  1287.  menu and then 'K'. Alternatively, press ALT-K from terminal mode
  1288.  which is the hot-key command for script learn. You will be asked
  1289.  to  enter  a  name  for  the  script  -  we suggest that you use
  1290.  something which relates to the entry if possible;  for  instance
  1291.  if  the  service  is  called  "Freddy's  System" call the script
  1292.  'Freddy' - that way it's easy to tell which entry  that  service
  1293.  belongs  to. The script name requires an extension .SCR - if you
  1294.  omit this, Deputy will add it automatically.  Press <ENTER>  and
  1295.  the  word  "LEARNING"  will  appear on the left hand side of the
  1296.  status line to indicate that Deputy is in LEARN MODE.
  1297.  Bring up the Dial Directory (Alt-N or 'N' from the  main  menu),
  1298.  move  to  the  relevant  entry  (previously  entered)  and press
  1299.  <ENTER> to select it. Deputy should now dial the number.
  1300.  Once connected, login to the system normally.   Deputy  will  be
  1301.  'watching  you'  and  will remember all of your keystrokes. Once
  1302.  you are logged in and want to stop script leaning, press  ESCAPE
  1303.  or Alt-K.
  1304.  To  test  the  script,  bring  up the dial directory (Alt-N) and
  1305.  select the entry.  The system should be dialled  and  the  login
  1306.  sequence, including your usernames and passwords should be typed
  1307.  automatically.  The script created (with a .DSL extension can be
  1308.  viewed and edited as if you had written it youself.
  1309.  NOTE:  If  an error occurs duing the learn sequence, such as the
  1310.  number being engaged or you making a typing  error,  you  should
  1311.  abort learning and restart from the beginning.
  1312.  PLEASE  REMEMBER:  Deputy's  script language is a highly complex
  1313.  programming enviroment; as such, the instructions here are  only
  1314.  intended to give you the bare essentials for writing scripts. It
  1315.  is  impossible  to  give  full  documentation in this file - the
  1316.  printed manual, which you receive when you register,  goes  into
  1317.  script  writing  in  very great depth with full command listings
  1318.  and examples. Look  at  the  .DSL  scripts  included  with  this
  1319.  software for example of usage.
  1320.  Deputy's   script  language  (DSL)  is  a  highly  sophisticated
  1321.  programming platform. The structure and syntax will be  familiar
  1322.  to  programmers  who  have  programmed in the MODULA 2 langauge.
  1323.  DSL is a compiled language; scripts, which can be written  using
  1324.  Deputy's  text editor, consist of a sequence of commands and are
  1325.  compiled before execution.
  1326.  A script file, before compilation, is known as the  source  file
  1327.  and  will usually has the extension ' .DSL '.  A compiled script
  1328.  file (also known as an executable script) has  the  extension  '
  1329.  .SCR'.   You can only edit and write .DSL files - files with the
  1330.  .SCR extension should be left alone.
  1331.  Scripts  are  run from the script menu, accessed either from the
  1332.  main menu or by pressing Alt-C.   This  menu  displays  all  DSL
  1333.  scripts,whether  compiled  or not - if you select a script which
  1334.  is not compiled then Deputy will automatically compile it before
  1335.  running it.  Similarly, if a source script  with  the  extension
  1336.  .DSL  has  a date which is newer than its corresponding compiled
  1337.  script, then the newer version is recompiled boefre executing.
  1338.  There are about 140 commands of which there are two basic types:
  1339.  Functions  and  Procedures.   Both  types  carry  out particular
  1340.  features, but functions return a Boolean result (i.e.   TRUE  or
  1341.  FALSE) after execution indicating the success or failure of that
  1342.  function.
  1343.  There  are several example scripts supplied with Deputy; examine
  1344.  these carefully in order to gain a full underatanding of how DSL
  1345.  works. The printed manual goes into much greater depth  than  is
  1346.  possible in this shareware manual.
  1347.  A  DSL  script  must start with the line ' SCRIPT scriptname; '.
  1348.  The main script body must be  contained  within  BEGIN  and  END
  1349.  commands; any variables required must be defined before the main
  1350.  script body (see 'variables' below). A semicolon must be used to
  1351.  terminate  all commands.
  1352.  NOTE:  Throughout  this  section,  various  script  examples are
  1353.  shown; the indentation used on each  line  is  optional  but  is
  1354.  commonly used by programmers to make scripts more readable.
  1355.  Variables
  1356.  ---------
  1357.  A  variable  is  a  name  assigned  a to a particular numeric or
  1358.  boolean value. A variable name can  be  any  length  but  cannot
  1359.  share  the  same  name  as  a  function,  procedure or any other
  1360.  keyword. Any variables which you wish to use in a script must be
  1361.  defined at at the  start  of  the  script,  before  the  'BEGIN'
  1362.  command. The structure of the script will then be:
  1363.       SCRIPT test;
  1364.       VAR
  1365.       ok: BOOLEAN;
  1366.       time: INTEGER;
  1367.       (Any other variables to be defined here)
  1368.       BEGIN
  1369.       (main script body here)
  1370.       END.
  1371.  To assign a variable name to a value in DSL you use the  syntax:
  1372.  'varname  :=  expression  '  where varname is the name which you
  1373.  wish to assign the value to and 'expression' is any  numeric  or
  1374.  boolean  value.   As  well  as  assigning  a variable to a fixed
  1375.  values, you can assign a variable name the result of a function.
  1376.  Some examples follow:
  1377.  happy := TRUE         ( The variable 'happy' will be set to TRUE)
  1378.  cars  :=27            ( The variable 'cars' will be set to '27' )
  1379.  start := TIME()       ( The variable 'start' will store the result
  1380.                               of calling the TIME function )
  1381.  was_dcd  :=  DCD()    ( The result of the DCD function will be put
  1382.                          in the variable 'was_dcd' for later use )
  1383.  timenow := TIME()-start ( Will set 'timenow' to the time elapsed
  1384.                            since the variable 'start' was defined )
  1385.  Conditional Constructions
  1386.  -------------------------
  1387.  Procedures and functions can be used simply,  i.e.  in  a  straight
  1388.  sequence,  or  can  form  part  of  a more complex construction. If
  1389.  commands form part of a construction, then the  actions  taken  are
  1390.  dependant on a particular condition.
  1391.  To  test  for conditions, comaparisons are made between two values.
  1392.  The values used are known as expressions, and  are  can  be  either
  1393.  plain  integers (1, 2, 140 etc.), variables, variable calculations,
  1394.  variable comparisons, functions or anything else which can  produce
  1395.  a boolean value when evaluated (TRUE or FALSE).
  1396.  The  action  taken  by  a  conditional construction is defined by a
  1397.  statement. A statement can be any command,  procedure  or  function
  1398.  call.
  1399.  Valid  syntax  for  calculation  and  comparison  operations are as
  1400.  follows: + - * <= >= = <> OR XOR DIV MOD AND SHL  SHR.  Calculation
  1401.  operations  can  also be applied directly to variables, independant
  1402.  of conditional structures. e.g. num1 := (num2+num3)*num4.
  1403.  There are four types of conditional construction, as follows:
  1404.  IF <Expression> THEN <Statement_sequence> ELSE <Statemene> END;
  1405.  The IF construction is the most commonly used. The execution of the
  1406.  statement  immedately  after  the  'THEN'  is  dependant   on   the
  1407.  expression  specified  being TRUE when evaluated. If the expression
  1408.  proves to be FALSE, then the  action  specified  by  the  statement
  1409.  after the ELSE is executed.  The ELSE part  of the construction  is
  1410.  optional but the whole construction must end with an 'END'.
  1411.  Example:  A boolean variable 'happy' has been previously defined to
  1412.  indicate the users mood. A TRUE value indicates that he was  happy.
  1413.  We can then issue the command:
  1414.       IF happy THEN WriteStr('I am happy');
  1415.       ELSE WriteStr('I am Sad');
  1416.       END;
  1417.  The  WriteStr() command writes text to ther screen and is detailsed
  1418.  later.  As shown, if the 'happy' variable is TRUE THEN  THE  "I  am
  1419.  happy"  message  will  be  displayed.   If the 'happy' variable was
  1420.  FALSE, then the "I am sad" message will  be  displayed.  Note:  The
  1421.  above  command can be written all on one line, but can be split for
  1422.  clarity, as shown. Remeber, DSL is not case sensitive, so upper  or
  1423.  lower case can be used throughout.
  1424.  If  more  than one command is required to be executed, dependant on
  1425.  the expression, then compound statements can be made thus:
  1426.       IF happy THEN
  1427.          WriteStr('I am happy');
  1428.          Alarm;
  1429.          WriteStr('I am very very happy !');
  1430.       ELSE
  1431.          WriteStr('I am Sad, so I'm exiting now !');
  1432.          HaltDeputy;
  1433.        END;
  1434.  WHILE <Expresssion> DO <Statement> END;
  1435.  This condition forms a loop, and is  fairly  self-explanatory.  The
  1436.  expression  is  evaluted  and if found to be TRUE, the statement is
  1437.  executed. The expression is then evaluated again and if still TRUE,
  1438.  the statement is executed again, and so on,  until  the  expression
  1439.  becomes FALSE.
  1440.  REPEAT <Statement> UNTIL <Expression>;
  1441.  This  is  similar  to  the WHILE...DO construction, except that the
  1442.  condition is tested at the bottom of the loop, rather than  at  the
  1443.  top and exits once the condition becomes TRUE.  This means that the
  1444.  statement   is   executed  once,  regardless  of  the  expression's
  1445.  evaluation; from then on the statement is re-executed  continuously
  1446.  until the statement becomes TRUE.
  1447.  CASE <Expression> OF <Integer> : <Statement> ELSE <Statement> END;
  1448.  This  construction  allows  you to execute any number of statements
  1449.  depending on the numercial value of the expression specified.
  1450.  Functions
  1451.  ---------
  1452.  All functions return either a BOOLEAN value (True or False)  or  an
  1453.  INTEGER  (a  whole  number).  Usually,  if a function carries out a
  1454.  specific action (such as dialing a number), then it will  return  a
  1455.  TRUE  value  if  that action was successful, or FALSE if it failed.
  1456.  Deputy is not case sensitive; upper  or  lower  case  can  be  used
  1457.  throughout  a  script.   Functions  can  be used within conditional
  1458.  structures, or the result can be stored in  a  variable  for  later
  1459.  use.
  1460.  To  store  a function's result in a variable, the syntax is: result
  1461.  := function , where result is the variable name - it  must  be  the
  1462.  same  variable  type (boolean or integer) as result returned by the
  1463.  function.
  1464.  The following is a full list of all DSL commands. In this shareware
  1465.  version of the manual we only list the commands themselves, due  to
  1466.  space  constraints.  In the full printed manual, they are listed in
  1467.  full detail, together with examples.
  1468.   I/O and Modem Commands
  1469.   ----------------------
  1470.   PROC Break(Duration);
  1471.   FUNC CTS() : BOOLEAN;
  1472.   FUNC DCD() : BOOLEAN;
  1473.   FUNC DSR() : BOOLEAN;
  1474.   PROC RTS(BOOLEAN);
  1475.   PROC DTR(BOOLEAN);
  1476.   FUNC RI(); BOOLEAN;
  1477.   FUNC Dial(Key) : BOOLEAN;
  1478.   PROC Hangup();
  1479.   PROC Nap();
  1480.   FUNC Receive(Timeout,Flag) : String;
  1481.   FUNC RecChar(Timeout,Flag) : String;
  1482.   PROC SendStr(String);
  1483.   Screen and Keyboard Commands
  1484.   ----------------------------
  1485.   PROC BackGnd(Colour);
  1486.   PROC ForeGnd(Colour);
  1487.   PROC GotoXY(X,Y);
  1488.   PROC ClrScr();
  1489.   PROC ClrEOL();
  1490.   PROC ClrEOS();
  1491.   PROC Cursor(TRUE or FALSE);
  1492.   PROC DelLine();
  1493.   PROC InsLine();
  1494.   PROC StatusLine(TRUE or FALSE);
  1495.   FUNC KeyPressed() : BOOLEAN;
  1496.   FUNC RdKey() : INTEGER;
  1497.   PROC MapKey(Keyvalue,String);
  1498.   FUNC Menu(X,Y,Width,Title,Options...,Flag) : INTEGER;
  1499.   PROC Read(StringName);
  1500.   PROC Silent(TRUE or FALSE);
  1501.   FUNC WhereX() : INTEGER;
  1502.   FUNC WhereY() : INTEGER;
  1503.   PROC WhereMouse(X,Y);
  1504.   FUNC ReadMouse() : INTEGER;
  1505.   PROC Mouse(BOOLEAN);
  1506.   FUNC Window(X,Y,Width,Height,Title,Colour)  : INTEGER;
  1507.   PROC UseWindow(Handle);
  1508.   PROC CloseWindow(Handle);
  1509.   PROC WriteStatus(Text);
  1510.   PROC Write(String);
  1511.   PROC WrStr(String);
  1512.   PROC WrLn(String);
  1513.   File and Disk Commands
  1514.   ----------------------
  1515.   FUNC ChDir(Directory);
  1516.   FUNC MkDir(Directory);
  1517.   FUNC DirFirst(Wildcard,Attrib,Filename,RealAttrib);
  1518.   FUNC DirNext(Filename,Attrib);
  1519.   PROC DOSCMD(Command,Boolean);
  1520.   FUNC Download(Protocol,Filename): BOOLEAN;
  1521.   FUNC Fcopy(SourceFilename,DestFilename) : BOOLEAN;
  1522.   FUNC Fdelete(Filename) : BOOLEAN;
  1523.   PROC Fedit(Filename);
  1524.   FUNC Feof(FileHandle);
  1525.   FUNC Fexists(Filename);
  1526.   FUNC Fopen(Filename) : INTEGER;
  1527.   FUNC FAppend(Filename) : INTEGER;
  1528.   FUNC Fcreate(Filename) : INTEGER;
  1529.   PROC Fclose(HandleVariableName);
  1530.   PROC Fread(HandleVariable,StringVariable);
  1531.   PROC Fwrite(FileHandle,StringVariable);
  1532.   PROC FwriteLn(FileHandle,StringVariable);
  1533.   PROC Fseek(FileHandle,Position);
  1534.   FUNC FTell(FileHandle) : INTEGER;;
  1535.   PROC FRdChar(FileHandle,CharVariable);
  1536.   PROC FWrChar(FileHandle,Char);
  1537.   PROC Ftype(Filename);
  1538.   FUNC DiskSpace() : INTEGER;
  1539.   FUNC CurrentDir() : INTEGER;
  1540.   FUNC Fsize(filename) : INTEGER;
  1541.   FUNC GetString(Filename,SearchKey,StringVariable);
  1542.   PROC OpenLog(Filename);
  1543.   PROC CloseLog();
  1544.   FUNC Upload(Protocol,Filename) : BOOLEAN;
  1545.   Watching and Waiting Commands
  1546.   -----------------------------
  1547.   FUNC Opencount(String) : INTEGER;
  1548.   PROC CloseCount(Handle);
  1549.   FUNC ReadCount() : INTEGER;
  1550.   FUNC Grab(String) : INTEGER;
  1551.   FUNC Grabbed(Handle) : STRING;
  1552.   PROC Delay(Seconds);
  1553.   PROC Tdelay(18ths/sec);
  1554.   FUNC CloseGrab(Handle) : BOOLEAN;
  1555.   PROC WaitStr(String,Handle);
  1556.   FUNC DoWait() : INTEGER;
  1557.   FUNC WaitFor(String,Seconds) : BOOLEAN;
  1558.   FUNC WhenSeen(String,SendString): INTEGER;
  1559.   PROC ClearWhen(Handle);
  1560.   Miscellaneous Commands
  1561.   ----------------------
  1562.   FUNC ABS(IntegerVariable) : INTEGER;
  1563.   PROC Alarm([time]);
  1564.   FUNC Arg() : INTEGER;
  1565.   PROC Call(Scriptname,[Argument]);
  1566.   PROC Chain(scriptname[(Argument]);
  1567.   FUNC Cap(CharVariable) : CHARACTER;
  1568.   FUNC Caps(String)
  1569.   FUNC Chr(IntegerVariable): CHARACTER;
  1570.   FUNC Ord(char) : INTEGER;
  1571.   FUNC Date() : STRING;
  1572.   PROC GetEnv(EnvString,ReturnString);
  1573.   FUNC Time() : STRING;
  1574.   PROC DateNow(WeekDay,Day,Month,Year);
  1575.   PROC TimeNow(Hr,Min,Sec);
  1576.   PROC Debug(TRUE or FALSE);
  1577.   FUNC DEC(VariableName[,Decrement]) : INTEGER;
  1578.   FUNC INC(VariableName[,Increment]) : INTEGER;
  1579.   FUNC Encrypt(String,Key) : STRING;
  1580.   FUNC Decrypt(String,Key) : STRING;
  1581.   PROC HaltDeputy;
  1582.   PROC HaltScript;
  1583.   PROC IntToStr(IntegerName,StringName);
  1584.   PROC StrToInt(StringName,VariableName);
  1585.   FUNC Length(String) : INTEGER;
  1586.   PROC Tdelay(Ticks);
  1587.   FUNC POS(String1,String2) : INTEGER;
  1588.   FUNC Slice(StringName,Start,Length) : STRING;
  1589.   PROC PushKey(ScanCode);
  1590.   PROC PrinterLog(TRUE or FALSE);
  1591.   FUNC ScriptTime() : INTEGER;
  1592.   PROC Shell();
  1593.   FUNC Version() : STRING;
  1594.   Deputy Setup Commands
  1595.   ---------------------
  1596.   FUNC DownloadDir(DirectoryName) : STRING;
  1597.   FUNC DTESpeed(SPEED) : INTEGER;
  1598.   FUNC ExistingFile(OPTION) : INTEGER;
  1599.   FUNC Inactivity(TIME) : INTEGER;
  1600.   FUNC CharDelay(Ticks) : INTEGER;
  1601.   FUNC LineDelay(Ticks) : INTEGER;
  1602.   FUNC SetEmulation(Emulation) : INTEGER;
  1603.   FUNC SetMNP(Level) : INTEGER;
  1604.   FUNC SetParity(TYPE) : INTEGER;
  1605.   FUNC SetPort(PORT) : INTEGER;
  1606.   FUNC AutoCis(TRUE or FALSE);
  1607.   FUNC AutoZ(TRUE or FALSE);
  1608.   FUNC CRLFIN(TRUE or FALSE);
  1609.   FUNC CRLFOUT(TRUE or FALSE);
  1610.   FUNC LocalEcho(TRUE or FALSE);
  1611.   FUNC RemoteEcho(TRUE or FALSE);
  1612.   FUNC SetStrip(TRUE or FALSE);
  1613.   FUNC SoftFlow(TRUE or FALSE);
  1614.   FUNC HardFlow(TRUE or FALSE);
  1615. SCRIPT Mickey;
  1616. (* Deputy DSL Demonstration Script Version 1.3 *)
  1617. (* Copyright 1992 Michael Spalter & SEG *)
  1618. (* This script makes use of the following DSL commands:
  1619.    Functions Returning Booleans        Procedures
  1620.    ----------------------------        ----------
  1621.    Fexists(filename)                   FDelete(filename)
  1622.    DCD                                 FRename(oldname,newname)
  1623.    FEOF(filehandle)                    Write(string)
  1624.    KeyPressed                          WrLn
  1625.                                        ClrScr
  1626.                                        Hangup
  1627.    Functions Returning Integers        WriteStatus(String)
  1628.    ----------------------------        Alarm
  1629.    FileSize(filename)                  ForeGnd(colour)
  1630.    ScriptTime                          BackGnd(colour)
  1631.    Pos(searchstring,bigstring)         OpenLog(filename)
  1632.    Length(stringvar)                   CloseLog
  1633.    ABS()    WhereY                     GoToXY(x,y)
  1634.    Menu(....)                          StatusLine(Boolean)
  1635.                                        INC(integervar[,number])
  1636.    Functions Returning Strings         StrToInt(string,intvar)
  1637.    ---------------------------         Read(stringvar)
  1638.    Time
  1639.    Date
  1640.    Caps(StringVar)   *)
  1641. (* First, define the variables used in the script *)
  1642. VAR YourName:String[18];
  1643.     Happiness:Integer;
  1644.     Value:Integer;
  1645.     FileLine:String[78];
  1646.     ValueString:String[15];
  1647.     LineCount:Integer;
  1648.     FileBytes:Integer;     (* This is an enclosed comment *)
  1649.     People:String[20];     (* Comments can be placed anywhere *)
  1650.     FileHandle:Integer;    (* and are ignored by Deputy's Compiler *)
  1651.    (* Note: Apostrophes and Inverted commas are identical in function
  1652.       It's best to use one type. In this script we have tried to use
  1653.       apostrophes only,but where we need to write an apostrophe
  1654.       to the screen, we use the inverted commas instead. *)
  1655.    (* Now the actual main script body starts *)
  1656.    BEGIN
  1657.    StatusLine(TRUE);
  1658.    ClrScr;
  1659.    WriteStatus('        Welcome to the Deputy Demonstration script !');
  1660.    StatusLine(TRUE);
  1661.    Alarm();
  1662.    OpenLog('Test.LOG');
  1663.    GoToXY(20,10);
  1664.    Write(' Hold on a few seconds......');
  1665.       WHILE ScriptTime()<3 DO END;
  1666.    WrLn;
  1667.    ClrScr;
  1668.    WriteStatus('');
  1669.    GoToXY(0,5);
  1670.    Write("\t The date is ",Date,", and the time is ",Time);  WrLn;
  1671.    Write('\t This is a sample script using the Deputy');  WrLn;
  1672.    Write('\t script language. It is designed to show ');  WrLn;
  1673.    Write('\t the use of as many commands as possible.');  WrLn;
  1674.    FileBytes:=FSize('DEPUTY.EXE');
  1675.    Write('\t The Deputy program is ',Filebytes,' bytes long,'); WrLn;
  1676.    Write('\t and this script has been running ',ScriptTime(),' Secs.');
  1677.    WrLn; WrLn;
  1678.    Write('\t Who is with you (their names please) ? ');
  1679.    Read(People); WrLn;
  1680.       IF POS('JIM',Caps(People))<>-1 THEN
  1681.       Write('\t I see that Jim is with you !'); WrLn;
  1682.       ELSE
  1683.       Write('\t I see that Jim is NOT with you with you !'); WrLn;
  1684.       END;
  1685.    Write('\t By the Way, that string was ',Length(People),' bytes');
  1686.    WrLn; WrLn;
  1687.    Write('\t Please enter a negative number: ');
  1688.    Read(ValueString); WrLn;
  1689.    StrToInt(ValueString,Value);  (* Convert it to an Integer first *)
  1690.    Write('\t Okay. Without the sign, it equals ',ABS(Value)); WrLn;
  1691.    Write('\t The Cursor is now at ',WhereX,',',WhereY()); WrLn;
  1692.    WrLn;
  1693.    Write("\t Please type in your first name: ");
  1694.    Read(YourName); WrLn;
  1695.    Write("\t I'm now going write your name to a file....");
  1696.    Filehandle := FCreate('TestFile.TXT');
  1697.    FWrite(FileHandle,YourName);
  1698.    FClose(FileHandle);
  1699.    Write('Done ! '); WrLn; WrLn;
  1700.       IF NOT Fexists('TestFile.TXT') THEN
  1701.       Write("\t Arrgghh ! File didn't Write properly !"); WrLn;
  1702.       ELSE
  1703.       Write("\t That seemed to work. Now I'll read it back.....");
  1704.       YourName:= '';     (* Clear the String *)
  1705.       FileHandle := FOpen('TestFile.TXT');
  1706.       FRead(FileHandle,YourName);
  1707.       FClose(FileHandle);
  1708.       Write('Done !'); WrLn;
  1709.       Write("\t According to the file, your name is ",YourName,".");
  1710.       WrLn;
  1711.       Write("\t I'll just delete that file now."); WrLn;
  1712.       FDelete('TestFile.TXT');
  1713.       END;
  1714.    WrLn;
  1715.    Write('\t Press any key to go on......');
  1716.    WHILE NOT Keypressed() DO END;
  1717.    WrLn;
  1718.    ClrScr();
  1719.    REPEAT Value:=RdKey() UNTIL NOT Keypressed();   (* Clear Kbd Buffer *)
  1720.         Happiness := 1 + Menu(24,3,30,"How happy are you ?",
  1721.                          "1 - Extremely happy ",
  1722.                          "2 - Very Happy ",
  1723.                          "3 - Quite Happy   ",
  1724.                          "4 - Content",
  1725.                          "5 - Nonchalent",
  1726.                          "6 - A little sad",
  1727.                          "7 - Upset",
  1728.                          "8 - Completely distraught",28);
  1729.       GoToXY(0,2);
  1730.       CASE Happiness OF
  1731.       1: Write("\t So, you're extremely happy - Good !");|
  1732.       2: Write("\t You're very happy apparently");|
  1733.       3: Write("\t You are quite happy - that's nice");|
  1734.       4: Write("\t You are content - barely happy :-(");|
  1735.       ELSE
  1736.       Write("\t You are not happy at all - what a shame!");
  1737.       END;
  1738.      WrLn; WrLn;
  1739.         IF NOT DCD THEN
  1740.         Write('\t You are currently not online.'); WrLn;
  1741.         ELSE
  1742.         Write("\t You are currenly online, I'll just hangup"); WrLn;
  1743.         Hangup;
  1744.         END;
  1745.      CloseLog;
  1746.      FRename('Test.LOG','NewTest.LOG');
  1747.      WrLn;
  1748.      Write("\t Press a key to see a directory of your disc....");
  1749.      WHILE NOT Keypressed() DO END;
  1750.      REPEAT Value:=RdKey() UNTIL NOT KeyPressed();  (* Clear Kbd Buffer *)
  1751.      DOSCMD('CLS',FALSE);
  1752.      DOSCMD('DIR /w',TRUE);
  1753.      ClrScr;
  1754.      GoToXY(0,2);
  1755.         If Fexists('NewTest.LOG') THEN
  1756.         Write("\t Press any key for a review.......");
  1757.         WHILE NOT Keypressed() DO END;
  1758.         Happiness := RdKey();
  1759.         WrLn; WrLn;
  1760.         FileHandle:=FOpen('NewTest.LOG');
  1761.         LineCount:= 0;
  1762.         Repeat
  1763.         FRead(FileHandle,FileLine);
  1764.         ForeGnd(White);
  1765.         Write('Review [ ');
  1766.         ForeGnd(Yellow);
  1767.         Write(FileLine);
  1768.         Foregnd(White);
  1769.         GoToXY(79,WhereY()); Write(']'); WrLn;
  1770.         INC(LineCount);
  1771.            If LineCount MOD 10 = 0 THEN
  1772.            WrLn;
  1773.            Write(' [ Press any key to continue ]');
  1774.            WHILE NOT Keypressed() DO END;
  1775.            While Keypressed() DO RdKey() END;
  1776.            WrLn; WrLn;
  1777.            END;
  1778.         UNTIL FEOF(FileHandle);
  1779.         WrLn;
  1780.         FClose(FileHandle);
  1781.         FDelete('NewTest.LOG');
  1782.         Write(' [ End of Review (Length: ',LineCount,' Lines) ]');
  1783.         END;
  1784.         WrLn; WrLn;
  1785.         Write('That is the end of the script !'); WrLn; WrLn;
  1786.    END Mickey;
  1787.  Deputy is normally started by simply typing DEPUTY at  the  command
  1788.  line.   There are however a number of options which can be added as
  1789.  arguments to alter the way Deputy works. The syntax is:
  1790.       DEPUTY -mem -rts -bw -vpix -x nn -tcp -18 script.scr
  1791.  The -mem option makes Deputy's  overlays  sticky.  Normally,  to
  1792.  save  memory,  certain  parts  of the Deputy program are kept in
  1793.  overlays, and loaded into memory only when required  (the  setup
  1794.  menus,  the  dial  directory  etc.). If you use the -mem option,
  1795.  then any overlay loaded will then stay in memory and  thus  will
  1796.  pop  up much quicker on subsequent uses. This will obviously use
  1797.  more memory than in regular mode.
  1798.  Some slow PC's may take longer to complete disc writes during  file
  1799.  downloads  or  logging  -  if  this causes you constant errors, the
  1800.  '-rts' suffix on the command line will enable RTS  toggling  during
  1801.  disc writes.
  1802.  If  you  are using a black and white monitor and you intend calling
  1803.  colour services such as Prestel (or a service  using  ANSI  colour)
  1804.  then  the dark colours such as red may not be visible. Use this -bw
  1805.  option to foce all shades to white.
  1806.  If you want to automatically execute a DSL script from the  command
  1807.  line,  then  you can do so by typing the script name, as shown.  It
  1808.  must be a precompiled script, not a .DSL file.
  1809.  The -x nn parameter allows you to specify a timeout value for  Xoff
  1810.  interpretation  if  you are using soft flow control. nn should be a
  1811.  decimal value in second.
  1812.  The -tcp and -vpix options are specialised facilities  for  network
  1813.  services and should not be used for normal operation.
  1814.  Note that all  of  the  above  options  are  provided  to  allow
  1815.  compatibility   with  unusual  systems;  as  such,  we  do  make
  1816.  modifications to  them  and  not  all  options  will  always  be
  1817.  available in all version of Deputy.
  1818.