home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 19 / CD_ASCQ_19_010295.iso / vrac / ned17x.zip / NED.DOC < prev    next >
Text File  |  1994-09-08  |  283KB  |  6,541 lines

  1.  
  2.            NED v1.7x User's Guide                           Page   1
  3.  
  4.  
  5.  
  6.                            NED(tm) v1.7x User's Guide
  7.  
  8.                            ,
  9.                       _   /_  __.  __  _  , , , __.  __  _
  10.                     _/_)_/ /_(_/|_/ (_</_(_(_/_(_/|_/ (_</_
  11.  
  12.  
  13.                             DEFINITION OF SHAREWARE
  14.  
  15.            Shareware  distribution  gives  users  a  chance  to  try
  16.            software before buying it. If you try a Shareware program
  17.            and continue  using it,  you are  expected  to  register.
  18.            Individual programs  differ on  details --  some  request
  19.            registration while  others require  it,  some  specify  a
  20.            maximum trial period. With registration, you get anything
  21.            from the  simple right  to continue using the software to
  22.            an updated program with printed manual.
  23.  
  24.            Copyright laws  apply to  both Shareware  and  commercial
  25.            software, and  the copyright  holder retains  all rights,
  26.            with a few specific exceptions as stated below. Shareware
  27.            authors   are   accomplished   programmers,   just   like
  28.            commercial authors,  and the  programs are  of comparable
  29.            quality. (In  both cases, there are good programs and bad
  30.            ones!)  The   main  difference   is  in   the  method  of
  31.            distribution. The author specifically grants the right to
  32.            copy and  distribute the  software,  either  to  all  and
  33.            sundry or  to a specific group. For example, some authors
  34.            require  written  permission  before  a  commercial  disk
  35.            vendor may copy their Shareware.
  36.  
  37.            Shareware  is  a  distribution  method,  not  a  type  of
  38.            software. You  should find software that suits your needs
  39.            and pocketbook, whether it's commercial or Shareware. The
  40.            Shareware system makes fitting your needs easier, because
  41.            you can  try before  you buy. And because the overhead is
  42.            low, prices  are low  also. Shareware  has  the  ultimate
  43.            money-back guarantee -- if you don't use the product, you
  44.            don't pay for it.
  45.  
  46.                             DISCLAIMER - AGREEMENT
  47.  
  48.            Users of NED(tm) v1.7x must  accept  this  disclaimer  of
  49.            warranty:
  50.  
  51.            "NED v1.7x  IS SUPPLIED  AS IS.  THE AUTHOR DISCLAIMS ALL
  52.            WARRANTIES,  EXPRESSED  OR  IMPLIED,  INCLUDING,  WITHOUT
  53.            LIMITATION, THE  WARRANTIES  OF  MERCHANTABILITY  AND  OF
  54.            FITNESS FOR  ANY PURPOSE. THE AUTHOR ASSUMES NO LIABILITY
  55.            FOR DAMAGES,  DIRECT OR  CONSEQUENTIAL, WHICH  MAY RESULT
  56.            FROM THE USE OF NED v1.7x.
  57.  
  58.            GOOD DATA  PROCESSING PROCEDURE DICTATES THAT ANY PROGRAM
  59.            BE  THOROUGHLY   TESTED  WITH  NON-CRITICAL  DATA  BEFORE
  60.            RELYING ON  IT. THE  USER MUST  ASSUME THE ENTIRE RISK OF
  61.            USING THE  PROGRAM. ANY  LIABILITY OF  THE AUTHOR WILL BE
  62.            
  63.            NED v1.7x User's Guide                           Page   2
  64.  
  65.            LIMITED EXCLUSIVELY  TO PRODUCT  REPLACEMENT OR REFUND OF
  66.            THE REGISTRATION FEE TO REGISTERED USERS."
  67.  
  68.            NED v1.7x  is a "shareware program" and is provided at no
  69.            charge to  the user for evaluation. Feel free to share it
  70.            with your friends, but please do not give it away altered
  71.            or as   part  of another  system. The   essence of "user-
  72.            supported" software is to provide personal computer users
  73.            with quality  software without  high prices,  and yet  to
  74.            provide incentive  for programmers to continue to develop
  75.            new products.  If you  find this  program useful and find
  76.            that you  are using  NED v1.7x  and continue  to use  NED
  77.            v1.7x after  a reasonable trial period, you should make a
  78.            registration payment  of $15  to DAVID  L. DIGHT. The $15
  79.            registration fee will licence one copy for use on any one
  80.            computer at  any one  time. You  must treat this software
  81.            just like a book. An example is that this software may be
  82.            used by any number of people and may be freely moved from
  83.            one computer  location to another, so long as there is no
  84.            possibility of  it being  used at one location while it's
  85.            being used  at another.  Just as a book cannot be read by
  86.            two different persons at the same time.
  87.  
  88.            Commercial users  of NED  v1.7x must register and pay for
  89.            their copies  of NED v1.7x within 30 days of first use or
  90.            their licence  is withdrawn.   Site-Licence  arrangements
  91.            may be made by contacting DAVID L. DIGHT.
  92.  
  93.            Anyone  distributing   NED  v1.7x   for   any   kind   of
  94.            remuneration must  first contact  DAVID L.  DIGHT at  the
  95.            address below for authorisation.
  96.  
  97.            This  authorisation  will  be  automatically  granted  to
  98.            distributors recognized  by the  Association of Shareware
  99.            Professionals (ASP)  as adhering  to its  guidelines  for
  100.            shareware distributors,  and  such distributors may begin
  101.            offering NED  v1.7x immediately  (However DAVID  L. DIGHT
  102.            must still be advised so that the distributor can be kept
  103.            up-to-date with the latest version of NED v1.7x).
  104.  
  105.            You are  encouraged to  pass a copy of NED v1.7x along to
  106.            your friends  for evaluation.   Please  encourage them to
  107.            register their  copy if  they find  that they can use it.
  108.            All registered  users will  receive a  copy of the latest
  109.            version of the NED v1.7x system. If you do pass on a copy
  110.            please make  sure you  include all  the system files with
  111.            documents. The file NED17X.EXE is a self-extracting exec-
  112.            utable archive and contains all files with this release.
  113.            
  114.            NED v1.7x User's Guide                           Page   3
  115.  
  116.            *********************************************************
  117.  
  118.               NED(tm) v1.7x (C) Copyright 1987-93 David L. Dight
  119.                              All Rights Reserved.
  120.  
  121.                     Additional analysis by Francis C. Crisp
  122.  
  123.                   P.O.  Box 280,  Kings Cross,  N.S.W.  2011
  124.                   AUSTRALIA. +61 2 3314521,  CIS:100033,2563
  125.  
  126.                               _______
  127.                          ____|__     |                (R)
  128.                       --|       |    |-------------------
  129.                         |   ____|__  |  Association of
  130.                         |  |       |_|  Shareware
  131.                         |__|   o   |    Professionals
  132.                       -----|   |   |---------------------
  133.                            |___|___|    MEMBER
  134.  
  135.  
  136.            IBM, PC-XT,  PC-AT, PS/2,  PC-DOS, MDA,  CGA, EGA and VGA
  137.            are  registered   trademarks  of  International  Business
  138.            Machines Corporation. MS-DOS is a registered trademark of
  139.            Microsoft  Corporation.   Compaq  386   is  a  registered
  140.            trademark of Compaq Corporation. Epson FX is a registered
  141.            trademark of Epson  America  Incorporated.  Hercules is a
  142.            registered trademark of Hercules Computer Technology.  HP
  143.            LaserJet is a registered trademark of the Hewlett-Packard
  144.            Company.
  145.  
  146.            Revision 1.7.x.2 08-Sep-1994.
  147.            
  148.            NED v1.7x User's Guide                           Page   4
  149.  
  150.            *********************************************************
  151.            NED v1.7x User's Guide
  152.            Table of contents
  153.  
  154.            Introduction                                            6
  155.                 i    Introduction                                  6
  156.                 ii   How to Use this Manual                        7
  157.                 iii  Notational Conventions                        7
  158.  
  159.            Chapter 1. Installing NED                               9
  160.                 1.1  Package Contents                              9
  161.                 1.2  System Requirements                           9
  162.                 1.3  Installation                                  9
  163.  
  164.            Chapter 2. Getting Started                             11
  165.                 2.1  Creating or Editing a File                   11
  166.                 2.2  The Editing Screen                           11
  167.                 2.3  Entering Text                                12
  168.                 2.4  Getting Help                                 13
  169.                 2.5  Basic Movement Keys                          13
  170.  
  171.  
  172.            Chapter 3. Learning More                               15
  173.                 3.1  Using the Command Area                       15
  174.                 3.2  Managing Multiple Files                      16
  175.                 3.3  Text Editing Functions                       17
  176.                 3.4  Using Block Mode                             18
  177.                 3.5  Using Word Wrap                              19
  178.                 3.6  The Status Screen                            20
  179.                 3.7  Searching, Replacing and Matching            21
  180.                 3.8  Quitting NED                                 23
  181.                 3.9  The Backup System                            24
  182.  
  183.            Chapter 4. Advanced Features                           26
  184.                 4.1  Configuring NED                              26
  185.                 4.2  Using File Lists                             30
  186.                 4.3  File Display Mode                            31
  187.                 4.4  Creating and Using Macros                    33
  188.                 4.5  Printing a File                              34
  189.                 4.6  Using the Print Spooler                      35
  190.                 4.7  Using the Calculator                         36
  191.                 4.8  Using the ASCII Tables                       37
  192.                 4.9  Using Colours 43/50 line modes.              37
  193.  
  194.            Chapter 5. System Reference                            40
  195.                 5.1  Command Reference                            40
  196.                 5.2  Function Reference                           55
  197.                 5.3  Configuration Reference                      73
  198.                 5.4  Block Mode Reference                         80
  199.                 5.5  File Display Reference                       83
  200.                 5.6  Regular Expression Reference                 85
  201.                 5.7  Printer Command Reference                    89
  202.  
  203.            Chapter 6. Tutorials                                   92
  204.                 6.1  Introduction                                 92
  205.                 6.2  Tutorial One - A DOS menu system             92
  206.                 6.3  Tutorial Two - Programming with NED          99
  207.  
  208.            
  209.            NED v1.7x User's Guide                           Page   5
  210.  
  211.            Appendix A. Messages                                  106
  212.            Index                                                 113
  213.            
  214.            NED v1.7x User's Guide                           Page   6
  215.  
  216.            *********************************************************
  217.            NED v1.7x User's Guide
  218.  
  219.            i Introduction
  220.  
  221.            NED  is  a  high  performance  text  editor  specifically
  222.            designed for  programmers and  people who  need to use an
  223.            editor regularly.  It is  simple to  use and  robust  yet
  224.            fully featured for the serious user. NED has an intuitive
  225.            'feel' encouraging experimentation and confidence whether
  226.            you are  just learning about editors or you are a 'power'
  227.            user. Here  are just  some of the reasons you'll find NED
  228.            one of the best editors you've ever used:
  229.  
  230.            1. Edit   multiple  files.  Up to   ten (10) files may be
  231.            edited at  once. You  can move  between open files with a
  232.            single keystroke.
  233.  
  234.            2. Expansion   of   wildcard   file  specifications  from
  235.            command line and the use of File Lists. NED allows you to
  236.            predefine a  list of files to edit. If you are working on
  237.            a multi-moduled  system this  feature will  save you time
  238.            specifying file names. You can also browse through drives
  239.            and directories for files to open.
  240.  
  241.            3. On line Calculator, ASCII tables and help screens.
  242.  
  243.            4. Fast.  NED has  been designed  to make  maximum use of
  244.            your video hardware and to be as fast as possible.
  245.  
  246.            5. Full  support for   Hercules,  EGA   and VGA  adaptors
  247.            including 43 and 50 line modes.
  248.  
  249.            6. Special   functions  such   as brace/bracket matching,
  250.            field  copying,   character  case   flip,  date/time  and
  251.            filename insertion  into your  file. These  make  editing
  252.            easier, quicker and more productive.
  253.  
  254.            7. Embedded   print  commands   and print  while you work
  255.            spooler.
  256.  
  257.            8. Powerful  Regular Expression  Language makes searching
  258.            and replacing easier and more effective.
  259.  
  260.            9. Shell  to DOS.  NED is  compact enough to allow you to
  261.            run most  applications when  in the  shell.  Execute  DOS
  262.            commands from within NED.
  263.  
  264.            10. The  editing   environment is fully configurable with
  265.            CONFIG.NED.
  266.  
  267.            11. Block  copy,   cut and  paste from within lines to an
  268.            entire file.  Block functions  allow  formatting  of  the
  269.            block, or copying blocks to the search expression.
  270.  
  271.            12. NED  allows you to prepare text for use with desk top
  272.            publishing systems  with features  like word  wrap  left,
  273.            right  and   centre  justify,  escape,  tab  and  control
  274.            
  275.            NED v1.7x User's Guide                           Page   7
  276.  
  277.            character insertion.
  278.  
  279.            13. Functionality.  NED has  the most exhaustive function
  280.            capability of any editor on the market.
  281.  
  282.            14. Clear,  concise,   easy  to  read  and  fully  cross-
  283.            referenced User's Guide.
  284.  
  285.            15. Keyboard  macros. You  may record, save and use up to
  286.            20 macros  at any  one time. Macros save time by reducing
  287.            repetitive keystrokes.
  288.  
  289.            The User's Guide will help you get the most out of NED.
  290.  
  291.            ii How to Use this Manual
  292.            NED is  designed   for   both  the  first  time  and  the
  293.            experienced user.  Different parts  of  this  manual  are
  294.            intended for users with different needs.
  295.  
  296.            Chapter 1  Installing NED  explains how to install NED on
  297.            your machine.  It  also  explains  NED's  minimum  system
  298.            requirements and the package contents.
  299.  
  300.            Chapter 2  Getting Started  describes the basics of using
  301.            NED such  as how  to create  a  file,  understanding  the
  302.            editing screen,  entering text  and getting  help. It  is
  303.            designed as  an introduction  to both  NED and editing in
  304.            general.
  305.  
  306.            Chapter 3  Learning More describes how to use the command
  307.            area,  manage   multiple  files,  advanced  text  editing
  308.            functions, block mode commands, word wrap, search for and
  309.            replace text.
  310.  
  311.            Chapter 4  Advanced Features  describes  the  NED's  more
  312.            advanced features  such as  configuring NED,  File Lists,
  313.            keyboard Macros and printing.
  314.  
  315.            Chapter 5  System Reference  provides  a  full  reference
  316.            manual  for   all  of   NED's  commands,  function  keys,
  317.            configuration statements,  printer commands, File Display
  318.            keys,  Block   Mode  keys   and  the  Regular  Expression
  319.            Language.
  320.  
  321.            Chapter 6  Tutorials provides two 'hands on' tutorials on
  322.            using NED.
  323.  
  324.            Appendix A  Messages lists  all the messages that you may
  325.            encounter using NED with a brief comment on each. READ.ME
  326.            File  on   the  system  disk  documents  corrections  and
  327.            enhancements made  to both  the program  and  the  user's
  328.            guide after the user's guide was printed.
  329.  
  330.            iii  Notational Conventions
  331.            This section  describes the  notational conventions  used
  332.            throughout this manual.
  333.  
  334.            placeholders        Items in italics are placeholders for
  335.            
  336.            NED v1.7x User's Guide                           Page   8
  337.  
  338.                 types of  information you  must supply,  for example
  339.                 pathname, macrofile,  number,  to  and  from.  Other
  340.                 words appear in italics for emphasis.
  341.  
  342.            [optional items]    Items   enclosed   by   bold   square
  343.                 brackets are optional.
  344.  
  345.            repeating items...  Three bold  dots  following  an  item
  346.                 indicate that items of the same form may be repeated
  347.                 a number of times.
  348.  
  349.            {item1|item2}       This indicates  that you    have    a
  350.                 choice between  two   or more  items. Bold  brackets
  351.                 enclose all  the choices  and the bold vertical bars
  352.                 separate the  choices. One  of  the  items  must  be
  353.                 chosen, unless all the choices Are optional.
  354.  
  355.            examples            These  will   be  indented  and  will
  356.                 appear in a non-proportional typeface.
  357.  
  358.            screen examples     These appear  in the lineprinter font
  359.                 and are enclosed in a box.
  360.  
  361.            <keyname>           The  angle   brackets  indicates  the
  362.                 function key  <keyname> that  is to  be entered. For
  363.                 example: <Enter>.
  364.  
  365.            KEYNAME             This  refers   to  a   function   key
  366.                 (KEYNAME) when  it is  mentioned within a paragraph.
  367.                 For example: "if you press ENTER...".
  368.  
  369.            ALT                 This represents the alternate key(s).
  370.                 ALT N  means the  ALT   key must be pressed with the
  371.                 'n' key to generate ALT N.
  372.  
  373.            SHIFT               This represents  either the  left  or
  374.                 right shift  key. In  some cases it will be preceded
  375.                 by a LEFT or RIGHT specification.
  376.  
  377.            CTRL or ^           These symbols  represent the  control
  378.                 key(s). SECTION  1.0  These  will  appear  in  small
  379.                 capitals and  refer to  chapter sections  where more
  380.                 information about a topic may be found.
  381.  
  382.  
  383.            
  384.            NED v1.7x User's Guide                           Page   9
  385.  
  386.            *********************************************************
  387.            NED v1.7x User's Guide
  388.            Chapter 1 Installing
  389.  
  390.            1.1  Release Contents
  391.  
  392.            See the file PACKING.LST for contents.
  393.  
  394.            1.2 System Requirements
  395.            IBM XT,AT,PS/2,386,486,Pentium or compatible.
  396.            PC-DOS/MS-DOS 2.0 or later.
  397.            Minimum 256Kb installed RAM.
  398.            MDA, CGA, EGA, VGA,  Hercules or  compatible  adapter and
  399.            monitor.
  400.            At least one floppy-disk drive  (two are recommended or a
  401.            hard-disk and a floppy-disk drive).
  402.            Printer (optional).
  403.  
  404.  
  405.            1.3 Installation
  406.            It is  best to  have the drive:\directory that NED exists
  407.            on your  PATH   so that   you  may  use NED  in what ever
  408.            directory you  are in.  This is  also necessary for using
  409.            the Help screens and for the Calculator and ASCII tables.
  410.            The PATH  tells DOS  where to  look for  executable files
  411.            which in  this case  are NED,  NHELP, NCAL  In the  above
  412.            example,
  413.            
  414.            NED v1.7x User's Guide                           Page  10
  415.  
  416.  
  417.                 PATH=C:\;C:\DOS;C:\UTILS
  418.  
  419.            If you  normally have  your  programs  in  the  directory
  420.            'C:\UTILS' and  you wish  to work  in a  number of  other
  421.            directories then  having NED  in a  directory which is on
  422.            the PATH  means you  don't have  to worry about where NED
  423.            resides.
  424.  
  425.  
  426.            
  427.            NED v1.7x User's Guide                           Page  11
  428.  
  429.            *********************************************************
  430.            NED v1.7x User's Guide
  431.            Chapter 2 Getting started
  432.  
  433.            2.1  Creating or Editing a File
  434.            The DOS command line syntax for NED is:
  435.  
  436.                 ned [file1 file2 ... filen]
  437.  
  438.            Where  file   may  be   either   a   pathname,   wildcard
  439.            specification or  an 'At'  file  (e.g.  @files.ned).  The
  440.            following DOS command lines provide examples:
  441.  
  442.                 ned sample.c
  443.                 ned sample.c c:\mydir\test.prg *.bat
  444.  
  445.            In the first example, 'sample.c' is loaded. In the second
  446.            example NED  will load  up 'sample.c'  to start  with. If
  447.            sample.c doesn't exist, you will be prompted:
  448.  
  449.                 Ok to Create (Y/N) ?
  450.  
  451.            If you  answer yes  you may  begin entering  text, if you
  452.            answer no,  NED will exit you to DOS. The remaining files
  453.            ('c:\mydir\test.prg' and  all  matching  *.bat)  will  be
  454.            added to your File List and may be opened later using the
  455.            OPEN command.  Of course  you only  have to  specify  one
  456.            filename on the command line.
  457.  
  458.            NED accepts  any valid DOS wildcard specification. As NED
  459.            loads, it  attempts to  place every  matching filename in
  460.            the  File   List.  If   no  matches  can  be  found,  the
  461.            specification is  left as  a filename. You may have up to
  462.            512  filenames   in  the  File  List  from  one  or  more
  463.            wildcards. You  can increase this  number with the DIRMAX
  464.            statement in CONFIG.NED.
  465.  
  466.            You can  only edit  text files  with NED.  If you attempt
  467.            editing  other   types   of   files   the   results   are
  468.            unpredictable. NED  will try  to load  256 characters  to
  469.            each line  if no carriage return/line feeds are found. If
  470.            a line  is longer than 256 characters, NED will split the
  471.            line at  256 characters.  NED will  continue to split the
  472.            line until the remainder is less than 256.
  473.  
  474.            If you  try to save a file that was loaded in this manner
  475.            it will  be completely  corrupted. If  you need to load a
  476.            formatted word-processor  document, save  or convert  the
  477.            file to ASCII format before loading it with NED.
  478.  
  479.            2.2  The Editing Screen
  480.            The screen  is divided into two main 'windows'. The first
  481.            is known as the System window, and the second as the Edit
  482.            window. The System window is designed to display the most
  483.            relevant information  you need  when editing a file. From
  484.            left to right, the top line displays:
  485.  
  486.            Busy/Idle symbol - is an hour glass when NED is busy,
  487.            
  488.            NED v1.7x User's Guide                           Page  12
  489.  
  490.            e.g. when reading a file and is shutters when NED is
  491.            awaiting a command.
  492.            Filename - the filename/pathname of the current area. If
  493.            changes have been made, is in bold. If area is not open,
  494.            '(area unopened)' is displayed.
  495.            Area map - the current area if open is in bright bold
  496.            attribute and other open areas are in bold attribute.
  497.            Areas not open are in normal attribute.
  498.            Available memory - as a percentage free.
  499.            IWCNS - Auto-indent (I), Word-wrap (W), Caps-lock (C),
  500.            Num-lock (N) and Scroll-lock (S) toggles. Bold if on.
  501.            Line and Column - of cursor.
  502.  
  503.            The second  line is  the command area. When you press the
  504.            ESC key  the cursor  moves to this line. All commands and
  505.            parameters are  entered and shown here. The ruler display
  506.            appears on  this line  when the  cursor is  in  the  Edit
  507.            window. This displays each tab as a 'T' starting from the
  508.            current left  hand column  of the  Edit window. The right
  509.            hand margin is displayed as a 'R' and when the right hand
  510.            margin is   over  a tabstop,  it is  displayed as the 'P'
  511.            over 't'  character. The  following is  an example of the
  512.            default settings:
  513.  
  514.            ....T...T...T...T...T...T...T...T...T...T...T...T...T...T
  515.            ...T...R...T...T...T...
  516.  
  517.            The third  line shows  any confirmation, warning or error
  518.            messages to  the left  and an  abbreviated version of the
  519.            contents of the scrap buffer to the right. See Appendix A
  520.            for a description of NED's messages.
  521.  
  522.            The rest of the screen is known as the Edit window and is
  523.            devoted to  the file  you are  editing. If  the  file  is
  524.            longer than  twenty two  lines, the  first twenty two are
  525.            shown. If  it is  less than twenty two or the Edit window
  526.            is positioned  at the end of the file, a small bold tilde
  527.            (~) appears  on every  unused line  to  the  end  of  the
  528.            window.
  529.  
  530.            2.3  Entering Text
  531.            Entering text  is just  like using  a typewriter. Most of
  532.            the keys  on a  typewriter correspond  to  keys  on  your
  533.            keyboard. Unlike  many editors,  NED allows  you to enter
  534.            text where  ever the  cursor is  located, even if this is
  535.            off the  end of  a line.  This feature  is convenient for
  536.            programming when  formatting  and  commenting  code.  NED
  537.            automatically fills the gap created with spaces. The Edit
  538.            window is  a maximum  256 characters wide and will scroll
  539.            when necessary since NED only allows you to edit in an 80
  540.            character window at one time. The maximum number of lines
  541.            you can edit is 10240 if the MAXLINES statement is set to
  542.            this value  in CONFIG.NED,  see section  4.1 and  5.3 for
  543.            details. The default setting is 5120 lines. To open a new
  544.            line press  ENTER. To  open a  new line above the current
  545.            line press  CTRL  ENTER.  NED  has  an  auto  indentation
  546.            feature. When  on, and  you press  ENTER, NED  places the
  547.            cursor under  the first  non-whitespace character  of the
  548.            
  549.            NED v1.7x User's Guide                           Page  13
  550.  
  551.            previous line.  See the  ENTER and  ALT  I  functions  in
  552.            SECTION 5.2 for further details on Auto indent.
  553.  
  554.            Insert mode  is toggled using the INS key. When in insert
  555.            mode, entered  text pushes all characters in front of the
  556.            cursor including the entered character forward. In insert
  557.            mode the  cursor appears  as a half block. The default is
  558.            overtype mode  where entered  text replaces  the original
  559.            characters on  the line.  The cursor appears as a quarter
  560.            block. Various  functions make  use of  the  insert  mode
  561.            including TAB, ALT F and BS.
  562.  
  563.            To erase  a mistake, backspace (BS) over the character or
  564.            move the  cursor left and press DEL. If you are in insert
  565.            mode, BS has the reverse effect of inserting so that text
  566.            is  dragged   left  towards   the  cursor  (deleting  the
  567.            character to the left of the cursor).
  568.  
  569.            NED allows  high-bit characters (e.g. ruling graphics) to
  570.            be entered  in a  file. You  can use  the ALT  generation
  571.            method (ALT  <ASCII number  of key on numeric pad>) and a
  572.            few Ctrl  generated characters  (e.g. CTRL  G,  CTRL  D).
  573.            However  some  Ctrl  keys  have  special  functions.  For
  574.            example to enter an escape character into your file press
  575.            CTRL ESC  since the  ESC key  is used  to enter  or  exit
  576.            Command mode.
  577.  
  578.            The TAB  key  is  worth  special  mention.  Under  normal
  579.            operation this  moves the cursor one tabstop to the right
  580.            (default four  spaces) and SHIFT TAB moves the cursor one
  581.            tabstop to the left. If insert is on and hard-tab is off,
  582.            a tabstop  is inserted  at the  cursor (the corresponding
  583.            number of  spaces pushing  text right)  and the SHIFT TAB
  584.            deletes a  tabstop (dragging  text left). However, if the
  585.            hard-tab toggle is set (ALT T) tab characters (chr 9) are
  586.            entered instead.
  587.  
  588.            2.4 Getting Help
  589.            To get  help press  the F1  key. NHELP.EXE must be in the
  590.            current directory  or on  the PATH. A brief page index is
  591.            given and  you can  type the  page-number you need or you
  592.            can browse  using the  PGDN or  PGUP keys. Alternatively,
  593.            you can  issue the  HELP command  which takes an optional
  594.            starting page number, for example:
  595.  
  596.                 <Esc>H5<Enter>
  597.  
  598.            will take  you to the fifth help screen. Further help can
  599.            be found  in the  function/command reference  sections of
  600.            this manual.
  601.  
  602.            2.5 Basic Movement Keys
  603.            NED gives  you a 'window' on the file you are working on.
  604.            Within the  window the  cursor may be positioned to enter
  605.            or edit text. In addition to the LEFT, RIGHT, UP and DOWN
  606.            keys the following positioning keys may be used:
  607.  
  608.                HOME           start of line
  609.            
  610.            NED v1.7x User's Guide                           Page  14
  611.  
  612.                END            end of line
  613.                CTRL RIGHT     next word
  614.                CTRL LEFT      previous word
  615.                ALT A          goto column 1
  616.                ALT Z          goto column 256
  617.                ALT S          goto start window
  618.                ALT E          goto end window
  619.                ALT N          next line
  620.                ALT P          previous line
  621.                CTRL PGDN      bottom of window
  622.                CTRL PGUP      top of window
  623.  
  624.            When the  end of the window is reached the screen will be
  625.            scrolled either  up or down. You can also re-position the
  626.            window leaving  the cursor  in the same relative position
  627.            with the following keys:
  628.  
  629.                PGDN      next page (+22 lines)
  630.                PGUP      previous page (-22 lines)
  631.                CTRL HOME start of file
  632.                CTRL END  end of file
  633.  
  634.            See section  5.2 for  more information on these and other
  635.            movement keys.
  636.  
  637.  
  638.            
  639.            NED v1.7x User's Guide                           Page  15
  640.  
  641.            *********************************************************
  642.            NED v1.7x User's Guide
  643.            Chapter 3 Learning More
  644.  
  645.            3.1  Using the Command Area
  646.            NED accepts  commands in  two ways. Firstly, certain keys
  647.            are  assigned   functions  and  are  consequently  called
  648.            function keys.  These include  all the 'F' keys (e.g. F1,
  649.            CTRL F3),  and the ALT keys (e.g ALT F, ALT A). The other
  650.            way is  through the  command area. These commands require
  651.            either a parameter or confirmation.
  652.  
  653.            Pressing ESC  takes the cursor from where ever you are in
  654.            the Edit  window to  the 2nd  line (known  as the command
  655.            area). NED  accepts a set of single letter commands which
  656.            represent the  full word of the command. This is known as
  657.            command selection  mode. You  may browse through these by
  658.            pressing the  up/down arrows  or you may simply press the
  659.            letter of the command. For example if you press:
  660.  
  661.                 <Esc>O
  662.  
  663.            NED responds:
  664.  
  665.                 Open:
  666.  
  667.            by printing  the full  name of  the command followed by a
  668.            colon and  placing the  cursor after  the colon. NED then
  669.            waits for  an  optional  parameter.  Some  commands  need
  670.            parameters. Entering  parameters is  just like  using the
  671.            editor. You  may use INS, DEL or BS and some of the other
  672.            editing keys  to  type  your  parameter.  Once  you  have
  673.            entered the  parameter you  must press  ENTER again.  The
  674.            command is then executed.
  675.  
  676.            For commands  that don't  need parameters  you must still
  677.            press ENTER  again to  confirm the command. You may abort
  678.            the command  during parameter entry by pressing ESC. This
  679.            will return  you to  command selection mode. If you press
  680.            ESC again  you will  be returned  to the Edit window. You
  681.            can return  directly to  the Edit window by pressing CTRL
  682.            ENTER instead  of ENTER  when executing  a  command.  NED
  683.            remembers the last command you entered so on re- entering
  684.            Command mode  you may  press ENTER  to execute  the  same
  685.            command again.  NED also remembers the last parameter you
  686.            entered. You  may  retrieve  this  with  the  F3  key  in
  687.            parameter entry mode.
  688.  
  689.            Some commands  have special  keys. The  OPEN command lets
  690.            you browse  through files in the File List with the up or
  691.            down arrows.  The SPECIFY  command allows  you to  use or
  692.            edit the  last search  specification by  pressing the  up
  693.            arrow. A  similar function  is provided  with the REPLACE
  694.            command. The OPEN, MACRO and BACKUP commands allow you to
  695.            enter the  File Display  mode through  the  F1  key,  see
  696.            section 4.3 and 5.5 for more information on this mode. If
  697.            you change  to  an  unopened  area  the  cursor  will  be
  698.            confined to  the command  area. You  can only  edit in an
  699.            
  700.            NED v1.7x User's Guide                           Page  16
  701.  
  702.            opened area.
  703.  
  704.            Finally NED allows some of the normal editing commands to
  705.            be executed  from Command  mode. For  example you can use
  706.            most of the window positioning keys (like PGUP or PGDN).
  707.  
  708.            3.2 Managing Multiple Files
  709.            NED allows  you to  edit up  to  ten  files  at  once  by
  710.            assigning each  new file a new area number. To open a new
  711.            file,  use  the  OPEN  command.  Enter  the  filename  or
  712.            pathname of the file you wish to open. Alternatively, you
  713.            can use the up or down arrows to browse the File List or,
  714.            you can  enter File  Display mode by pressing F1 in order
  715.            to browse directories for a file to open.
  716.  
  717.            If you  have entered  your own filename and the file does
  718.            not exist, you will prompted to create it as described in
  719.            section 2.1 above. If you have files in the File List you
  720.            don't have to enter any parameter. NED will take the next
  721.            file from  the File  List and open it (CTRL F1 is a short
  722.            cut for this operation).
  723.  
  724.            Each open  file is  treated individually. NED only allows
  725.            you to  physically edit  one at  a time. Other open files
  726.            are suspended.  You can  of course transfer text from one
  727.            area  to  another  and  similarly  use  the  same  search
  728.            expressions across  all open files. There are a number of
  729.            ways to  change to  another area.  You can  use the  AREA
  730.            command  which  accepts  a  number  from  1  to 10  as  a
  731.            parameter. With  no parameter  AREA simply changes to the
  732.            next area.  You can  use ALT 0 to ALT 9 which corresponds
  733.            to those  area numbers.  Finally, you  can use the Status
  734.            screen described  in section  3.6 below. If you change to
  735.            an unopened  area NED  will automatically take the cursor
  736.            to the command area.
  737.  
  738.            The WRITE  command will  force a  write to  disk even  if
  739.            there have  been no changes made to the file and keep the
  740.            area open  (SHIFT F10 is a short cut for this operation).
  741.            The END command will write the file to disk if there have
  742.            been changes  and then  close the area. The END and WRITE
  743.            commands take an optional pathname parameter which allows
  744.            you to write the file to a different name.
  745.  
  746.            When you have finished with an area you can close it with
  747.            the CLOSE  command. The area is free to be re-opened with
  748.            another file.  You can only edit as many files as can fit
  749.            into memory.  When memory  is getting low, the percentage
  750.            of available memory, displayed in the System window, will
  751.            flash. You  should save your files and close some down to
  752.            free up more memory.
  753.  
  754.            The LAUNDRY  command is very useful when editing multiple
  755.            files. This  command saves  any files  you have open that
  756.            have changed.  Once all  files have been written, you are
  757.            returned  to   your  initial   area.  If   you  wish   to
  758.            periodically save  your work  files  (regular  saving  is
  759.            recommended) then  this command  saves you the trouble of
  760.            
  761.            NED v1.7x User's Guide                           Page  17
  762.  
  763.            having to  work out  which files need to be saved. If you
  764.            want to  selectively  save  changed  files,  the  LAUNDRY
  765.            command takes  an optional  'p' parameter that forces the
  766.            prompt:
  767.  
  768.                 Save this file (Y/N) ?
  769.  
  770.            to appear at every changed file. You may answer
  771.            accordingly.
  772.  
  773.            3.3 Text Editing Functions
  774.            Apart from the general inserting/deleting characters from
  775.            a file, NED provides many other useful editing functions.
  776.            You can  split a  line into  two lines at the cursor with
  777.            SHIFT F3.  Two lines may be joined together at the cursor
  778.            or the end of the line with F3.
  779.  
  780.            You can  copy one  character from  the line  above at the
  781.            current cursor  position using ALT F (called field copy).
  782.            Using SHIFT ALT F does the same except it copies from the
  783.            line  below.  If  the  insert  mode  is  on,  the  copied
  784.            character is inserted into the current line.
  785.            ALT M flips the case of a character (Eg 'm' to 'M' or 'M'
  786.            to 'm'). Left SHIFT ALT M flips to upper case only, Right
  787.            SHIFT ALT  M to  lower case only. ALT G flips the case of
  788.            the whole line.
  789.  
  790.            Text  can   be  justified  within  a  line.  ALT  L  left
  791.            justifies,  ALT   C  centres  a  line  and  ALT  R  right
  792.            justifies. If  the line  is greater  than  80  characters
  793.            long, centre  and right  justify work over the entire 256
  794.            character width.
  795.  
  796.            ALT D  will erase  to the  end of the line and ALT B will
  797.            erase to  the beginning.  ALT K will completely erase the
  798.            line (leaving it blank).
  799.  
  800.            ALT W will delete the next word and ALT Q will delete the
  801.            previous word.  A word is defined as a character or group
  802.            of characters  separated by one or more characters of the
  803.            Interword Delimiter  set.  The  default  delimiter  is  a
  804.            space.  The  set  can  be  modified  with  the  INTERWORD
  805.            command.
  806.  
  807.            SHIFT F2  deletes or  cuts the  current line to the scrap
  808.            buffer. If  the cursor  is not  moved between  successive
  809.            strokes of  SHIFT F2,  deleted lines  will be appended to
  810.            scrap. You  can therefore  delete an entire block of text
  811.            to scrap  by repeating  this keystroke.  However  if  the
  812.            cursor is moved, the next stroke of SHIFT F2 will firstly
  813.            destroy  the  existing  contents  of  the  buffer  before
  814.            cutting the  new line to scrap. An abbreviated version of
  815.            the contents  of the  scrap buffer  is displayed  at  the
  816.            bottom of the System window.
  817.  
  818.            You can  copy a  line to  scrap without  deleting it with
  819.            CTRL F3.  To restore  from the  scrap buffer  use F2. The
  820.            entire contents  of the  scrap will be inserted under the
  821.            
  822.            NED v1.7x User's Guide                           Page  18
  823.  
  824.            current line.  CTRL F2  will insert  the scrap  above the
  825.            current line.
  826.  
  827.            Edits made  within a  line can  be undone  with the ALT U
  828.            key. This means that the line is restored to its original
  829.            state before  you changed it. You may restore the changes
  830.            you have  made to the line before you first pressed ALT U
  831.            by pressing  ALT U  again. There are several restrictions
  832.            with ALT  U. Firstly,  no changes  can be undone once you
  833.            move to  another line.  Secondly, certain functions reset
  834.            the line  so that only further edits may be undone. These
  835.            functions are split and join line entry of the Block Mode
  836.            entry of Command mode entry of Status screen shell to DOS
  837.            insert filename and insert date/time.
  838.  
  839.            3.4 Using Block Mode
  840.            Block Mode  allows you  to manipulate blocks of text more
  841.            efficiently than  on a  line  by  line  or  character  by
  842.            character basis.  NED views  blocks of  text in two ways.
  843.            The multi  line (inter-line)  block handles  each line as
  844.            one unit. A block may contain one or more lines which can
  845.            be copied,  deleted or inserted. The in-line (intra-line)
  846.            block handles  each character  separately.  A  block  may
  847.            contain one  or more  characters  which  may  be  copied,
  848.            deleted or inserted within any one line.
  849.  
  850.            If you  cut an  intra-line block and then restore it, NED
  851.            will insert the block within the current line. If you cut
  852.            an inter-line  block (containing  one or  more lines) and
  853.            restore it,  NED will  insert the block under the current
  854.            line.
  855.  
  856.            To enter  Block mode  press F4. The cursor will change to
  857.            an underscore. You may then outline a block of text using
  858.            most of the cursor movement functions. The outlined block
  859.            will  be  displayed  in  Reverse  Video.  When  you  have
  860.            outlined  the   block,  the   following   functions   are
  861.            available:
  862.  
  863.                Key       Block action
  864.  
  865.                DEL or -  cut to scrap
  866.                INS or +  copy to scrap
  867.                TAB       move right a tabstop
  868.                SHIFT TAB move left a tabstop
  869.                SPACE     move right a space
  870.                BS        move left a space
  871.                L         left justify
  872.                C         centre justify
  873.                R         right justify
  874.                S         copy to the SPECIFY string, intra-line only
  875.                *         copy to last command parameter  F3,  intra-
  876.                          line only
  877.                F4        exit block leaving cursor at start of block
  878.                ESC       exit block mode leaving cursor end of block
  879.  
  880.            The TAB and SHIFT TAB keys move the block to the previous
  881.            or next  tabstop. The  SPACE and  BS keys  move the block
  882.            
  883.            NED v1.7x User's Guide                           Page  19
  884.  
  885.            right or  left a  space. The L, C and R keys left, centre
  886.            or  right   justify  the   block   treating   each   line
  887.            individually.
  888.  
  889.            The 's'  function allows  you to search for a string from
  890.            the file  elsewhere in the file without having to re-type
  891.            it. The  string is also copied to last parameter function
  892.            F3 in the parameter entry mode.
  893.  
  894.            The '*'  function is  also useful  when a string from the
  895.            Edit window is needed as a parameter in Command mode. See
  896.            the Block  Mode reference  section  5.4  below  for  more
  897.            details on these keys.
  898.  
  899.            When text  has been  cut or  copied to  scrap,  NED  will
  900.            display an abbreviation of the scrap to the right of line
  901.            3 of  the screen.  If the  scrap is  inter-line, NED will
  902.            display a 'paragraph' (ASCII 20) character in bold at the
  903.            end of  the block.  If  the  block  is  intra-line,  this
  904.            character will not appear.
  905.  
  906.            With both  types of scrap, NED will attempt to display as
  907.            much of the block as it can. If the width of the block is
  908.            greater than  the display  area or  there are a number of
  909.            lines in  the  block,  NED  will  display  the  first  20
  910.            characters of  the block,  a '/'  character in bold, then
  911.            the last 20 characters of the block.
  912.  
  913.            3.5 Using Word Wrap
  914.            You can  enter text continually without the need to press
  915.            ENTER by  using word  wrap. To  turn word  wrap on or off
  916.            press ALT  V. When  on, 'W'  appears in bold attribute on
  917.            the top  line between  the free  memory %  and  the  line
  918.            counter.
  919.  
  920.            If you type text past the right hand margin, NED wraps it
  921.            from the  beginning of the previous word to the beginning
  922.            of a new line below. The default right hand margin is 65.
  923.            You can  specify a new right hand margin with the 1MARGIN
  924.            command. See section 5.1 for details.
  925.  
  926.            Some keys behave differently when word wrap is on. If you
  927.            are within  a line,  ENTER will  split the  line  at  the
  928.            cursor position,  taking the  cursor to  the new line. If
  929.            you are at the end of a line it behaves as normal. If you
  930.            want to  open a  new line  without splitting  the current
  931.            line, use  CTRL M. When word wrap is off, this key splits
  932.            the current line as above.
  933.  
  934.            The DEL  key joins the next line to the current line when
  935.            the cursor  is at  the end  of the line. If the cursor is
  936.            past the  end of the line, the next line is joined at the
  937.            cursor position.
  938.  
  939.            If you  are at  the beginning  of a  line, and you are in
  940.            insert mode, and you press BS, the current line will join
  941.            itself to  the end  of the  previous line. The Block Mode
  942.            'c' function  and 'r'  function use the right hand margin
  943.            
  944.            NED v1.7x User's Guide                           Page  20
  945.  
  946.            setting when word wrap is on.
  947.  
  948.            You may  can specify whether NED starts up with word wrap
  949.            on or off with the WORDWRAP statement in CONFIG.NED. This
  950.            statement optionally  takes a  right hand margin setting.
  951.            The default setting is:
  952.  
  953.                 WORDWRAP=0,65
  954.  
  955.            See section 5.3 for more details on this statement.
  956.  
  957.            3.6 The Status Screen
  958.            The Status  screen is  designed to  provide  up  to  date
  959.            information on  the file(s) you are working on as well as
  960.            other system  information. It  can be  viewed by pressing
  961.            the F10 key. From left to right the information displayed
  962.            is as follows:
  963.  
  964.            Area        if open in bold attribute if current has an
  965.                        arrow next to it.
  966.            File Name   current name for file
  967.            Size        in bytes at last write
  968.            Lines       number of lines in file
  969.            Last Write  date/time of last write
  970.            Changes     Y/N if file has been changed since last write
  971.  
  972.            All ten  areas  are  scanned.  Empty  areas  display  the
  973.            message "(area  unopened)". If you have made changes to a
  974.            file, 'Y'  will appear  under  the  'Changes'  column  in
  975.            blinking bold attribute.
  976.  
  977.            If a file was opened that could not fit entirely into the
  978.            edit buffer,  the  'Lines'  value  will  also  appear  in
  979.            blinking bold  attribute. You  may also  use  the  Status
  980.            screen to select another area to work in. You can use the
  981.            up or down arrows or type the number of the area you wish
  982.            to use.  Only open  areas may  be selected  this way. The
  983.            following is  an example  of the  remainder of the Status
  984.            screen:
  985.  
  986.            Auto-detab  OFF                 Hard-tab        OFF
  987.            Auto-entab  OFF                 Interword chars ,;:.
  988.            Backup dir  C:\BAK              Maximum lines   1200
  989.            Current dir C:\NEDTUT           Page layout     66,3,3,0
  990.            Spooler     OFF                 File List       FILES.NED
  991.            Strip       ON                  Timeslice       128
  992.            Free memory 446006, 389904 largest block
  993.            Date/Time   Tuesday 01/01/88  12:00 am
  994.            Serial #    ?????????
  995.  
  996.            This displays  the current  settings of  NED. The current
  997.            directory is  the directory  you were in when you started
  998.            NED.  The   backup  directory   will   display   "current
  999.            directory" if no backup directory is specified. The first
  1000.            number of  free  memory  is  the  total  remaining  bytes
  1001.            available for  editing. The  largest block is the largest
  1002.            contiguous block  of memory that can be allocated by DOS.
  1003.            A minimum  64Kb contiguous  block is required to shell to
  1004.            
  1005.            NED v1.7x User's Guide                           Page  21
  1006.  
  1007.            DOS.
  1008.  
  1009.            Unless the  space  character  is  embedded  within  other
  1010.            interword characters,  it may  be difficult to recognize,
  1011.            particularly if it is at the beginning or end of the set.
  1012.            Maximum lines is the maximum number of lines you may have
  1013.            in any  one file. You can only change it by modifying the
  1014.            MAXLINES statement  in CONFIG.NED  and reloading NED. The
  1015.            timeslice value  is the  amount of time allocated between
  1016.            the keyboard  and the  printer when  spooling. The larger
  1017.            the timeslice,  the more  time the keyboard will receive.
  1018.            The following table summarizes the functions available
  1019.            with the Status screen.
  1020.  
  1021.                Key       Action
  1022.  
  1023.                UP        previous area
  1024.                DOWN      next area
  1025.                HOME      first area
  1026.                END       last area
  1027.                0 - 9     goto area 1 to 10
  1028.                ESC       return to your file
  1029.  
  1030.            3.7 Searching, Replacing and Matching
  1031.            NED allows you to search for and optionally replace text.
  1032.            To search  for  text  you  must  first  use  the  SPECIFY
  1033.            command, followed by one of the search keys (F8, SHIFT F8
  1034.            or CTRL  F8). To  replace text you must first SPECIFY the
  1035.            text to look for and then use the REPLACE command to tell
  1036.            NED what you wish to change the text to.
  1037.  
  1038.            The SPECIFY  command accepts  a string  of characters  to
  1039.            search for, for example:
  1040.  
  1041.                 <Esc>Sfor<Enter>
  1042.  
  1043.            tells NED  you wish  to look for the word 'for'. To begin
  1044.            searching, press one of the following keys:
  1045.  
  1046.                Key       Search
  1047.  
  1048.                F8        down from cursor
  1049.                SHIFT F8  up from cursor
  1050.                CTRL F8   down from top of file
  1051.  
  1052.            NED then  displays the  Current Search  Expression  while
  1053.            searching. If  the  pattern  cannot  be  found  NED  will
  1054.            display the following:
  1055.  
  1056.                 (pattern) not found
  1057.  
  1058.            SPECIFY also  accepts  a  string  that  conforms  to  the
  1059.            Regular Expression  Language. Regular  expressions are  a
  1060.            way  of   representing  text   patterns  in   a  symbolic
  1061.            shorthand. The  symbols used  to define these expressions
  1062.            fall into five categories:
  1063.  
  1064.            Symbols that match a specific character
  1065.            
  1066.            NED v1.7x User's Guide                           Page  22
  1067.  
  1068.            Symbols that match any character
  1069.            Symbols that match a character's position on the line
  1070.            Symbols that match any of a set of characters or anything
  1071.            except a set of characters
  1072.            Symbols that let you match the previous symbol any number
  1073.            of times
  1074.  
  1075.            An expression  may contain  one or  more of  any  of  the
  1076.            language symbols.  These  symbols  and  their  usage  are
  1077.            described in  the Regular  Expression Language  Reference
  1078.            section 5.6 below. For example, the command:
  1079.  
  1080.                 <Esc>S^[\s\t]*for<Enter>
  1081.  
  1082.            will search  for the word 'for' preceded by any number of
  1083.            blank characters  (spaces or  tabs) from the start of the
  1084.            line. The  carat (^) symbol refers to the start of a line
  1085.            the square brackets ([]) enclose a character set or class
  1086.            containing in  the above example spaces (\s) or tabs (\t)
  1087.            the asterisk  (*) in this example tells NED to search for
  1088.            the preceding  character class  any number  of times. NED
  1089.            has a  convenient alternative  method  for  specifying  a
  1090.            search string  by using  the 's'  function in Block Mode.
  1091.            This function  only works  with  intra-line  blocks.  See
  1092.            sections 3.4 and 5.4 for details on Block Mode.
  1093.  
  1094.            The REPLACE  command allows you to specify a string which
  1095.            will replace  one or  more  occurrences  of  the  SPECIFY
  1096.            expression (target  pattern). By default NED will replace
  1097.            the next  occurrence of  the target pattern. For example,
  1098.            the command:
  1099.  
  1100.                 <Esc>Sfor<Enter>RFOR<Enter>
  1101.  
  1102.            will replace  the next occurrence of 'for' with 'FOR'. It
  1103.            is likely  that you  will wish to replace all occurrences
  1104.            of the  target pattern in your file. In this case, append
  1105.            a  ',g'   (global)  to  the  replacement  parameter.  For
  1106.            example:
  1107.  
  1108.                 <Esc>Sfor<Enter>RFOR,g<Enter>
  1109.  
  1110.            will replace  all occurrences  of 'for' with 'FOR' in the
  1111.            current file.  You may  only wish  to replace a number of
  1112.            occurrences of  the target  pattern. In  this case append
  1113.            the ',number' you wish to replace. For example:
  1114.  
  1115.                 <Esc>Sfor<Enter>RFOR,3<Enter>
  1116.  
  1117.            will replace  the next  three occurrences  of 'for'  with
  1118.            'FOR' in  the current file. Each time a target pattern is
  1119.            found, NED will prompt:
  1120.  
  1121.                 Replace (Y/N) ?
  1122.  
  1123.            If you answer 'y' NED will replace the string if 'n', NED
  1124.            will continue  searching  if  you  press  ESC,  NED  will
  1125.            terminate the  command. You may suppress the above prompt
  1126.            
  1127.            NED v1.7x User's Guide                           Page  23
  1128.  
  1129.            by appending  a ',n'  to the  replacement parameter.  For
  1130.            example:
  1131.  
  1132.                 <Esc>Sfor<Enter>RFOR,g,n<Enter>
  1133.  
  1134.            will replace  all occurrences of 'for' with 'FOR' without
  1135.            prompting.
  1136.  
  1137.            Finally, the  REPLACE command  can be used to remove text
  1138.            from your  file by  omitting the  replacement string.
  1139.            For
  1140.            example:
  1141.  
  1142.                 <Esc>Sfor<Enter>R,g<Enter>
  1143.  
  1144.            will remove all occurrences of 'for' in the current file.
  1145.  
  1146.            Brace  matching   NED  provides   a  function   that   is
  1147.            particularly  useful   for  checking   complex  bracketed
  1148.            expressions in  programs. The  brace matching function F5
  1149.            attempts to  match opening  and closing  brace {}, square
  1150.            bracket  [],   angle  bracket   <>  or   parentheses   ()
  1151.            characters.
  1152.  
  1153.            First you  must move the cursor to the character you wish
  1154.            to match  and then  press F5.  If  the  character  is  an
  1155.            'opener' NED  will search  down the  file for  a  closing
  1156.            character, otherwise  NED  will  search  upwards  for  an
  1157.            opening character.  If no match is found NED will display
  1158.            the message:
  1159.  
  1160.                 Match Not Found !
  1161.  
  1162.            This means  that your expression is not correctly closed.
  1163.            If this is a program expression you will more than likely
  1164.            generate a  compile/run-time error.  If a match is found,
  1165.            NED will move the cursor to the matching character.
  1166.  
  1167.            3.8 Quitting NED
  1168.            There are two ways to quit NED. If you have only one open
  1169.            file and  wish to  save changes  made in  it, use the END
  1170.            command, otherwise  you should  use the QUIT command. The
  1171.            END command will save the file and close the area. If the
  1172.            current area  is the only area open, you will be returned
  1173.            to DOS,  or else  NED will  move you move to the previous
  1174.            open area.
  1175.  
  1176.            The QUIT command goes through all the open areas checking
  1177.            to see  if any  changes have been recorded in them. If no
  1178.            changes have  been made to an area, NED will simply close
  1179.            it and  proceed to  the next  area. If  a change has been
  1180.            recorded, the message:
  1181.  
  1182.                 (S)ave (A)bort or (C)ancel ?
  1183.  
  1184.            is displayed. You can press 's' to save, 'a' to abort the
  1185.            file, or  'c' to  cancel the command. If you want to save
  1186.            all changed  areas without  being prompted, issue the 's'
  1187.            
  1188.            NED v1.7x User's Guide                           Page  24
  1189.  
  1190.            parameter. For example:
  1191.  
  1192.                 <Esc>Qs<Enter>
  1193.  
  1194.            Alternatively if  you do  not want  to save  any  changed
  1195.            areas and  you don't  wish to  be prompted, issue the 'a'
  1196.            parameter. For example:
  1197.  
  1198.                 <Esc>Qa<Enter>
  1199.  
  1200.            3.9 The Backup System
  1201.            When you  save a  file other  than a  new file, NED first
  1202.            renames the  existing file  on the  disk by  inserting an
  1203.            underscore (_)  in front  of the extension and moving the
  1204.            other characters to the right. For example:
  1205.  
  1206.                 MYPROG.PRG
  1207.  
  1208.            becomes:
  1209.  
  1210.                 MYPROG._PR
  1211.  
  1212.            and the  third character  (if any)  of the  extension  is
  1213.            lost. The  new file is then  written to the old filename.
  1214.            If the file has no extension NED uses .BAK for the backup
  1215.            name.
  1216.  
  1217.            A useful  feature of  this system is if you edit a backup
  1218.            file, a  second backup  will be  created with two leading
  1219.            underscore characters,  and  so  on.  The  backup  system
  1220.            allows you  to distinguish backups with the same filename
  1221.            but different  extensions, thus  keeping separate backups
  1222.            for these  files. For  example, if you edit the following
  1223.            files:
  1224.  
  1225.                 NED.C
  1226.                 NED.H
  1227.  
  1228.            the backups become:
  1229.  
  1230.                 NED._C
  1231.                 NED._H
  1232.  
  1233.            Because backup files may clutter your work directory, NED
  1234.            allows you  to specify  an alternative drive/directory in
  1235.            which to  place backup files with the BACKUP command. For
  1236.            example:
  1237.  
  1238.                 <Esc>Bc:\bak<Enter>
  1239.  
  1240.            will set the backup directory to c:\bak. If this does not
  1241.            exist you  will be  prompted to create it. You may select
  1242.            an existing  backup drive/directory for your backup files
  1243.            with the  File Display  mode by  pressing F1  instead  of
  1244.            entering a drive/directory, for example:
  1245.  
  1246.                 <Esc>B<F1>
  1247.  
  1248.            
  1249.            NED v1.7x User's Guide                           Page  25
  1250.  
  1251.            Use your  movement keys  to high-light  a drive/directory
  1252.            and then  press CTRL ENTER to select it. See sections 4.3
  1253.            and 5.5  for details  on File Display and section 5.1 for
  1254.            details on  the BACKUP  command. You may can specify your
  1255.            backup  directory  in  the  start-up  configuration  file
  1256.            CONFIG.NED. When ever you start NED, the backup directory
  1257.            will be  set. See the BACKUP statement in section 5.3 for
  1258.            details.
  1259.  
  1260.  
  1261.  
  1262.            
  1263.            NED v1.7x User's Guide                           Page  26
  1264.  
  1265.            *********************************************************
  1266.            NED v1.7x User's Guide
  1267.            Chapter 4   Advanced Features
  1268.  
  1269.            4.1  Configuring NED
  1270.            NED can be configured to suit your particular machine and
  1271.            editing needs. This is done with a short text file called
  1272.            CONFIG.NED which  is scanned  each time NED is loaded. If
  1273.            this file  is not found in the current directory NED will
  1274.            look along the PATH. If it still cannot be found NED will
  1275.            load with  its default  settings. CONFIG.NED  consists of
  1276.            single line statements in the form:
  1277.  
  1278.                 OPTION=setting
  1279.  
  1280.            where setting  is either  a switch  (e.g. ON or OFF) or a
  1281.            string such  as pathname.  See section  5.3 Configuration
  1282.            Reference for  a list  and syntax  of the valid commands.
  1283.  
  1284.            You may  save the  current settings of NED whilst editing
  1285.            with CTRL  F4 which  writes a  new CONFIG.NED file in the
  1286.            current directory.
  1287.  
  1288.            The following  description outlines  the way  to  set  up
  1289.            NED's environment. Firstly at the DOS prompt type:
  1290.  
  1291.                 ned config.ned<Enter>
  1292.  
  1293.            if the message:
  1294.  
  1295.                 Ok to Create ? (Y/N)
  1296.  
  1297.            appears type 'Y' to create it. Now press CTRL F4 to write
  1298.            the default  settings to CONFIG.NED. NED will display the
  1299.            message:
  1300.  
  1301.                 CONFIG.NED written to disk
  1302.  
  1303.            Now issue the QUIT command by typing:
  1304.  
  1305.                 <Esc>Q<Enter>
  1306.  
  1307.            This will  return you  to DOS.  The file  you  have  just
  1308.            created contains  the default CONFIG.NED settings. Now at
  1309.            the DOS prompt type:
  1310.  
  1311.                 ned<Enter>
  1312.  
  1313.            You don't  need to  specify a  filename. This  is because
  1314.            when you  use CTRL  F4  to  write  CONFIG.NED,  the  FILE
  1315.            statement is  set to  the current  filename which in this
  1316.            case was CONFIG.NED. See the description below. The first
  1317.            line is  a comment  line.  You  may  add  comments  on  a
  1318.            separate line using the following characters as the first
  1319.            character of the line:
  1320.  
  1321.                 \ ' " *
  1322.            
  1323.            NED v1.7x User's Guide                           Page  27
  1324.  
  1325.  
  1326.            The next line is the AUTOINDENT statement. This tells NED
  1327.            whether to  indent the  cursor under the text of the line
  1328.            before when  you press  ENTER. This saves you from having
  1329.            to move  the cursor  over if the text you are entering is
  1330.            indented from  the left  margin. If you wish this feature
  1331.            to be  set off leave it as it is. Otherwise, change it to
  1332.            'ON'. The line should then read:
  1333.  
  1334.                 AUTOINDENT=ON
  1335.  
  1336.            The next  statement that usually appears in CONFIG.NED is
  1337.            the BACKUP  statement, but  since we are working from the
  1338.            default settings, NED has not included it. This statement
  1339.            tells NED  to place backups in a directory other than the
  1340.            current one.  If you  wish to use this feature then enter
  1341.            the following:
  1342.  
  1343.                 <Enter>BACKUP=\BAK
  1344.  
  1345.            This directs  NED to open a new blank line and insert the
  1346.            text 'BACKUP=\BAK'. If the directory \BAK does not exist,
  1347.            NED will prompt you to create it next time NED is loaded.
  1348.  
  1349.            The next  line contains the COLOUR statement. If you have
  1350.            a monochrome  adapter (e.g.  MDA,  HERCULES)  you  should
  1351.            delete  the  COLOUR  statement.  To  do  this  press  the
  1352.            following keys:
  1353.  
  1354.                 <Down><Shift F2>
  1355.  
  1356.            This will  delete the line, and the lines below will move
  1357.            up to  close the  gap. If you have a colour monitor (e.g.
  1358.            CGA, EGA or VGA) change the COLOUR statement to:
  1359.  
  1360.                 COLOUR=7,1,1,3
  1361.  
  1362.            this tells  NED to  use white  on blue  characters in the
  1363.            Edit window  and blue  on cyan  characters in  the System
  1364.            window.
  1365.  
  1366.            The next  line is  the DATEFMT statement. This configures
  1367.            the date format used in NED. The default format is:
  1368.  
  1369.                 DATEFMT=DMY/
  1370.  
  1371.            Which displays the date as dd/mm/yyyy. If you wish to use
  1372.            the American date format, change the statement to read as
  1373.            follows:
  1374.  
  1375.                 DATEFMT=MDY-
  1376.  
  1377.            Which displays the date as mm-dd-yyyy.
  1378.  
  1379.            The next  two statements  instruct NED  to  automatically
  1380.            detab a file when it is loaded or entab a file when it is
  1381.            written.  For  the  purposes  of  our  setup  skip  these
  1382.            statements by  pressing the  down arrow  twice. The  next
  1383.            
  1384.            NED v1.7x User's Guide                           Page  28
  1385.  
  1386.            statement will read:
  1387.  
  1388.                 FILE=CONFIG.NED
  1389.  
  1390.            The FILE  statement tells  NED to  load up  the specified
  1391.            filename if  NED is  not given  a filename to open on the
  1392.            DOS command line.
  1393.  
  1394.            This statement  told NED  to load  CONFIG.NED the  second
  1395.            time you  started up.  We can leave this statement as is.
  1396.  
  1397.            The FIRSTCOL  statement allows you to specify whether you
  1398.            wish the  first column  of the Edit window to be referred
  1399.            to as  '0' or '1'. If you are creating screen layouts you
  1400.            may prefer to change it to:
  1401.  
  1402.                 FIRSTCOL=0
  1403.  
  1404.            The GOTO  statement allows  you to  specify the  starting
  1405.            line and  column of  the cursor  in the  first  that  NED
  1406.            loads. This defaults to:
  1407.  
  1408.                 GOTO=1,1
  1409.  
  1410.            When you  save CONFIG.NED  with CTRL  F4, NED will record
  1411.            your  current  position  in  the  current  file  to  this
  1412.            statement.
  1413.  
  1414.            The HARDTAB  statement instructs  NED to  insert the  tab
  1415.            character instead of moving the cursor a tabstop when you
  1416.            press the TAB key. The statement will be:
  1417.  
  1418.                 HARDTAB=OFF
  1419.  
  1420.            If you want to know more about this feature, see SECTIONS
  1421.            5.3, and 5.2 for a description of the TAB key.
  1422.  
  1423.            The INTENSITY statement sets the bold colours in the edit
  1424.            and System  windows. If  you have  a  monochrome  adapter
  1425.            (e.g.  MDA,  HERCULES)  you  will  have  to  delete  this
  1426.            statement by  placing the  cursor on  the  statement  and
  1427.            pressing SHIFT  F2. If  you have  a colour monitor change
  1428.            the INTENSITY statement to the following:
  1429.  
  1430.                 INTENSITY=12,15
  1431.  
  1432.            this tells  NED to  use Bright  red intensity in the Edit
  1433.            window and  Bright white  intensity in the System window.
  1434.            Finding the  right colour  and bold  attributes for  your
  1435.            needs may  be a  case of  trial and  error, so  try a few
  1436.            combinations and  select  the  one  that  you  like.  See
  1437.            section 4.9  for more details on configuring colours. The
  1438.            next statement instructs NED to start up in either insert
  1439.            or overtype  mode. If  you prefer  to work in insert mode
  1440.            (we recommend  this), change the INSERT statement to read
  1441.            as follows:
  1442.  
  1443.                 INSERT=ON
  1444.            
  1445.            NED v1.7x User's Guide                           Page  29
  1446.  
  1447.  
  1448.            The INTERWORD  statement  allows  you  to  specify  which
  1449.            characters are used to separate words. This defaults to a
  1450.            space. Change the statement to read as follows:
  1451.  
  1452.                 INTERWORD=; ,
  1453.  
  1454.            The LAYOUT statement  will read as follows:
  1455.  
  1456.                 LAYOUT=66,3,3,0
  1457.  
  1458.            This sets  the default print page layout to a page length
  1459.            of 66  lines, top  and bottom  margins of  3 lines and no
  1460.            left  margin.   If  you   have  different   page   layout
  1461.            requirements, see  sections 4.5 and 5.1 for more details.
  1462.  
  1463.            The MAXLINES  statement sets  the number of lines you can
  1464.            edit in  a file.  This defaults  to 5120 lines. Most text
  1465.            files are  less than  1200 lines so change this statement
  1466.            to read:
  1467.  
  1468.                 MAXLINES=1200
  1469.  
  1470.            The MODE  statement allows you to specify the screen type
  1471.            you wish  to use  with NED. If you are using a Monochrome
  1472.            Display Adaptor (MDA) or a Hercules adaptor then the mode
  1473.            statement should be changed to:
  1474.  
  1475.                 MODE=MDA
  1476.  
  1477.            or:
  1478.  
  1479.                 MODE=HERCULES
  1480.  
  1481.            If you have an EGA or VGA adaptor then the MODE statement
  1482.            will be  set to  'EGA'. If you wish to use NED in 43 line
  1483.            mode then change the statement to:
  1484.  
  1485.                 MODE=EGA43
  1486.  
  1487.            If you  have a  VGA and  you wish to use the 50 line mode
  1488.            then change the statement to:
  1489.  
  1490.                 MODE=VGA50
  1491.  
  1492.            The RULER  statement tells  NED whether the ruler display
  1493.            defaults to  on or  off. If you wish the ruler to be off,
  1494.            change the statement to read as follows:
  1495.  
  1496.                 RULER=OFF
  1497.  
  1498.            The SNOW  statement is for Colour Graphics Adapters only.
  1499.            If you have a CGA change this statement to read:
  1500.  
  1501.                 SNOW=OFF
  1502.  
  1503.            The SORT  statement allows  you to  specify how directory
  1504.            entries  in  the  File  Display  mode  are  sorted.  This
  1505.            
  1506.            NED v1.7x User's Guide                           Page  30
  1507.  
  1508.            defaults to  DIRECTORY order.  You can  also choose  from
  1509.            EXTENSION, SIZE,  DATE or FILE (alphabetically). You will
  1510.            probably find the EXTENSION sort the most useful since it
  1511.            will group  similar file  types. Change  the statement to
  1512.            read:
  1513.  
  1514.                 SORT=EXTENSION
  1515.  
  1516.            The SPOOL statement allows you to set background printing
  1517.            on or  off and  optionally adjust  the amount of CPU time
  1518.            (timeslice)  given   to  the   printer.  The  larger  the
  1519.            timeslice, the  less time the printer gets. It is best to
  1520.            test the  default timeslice  before adjusting  it. If you
  1521.            wish to  use the  spooler by default change the statement
  1522.            to read:
  1523.  
  1524.                 SPOOL=1,128
  1525.  
  1526.            See section 4.6 for more details on tuning the print
  1527.            spooler.
  1528.  
  1529.            The  STRIP   statement  tells   NED  to   strip  trailing
  1530.            whitespace characters  from each line when writing a file
  1531.            to disk. This statement should read:
  1532.  
  1533.                 STRIP=ON
  1534.  
  1535.            The TABSET  statement sets  the tabstops for the TAB key.
  1536.            This defaults  to a tabstop every four spaces. Unless you
  1537.            wish to  use different  tab settings leave this as it is.
  1538.            The WORDWRAP  statement instructs  NED to  start up  with
  1539.            word wrap on or off. You may optionally specify the right
  1540.            hand margin for word wrap. This statement should read:
  1541.  
  1542.                 WORDWRAP=0,65
  1543.  
  1544.            If you  wish word  wrap to  be on  by default, change the
  1545.            statement to read:
  1546.  
  1547.                 WORDWRAP=1,65
  1548.  
  1549.            You may  optionally specify a different right hand margin
  1550.            if don't wish to use the default margin. Now to save your
  1551.            new configuration, press:
  1552.  
  1553.                 <Esc>E<Enter>
  1554.  
  1555.            The END  command writes  the file and returns you to DOS.
  1556.  
  1557.            The next  time  you  load,  NED  will  reflect  your  new
  1558.            configuration.
  1559.  
  1560.            4.2 Using File Lists
  1561.            A File  List is a list of filenames or pathnames that can
  1562.            be used  by the OPEN command. File Lists are a useful way
  1563.            of specifying  large numbers  of files  for editing.  NED
  1564.            creates this list from the file specifications on the DOS
  1565.            command line. There are three types of specifications and
  1566.            
  1567.            NED v1.7x User's Guide                           Page  31
  1568.  
  1569.            any or all of them may be given on the DOS command line.
  1570.  
  1571.            These are:
  1572.  
  1573.                Single filename (e.g. MYFILE.PRG)
  1574.                Wildcard specification (e.g. *.PRG or ??FILE.C)
  1575.                'At' filename (e.g. @FILES)
  1576.  
  1577.            For example:
  1578.  
  1579.                 ned myfile.prg *.prg @files<Enter>
  1580.  
  1581.            will add  MYFILE.PRG, all  matching *.PRG  files and  all
  1582.            filenames that  are contained in the file FILES.NED (.NED
  1583.            is the  default extension  for 'At' files) to the current
  1584.            File List.  NED will  then attempt to open the first file
  1585.            in the  list, which  in this  example is  MYFILE.PRG.  To
  1586.            browse the  list, type  ESC O and then use the up or down
  1587.            arrows. You  may then  ENTER on the file you wish to open
  1588.            or just  escape again  with no  effect. Alternatively you
  1589.            may open  the next file in the list with CTRL F1. You can
  1590.            change the File List in File Display mode as described in
  1591.            the next section
  1592.            If the  File List  has been changed, when you exit NED it
  1593.            will be written to a file called FILES.NED. Next time you
  1594.            wish to  use those files you can specify the File List on
  1595.            the command line with the '@' character:
  1596.  
  1597.                 ned @files<Enter>
  1598.  
  1599.            You can save the File List to another name with the XSAVE
  1600.            command, see section 5.1 for details. For example:
  1601.  
  1602.                 <Esc>Xmyfiles<Enter>
  1603.  
  1604.            will save  the current File List to the file MYFILES.NED.
  1605.            Now, next  time you  wish to  use that  File List  simply
  1606.            type:
  1607.  
  1608.                 ned @myfiles<Enter>
  1609.  
  1610.            If you  change the File List using the File Display mode,
  1611.            NED will  update MYFILES.NED  because you  specified  the
  1612.            'At' file on the command line.
  1613.  
  1614.            4.3 File Display Mode
  1615.            The File  Display mode  is a  useful  directory  browsing
  1616.            system that  allows you  to locate files to open. You can
  1617.            also use  it to  browse, edit  or add   files to the File
  1618.            List.
  1619.  
  1620.            The File  Display mode is primarily designed for use with
  1621.            the OPEN  command but  may also  be used with END, WRITE,
  1622.            USE and  BACKUP commands. To enter File Display mode type
  1623.            the following:
  1624.  
  1625.                 <Esc>O<F1>
  1626.  
  1627.            
  1628.            NED v1.7x User's Guide                           Page  32
  1629.  
  1630.            Using this  method will  take you  to the directory area.
  1631.            You can  specify a  wildcard file  specification  on  the
  1632.            command line  before you  press F1. NED will only display
  1633.            files that match the wildcard, for example:
  1634.  
  1635.                 <Esc>O*.bat<F1>
  1636.  
  1637.            This command  instructs the  File Display mode to display
  1638.            only matching  '*.bat' files. You may then select one you
  1639.            wish to  open or  press ESC  to return to your file. When
  1640.            you enter  File Display mode, you will notice to the left
  1641.            of the  screen a 'pad' which will display the contents of
  1642.            the File  List (if  any). To  the right  will be  all the
  1643.            files and  subdirectories of  the current  directory (the
  1644.            directory area).  Files are in lower case, subdirectories
  1645.            and drives  are bold and in upper case. The top line will
  1646.            display the full pathname of the current directory to the
  1647.            left the number, total size of the files in the directory
  1648.            and the directory sort type to the right.
  1649.  
  1650.            Over the first entry will appear a reverse video selector
  1651.            bar. You  may move  this with  most of  the normal cursor
  1652.            movement keys.  As you high-light a file, the bottom line
  1653.            will display  its size  in bytes and the date/time it was
  1654.            last updated.  You may  re-sort the directory by pressing
  1655.            ALT:
  1656.  
  1657.                Key  Sort
  1658.  
  1659.                D    Directory order
  1660.                F    Alphabetically
  1661.                S    File size
  1662.                T    Time/date
  1663.                X    File extension
  1664.  
  1665.            The sort type may also be set in CONFIG.NED, see the SORT
  1666.            statement in  section 5.3 for details. If you press ENTER
  1667.            over a  drive or  subdirectory, NED  will change  to  the
  1668.            drive or directory and display its contents. If you press
  1669.            ENTER over a file, NED will attempt to open it, returning
  1670.            you to the command area.
  1671.  
  1672.            The filename  you returned  on  is  copied  to  the  last
  1673.            parameter string  F3 so  you may  use  it  in  your  next
  1674.            command. If  you press  ESC you  will be  returned to the
  1675.            command area with no change.
  1676.  
  1677.            If you  press INS  over a file, its name is copied to the
  1678.            end of the File List. If you press INS over the '.' entry
  1679.            the entire  directory is  copied to the File List. If the
  1680.            '.' entry is not present, use the '\'.
  1681.  
  1682.            You can move between the directory area and the File List
  1683.            window with  the TAB  key or  you can enter the File List
  1684.            directly from  the Edit  window by  pressing SHIFT F1. In
  1685.            the File  List window, you may browse the files with most
  1686.            of the  cursor movement  keys. To open a file press ENTER
  1687.            over a  filename. If  you press DEL over a file, the file
  1688.            
  1689.            NED v1.7x User's Guide                           Page  33
  1690.  
  1691.            is removed  from the list. If you press CTRL K the entire
  1692.            list is  deleted and  you are moved over to the directory
  1693.            area.
  1694.  
  1695.            You may  have up  to 512  entries in  the File List. When
  1696.            there are  more than 18 entries in the list, a scroll bar
  1697.            will appear  to the  right of  the list  indicating  your
  1698.            position in the list.
  1699.  
  1700.            When in  the File  List  window,  the  bottom  line  will
  1701.            display the  number of the current entry out of the total
  1702.            number of  entries and  the drive/directory  in which the
  1703.            file resides.
  1704.  
  1705.            If you  press ESC  you will  be returned  to the  command
  1706.            area. Any changes made to the File List will be retained.
  1707.  
  1708.            You can  save the  File List when in the File List window
  1709.            by pressing  CTRL F4.  This will write the list to a file
  1710.            called FILES.NED in the current directory. If you want to
  1711.            save the  File List  to your  own filename, use the XSAVE
  1712.            command.
  1713.  
  1714.            4.4 Creating and Using Macros
  1715.            Macros allow  you to  record a  series of  keystrokes and
  1716.            assign them  to a  function key.  This  can  save  you  a
  1717.            considerable amount of time if you find you are repeating
  1718.            the same  keystrokes continually.  Macros that you create
  1719.            may be saved away to a file and restored at will. You can
  1720.            have up  to twenty  predefined macros  at any  one  time.
  1721.  
  1722.            These keys  are mapped between ALT F1 to ALT F20 (ALT F11
  1723.            20 = SHIFT ALT F1-10). There is of course no limit to the
  1724.            number of macro files you can have.
  1725.  
  1726.            To begin  recording a macro press F7. NED will prompt you
  1727.            to enter  a macro  key to  assign the  keystrokes to  and
  1728.            enter a  key between  ALT F1-20. You may record up to 128
  1729.            keystrokes per  macro. As  you  record  your  macro,  the
  1730.            current keystroke  number is  displayed  in  the  message
  1731.            area. To finish recording press F7 again.
  1732.  
  1733.            The MACRO  command is  an alternative starting point that
  1734.            allows you  to name  the macro  as well as record it. For
  1735.            example you would type:
  1736.  
  1737.                 <Esc>MFile opener<Enter><Alt F1><Ctrl F1>
  1738.                 <Ctrl F1><Ctrl F1><F7>
  1739.  
  1740.            to record a macro called 'File opener' to ALT F1. You may
  1741.            also use  this command  to name  or  rename  an  existing
  1742.            macro. To  rename the above macro append the 'r' option.
  1743.            For example:
  1744.  
  1745.                 <Esc>MOpen next 3 files,r<Enter>
  1746.  
  1747.            will rename ALT F1 to 'Open next 3 files'.
  1748.  
  1749.            
  1750.            NED v1.7x User's Guide                           Page  34
  1751.  
  1752.            To save a macro set to disk use the KEEP command. Restore
  1753.            a macro  set with  the USE  command. See  section 5.1 for
  1754.            details on  these commands.  To view all the macro names,
  1755.            keys and  number of  keystrokes  press  SHIFT  F7  (Macro
  1756.            Report).
  1757.  
  1758.            Since you  can record  keystrokes from  both the edit and
  1759.            command windows,  macros will  be sensitive to the window
  1760.            you start  the macro from. SHIFT ESC forces the cursor to
  1761.            move from  the command  area to  the Edit  window if  the
  1762.            current area is open. Consider the following example:
  1763.  
  1764.                 <Esc>O<Enter><Enter><Enter><Esc>
  1765.  
  1766.            If this  macro is  started from the Edit window, the next
  1767.            two files  in the  File List  will be opened. If however,
  1768.            the macro  is started  from the  command area, an 'o' and
  1769.            four blank  lines will  suddenly appear  in your file. If
  1770.            the macro is recorded as follows:
  1771.  
  1772.                 <Shift Esc><Esc>O<Enter><Enter><Enter><Esc>
  1773.  
  1774.            the macro  will work correctly from either window because
  1775.            SHIFT ESC only works in one direction. If the above macro
  1776.            was run  from Command  mode in  an unopened  area it will
  1777.            also work  correctly since  the  cursor  will  remain  in
  1778.            Command mode.
  1779.  
  1780.            An example  macro file is supplied with the system called
  1781.            SAMPLE.MCR. Load  this file  up using the USE command and
  1782.            press SHIFT F7 to see what these macros do.
  1783.  
  1784.            4.5 Printing a File
  1785.            NED provides  the facility  to print a part or all of the
  1786.            current file.  NED will  always print via the PRN device.
  1787.            To print a file  use the PRINT command as follows:
  1788.  
  1789.                 <Esc>P<Enter>
  1790.  
  1791.            For details  on printing  part of  a file.  See the PRINT
  1792.            command in section 5.1.
  1793.  
  1794.            NED allows  you to  embed printer  commands in your file.
  1795.            These must  always be  preceded by  a period '.' and must
  1796.            start at  the left  of a blank line. No other text except
  1797.            printer commands  may appear  on the  line. If  text does
  1798.            appear it  will be  ignored.  NED  distinguishes  printer
  1799.            command lines  from normal  lines and  knows not to print
  1800.            them. The  commands correspond  to the  Epson FX  printer
  1801.            command set. For example:
  1802.  
  1803.                .bf
  1804.                Hello
  1805.                .bo
  1806.  
  1807.            tells the  printer to  print what follows in bold so that
  1808.            'Hello' is  printed in  bold. The  next command turns the
  1809.            bold printing off.
  1810.            
  1811.            NED v1.7x User's Guide                           Page  35
  1812.  
  1813.  
  1814.            If these  commands are  not sufficient  or  your  printer
  1815.            implements them  differently, you can send special escape
  1816.            sequences with the .e command. E.g.:
  1817.  
  1818.                .eg
  1819.  
  1820.            sends the escape sequence to turn on bold printing to the
  1821.            printer. See  section 5.7 for details on all the embedded
  1822.            printer commands.
  1823.  
  1824.            NED defaults  to printing  60 lines per page (print pages
  1825.            are 66  lines) leaving  3 lines at the top and the bottom
  1826.            and then  issues a  form feed  when it  has finished.  To
  1827.            allow for  different sized  forms and  for the  situation
  1828.            where you  don't want top and bottom margins or where you
  1829.            want a  left margin,  NED has  the YLAYOUT  command. This
  1830.            command allows  you to  specify  the  form  length,  top,
  1831.            bottom and left margins, for example:
  1832.  
  1833.                 <Esc>Y66,0,0,10<Enter>
  1834.  
  1835.            will set the print page to 66 lines with no top or bottom
  1836.            margins and  a left margin of ten characters. This allows
  1837.            you to print a file with no perforation skips on standard
  1838.            continuous paper  and have  a one inch left margin so you
  1839.            can bind the printout. If you have A4 paper, the command:
  1840.  
  1841.                 <Esc>Y70,6,3<Enter>
  1842.  
  1843.            will set  the form  length to 70 lines, with a 6 line top
  1844.            margin, a  3 line  bottom margin  and no left margin. See
  1845.            section 5.1  for further  details on the YLAYOUT command.
  1846.  
  1847.            NED also  allows you  to set  your default page layout in
  1848.            CONFIG.NED with the LAYOUT statement, see section 5.3 for
  1849.            details.
  1850.  
  1851.            4.6 Using the Print Spooler
  1852.            When a  file is  printed it  may be  sent directly to the
  1853.            printer or  sent via the spooler. When printing directly,
  1854.            you must  wait until  the  printer  has  finished  before
  1855.            continuing editing.  When printing  via the  spooler, you
  1856.            can continue  editing your files in foreground mode while
  1857.            NED prints the file in background. The spooler can handle
  1858.            up to ten  files  in its  queue. Each time a file is sent
  1859.            to the  spooler it  is added  to the end of the queue. As
  1860.            the printing  of a file is completed, all remaining files
  1861.            are  moved  up  one  place  in  the  queue.  The  spooler
  1862.            continues printing  until no  more files  remain  in  the
  1863.            queue.
  1864.  
  1865.            To print in background mode the spooler must first be set
  1866.            on. Use  CTRL F6  to toggle  the spooler on or off or use
  1867.            the SPOOL  statement in  CONFIG.NED to  default it  on or
  1868.            off.See section 5.3 for details.
  1869.  
  1870.            Once the spooler is active, use the PRINT command to send
  1871.            
  1872.            NED v1.7x User's Guide                           Page  36
  1873.  
  1874.            files to  the spooler.  This only  takes a moment and you
  1875.            are then  returned to  editing your  file(s). The  VSPOOL
  1876.            command allows  you to  control the  spooler while  it is
  1877.            active. You  can pause  or resume  background printing or
  1878.            remove one  or all  files  from  the  spooler.  To  pause
  1879.            background printing  when the  spooler is active, use the
  1880.            following command:
  1881.  
  1882.                 <Esc>Vp<Enter>
  1883.  
  1884.            Repeat the  above command  to resume  printing. To remove
  1885.            all files  from the  spooler queue  including the  active
  1886.            spool file use the 'k' parameter. For example:
  1887.  
  1888.                 <Esc>Vk<Enter>
  1889.  
  1890.            You may  selectively remove a file from the spooler queue
  1891.            by specifying  its position  in the  queue. You can enter
  1892.            the queue  number for  the file  you wish  to remove  for
  1893.            example:
  1894.  
  1895.                 <Esc>V2<Enter>
  1896.  
  1897.            You may also browse through the queue with the up or down
  1898.            arrows. This  will display  the number  and name  of each
  1899.            file in  the queue.  You may then press ENTER on the file
  1900.            you wish  to remove.  See section 5.1 for more details on
  1901.            the VSPOOL command.
  1902.  
  1903.            4.7 Using the Calculator
  1904.            The Calculator  emulates most  of the  functions  of  the
  1905.            average hand  held model.  It uses  the standard  'infix'
  1906.            method of  operand/operator/operand  (e.g  2  +  3).  The
  1907.            Calculator is  invoked with the SHIFT F6 key. The program
  1908.            NCAL.EXE must  be either  in  the  current  directory  or
  1909.            reside on the PATH.
  1910.  
  1911.            The Calculator  has provision for hexadecimal and decimal
  1912.            numbers. Use  the space  bar to  toggle between these two
  1913.            modes.  When  you  toggle  between  modes  the  currently
  1914.            displayed  number  will  be  converted  accordingly.  NED
  1915.            automatically selects the NUM-LOCK on your numeric keypad
  1916.            allowing you  to use  it for  number entry.  To enter the
  1917.            hexadecimal A to F use CTRL A to F.
  1918.  
  1919.            If you miskey a number you can backspace (BS) over it and
  1920.            re-type it or press 'e' to re-enter the whole number. Use
  1921.            'c' to  clear all  (CE) operands  and operators.  If  the
  1922.            number calculated  is  too  large  to  be  displayed  the
  1923.            calculator will show the message:
  1924.  
  1925.                 Overflow
  1926.  
  1927.            When you  have finished press ESC to return to your file.
  1928.  
  1929.            You can use the calculator from DOS by typing:
  1930.  
  1931.                 NCAL<Enter>c
  1932.            
  1933.            NED v1.7x User's Guide                           Page  37
  1934.  
  1935.  
  1936.            Note that the 'c' must be pressed after ENTER.
  1937.  
  1938.            4.8  Using the ASCII Tables
  1939.            These tables  provide the full set of ASCII characters in
  1940.            decimal,  hexadecimal   and  the   ASCII  character.  For
  1941.            example:
  1942.  
  1943.                 DEC  HEX  CHR
  1944.                 42   2A   *
  1945.  
  1946.            The ASCII tables are invoked with the F6 key. The program
  1947.            NCAL.EXE must  be either  in  the  current  directory  or
  1948.            reside on  the PATH.  You can  view other  pages with the
  1949.            arrow keys  HOME takes  you to  the first page END to the
  1950.            last page.  Press ESC  to return to your file. The F1 key
  1951.            toggles between character names and the literal character
  1952.            on the  first page  of the  tables. For  example, ASCII 3
  1953.            will appear  as the  clear smiley  face character  or  as
  1954.            'SOH'. You can use the ASCII tables from DOS by typing:
  1955.  
  1956.                 NCAL<Enter>a
  1957.  
  1958.            Note that the 'a' must be pressed after ENTER.
  1959.  
  1960.            4.9  Using Colours
  1961.            If you have a CGA, EGA, VGA or compatible adapter you can
  1962.            configure NED  to make full use of colour. You may preset
  1963.            the colours  you wish  to use  with two statements in the
  1964.            start up  file  CONFIG.NED.  These  are  the  COLOUR  and
  1965.            INTENSITY  statements.   NED  allows   different   colour
  1966.            settings for the edit and System windows.
  1967.  
  1968.            The COLOUR  statement accepts  four numbers between 0 and
  1969.            7. The  first  two  are  the  foreground  and  background
  1970.            attributes for  the Edit window. The last two specify the
  1971.            foreground and  background colours for the System window.
  1972.  
  1973.            The INTENSITY statement accepts two numbers between 0 and
  1974.            15 although  to work properly should be between 8 and 15.
  1975.            The first sets the bold attribute for the Edit window and
  1976.            the second sets the bold attribute for the System window.
  1977.            The numbers correspond to the colours as follows:
  1978.  
  1979.                No.  Colour    No.  Colour
  1980.                0    Black     8    Dark grey
  1981.                1    Blue      9    Light blue
  1982.                2    Green     10   Light green
  1983.                3    Cyan      11   Light cyan
  1984.                4    Red       12   Light red
  1985.                5    Magenta   13   Light magenta
  1986.                6    Brown     14   Yellow
  1987.                7    White     15   Bright white
  1988.  
  1989.            For example:
  1990.  
  1991.                 COLOUR=7,1,0,1
  1992.                 INTENSITY=12,14
  1993.            
  1994.            NED v1.7x User's Guide                           Page  38
  1995.  
  1996.  
  1997.            sets white  on blue  characters with red intensity in the
  1998.            Edit window  and black  on white characters with a yellow
  1999.            intensity in the System window
  2000.  
  2001.                 COLOUR=7,4,1,3
  2002.                 INTENSITY=14,15
  2003.  
  2004.            sets white on red characters with yellow intensity in the
  2005.            Edit window  and white  on cyan  characters with a bright
  2006.            white in the System window.
  2007.  
  2008.            NED uses  the intensity attribute in the Edit window with
  2009.            the cursor.  When the  cursor is within a line it will be
  2010.            the same colour as a character it is under. If however it
  2011.            is off  the end  of the  line, the  colour changes to the
  2012.            INTENSITY setting.  In the  first example above this will
  2013.            be Bright  red. This  is a useful feature as it shows you
  2014.            where you  have entered  text. For  example if  there are
  2015.            spaces on  the end  of a  line or if there is text to the
  2016.            right of  the Edit  window, the cursor will appear in the
  2017.            normal attribute. See section 5.3 for more details on the
  2018.            COLOUR and  INTENSITY configuration  statements.
  2019.            
  2020.  
  2021.            4.10 Using 43/50 Line Modes
  2022.            If you have an EGA or VGA adapter, NED permits editing in
  2023.            43 and  50 line  modes respectively. To toggle between 25
  2024.            and 43/50  line modes  use ALT  =. See  section  5.2  for
  2025.            details on  the ALT  = function. If you want to use 43 or
  2026.            50 line  modes by  default change  the MODE  statement in
  2027.            CONFIG.NED to the following:
  2028.  
  2029.                 MODE=EGA43
  2030.  
  2031.            or:
  2032.  
  2033.                 MODE=VGA50
  2034.  
  2035.            depending on  your video  adapter. If  you specify EGA or
  2036.            
  2037.            NED v1.7x User's Guide                           Page  39
  2038.  
  2039.            VGA you  will be  able to  switch to 43 and 50 line modes
  2040.            respectively, with ALT =.
  2041.  
  2042.  
  2043.  
  2044.            
  2045.            NED v1.7x User's Guide                           Page  40
  2046.  
  2047.            *********************************************************
  2048.            NED v1.7x User's Guide
  2049.            Chapter 5 Reference Sections
  2050.  
  2051.            5.1  Command Reference
  2052.  
  2053.            Introduction
  2054.            This  section   gives  a  full  description  of  commands
  2055.            available from  Command mode. Items not surrounded by the
  2056.            square brackets  are  compulsory  parameters.  The  space
  2057.            between the  command letter and the parameter is intended
  2058.            for clarity  only. No  leading space should be typed when
  2059.            entering the  parameter.  Conversely  when  a  comma  (,)
  2060.            appears in the parameter specification it should be typed
  2061.            literally.
  2062.  
  2063.  
  2064.            AREA    Change to a new area
  2065.            Syntax: A [number]
  2066.  
  2067.            The AREA  command allows  you to specify an optional area
  2068.            number to  change to. If no area number is given the next
  2069.            area is chosen. You may browse through the areas with the
  2070.            up/down arrows.
  2071.  
  2072.            When you change to another area, the filename/pathname of
  2073.            the new  area is  copied to the last parameter string, so
  2074.            that you may restore it with F3 and edit it for your next
  2075.            command parameter.  Alternatively, you may select another
  2076.            area with  the ALT  0 to  9 keys  or the Status screen by
  2077.            pressing F10 and selecting the area you want. See section
  2078.            5.2 for further details.
  2079.  
  2080.  
  2081.            BACKUP  Specify the backup directory
  2082.            Syntax: B drive:\directory
  2083.  
  2084.            When a  file is  written to disk the original filename is
  2085.            renamed to  the ._??  extension. The  leading  underscore
  2086.            allows you to distinguish edited files that have the same
  2087.            filename but  have different  extensions.  If  no  backup
  2088.            directory is  specified, the  backup file will be written
  2089.            to the  current directory.  This however can clutter your
  2090.            work directory  making it  difficult to  find files.  The
  2091.            BACKUP command  allows  you  to  specify  an  alternative
  2092.            drive:\directory in  which to place the backup file. This
  2093.            is useful  to keep  back-ups 'out  of harms  way'. If the
  2094.            drive:\directory does not exist, NED will prompt:
  2095.  
  2096.                 Create BACKUP Directory (Y/N) ?
  2097.  
  2098.            If you  answer  'y',  NED  will  attempt  to  create  the
  2099.            directory. You  may use the File Display mode to select a
  2100.            directory by pressing F1 in parameter entry mode. When in
  2101.            File Display  mode, CTRL  ENTER  selects  the  high-  lit
  2102.            directory since  ENTER merely  moves you to the high- lit
  2103.            directory. See  section 5.5  for further  details on File
  2104.            Display mode.
  2105.            
  2106.            NED v1.7x User's Guide                           Page  41
  2107.  
  2108.  
  2109.            This command  can also  be specified  in CONFIG.NED,  see
  2110.            section 5.3 for details.
  2111.  
  2112.  
  2113.            CLOSE   Closes an area
  2114.            Syntax: C [number]
  2115.  
  2116.            This command  closes an  area. If no area number is given
  2117.            the current  area is  closed. You  may close  other areas
  2118.            from the  current area  by  specifying  its  number.  For
  2119.            example:
  2120.  
  2121.                 <Esc>C3<Enter>
  2122.  
  2123.            will attempt  to close  area number  3. If  the specified
  2124.            area is not open, NED displays the message:
  2125.  
  2126.                Area Not Open !
  2127.  
  2128.            If changes  have been  made to  the area, NED prompts you
  2129.            with:
  2130.  
  2131.                 Changes will be lost, Confirm (Y/N) ?
  2132.  
  2133.            if you  answer no  the operation  is aborted.  If yes the
  2134.            changes are  discarded and  the area is freed. All memory
  2135.            associated with  the area  is returned to the system pool
  2136.            and the  area is  available for  use again  with  another
  2137.            file.
  2138.  
  2139.  
  2140.            DETAB   Detab a file
  2141.            Syntax: D
  2142.  
  2143.            This command  replaces tab characters (chr 9) with spaces
  2144.            (chr  32)   using  the  current  tabstop  settings  as  a
  2145.            template. This  means that where a tab character is found
  2146.            in a  line, its  proximity to  next tabstop is calculated
  2147.            and the appropriate number of spaces inserted to bring it
  2148.            into alignment.
  2149.  
  2150.            Some lines  may  want  to  expand  to  greater  than  256
  2151.            characters in  which case  they are  truncated. In  large
  2152.            files the  DETAB command  will  consume  more  memory  to
  2153.            accommodate the  increased size of the file. This command
  2154.            is useful  when you  read a file from another editor that
  2155.            contains tabs.  Make sure  that you set NED's tabstops to
  2156.            match the  file's tab  settings otherwise  you will  have
  2157.            text alignment problems after expansion.
  2158.  
  2159.            NED can  be set  to automatically  detab when  a file  is
  2160.            opened with the DETAB statement in CONFIG.NED or with the
  2161.            CTRL F10  function toggle,  see sections  5.3 and 5.2 for
  2162.            details. See  the TABSET  command below  for  details  on
  2163.            setting tabstops. See the NTAB command for the reverse of
  2164.            this command.
  2165.  
  2166.            
  2167.            NED v1.7x User's Guide                           Page  42
  2168.  
  2169.  
  2170.            END     Finish editing a file
  2171.            Syntax: E [pathname]
  2172.  
  2173.            When this  command is issued, the file is firstly checked
  2174.            to see  if it  has changed. If so, it is written to disk.
  2175.            The area  is then  closed and NED will attempt to move to
  2176.            another open area.
  2177.  
  2178.            If no open area can be found, NED will return you to DOS.
  2179.            If, however  the spooler  is active, NED will display the
  2180.            message:
  2181.  
  2182.                 Background is busy
  2183.  
  2184.            and will  not exit  to DOS.  An optional  pathname may be
  2185.            specified  to   which  the  file  will  be  written  thus
  2186.            preserving the original file. If the pathname exists, NED
  2187.            will prompt:
  2188.  
  2189.                 File Exists ! Overwrite (Y/N) ?
  2190.  
  2191.            If you  answer 'y'  NED will  overwrite the file, if 'n',
  2192.            the command is aborted. You may also use the File Display
  2193.            mode to  select a  file to overwrite by pressing F1. When
  2194.            the command has completed NED will display the message:
  2195.  
  2196.                 <number> lines written
  2197.  
  2198.  
  2199.            FILL    Fill a line with a character
  2200.            Syntax: F character,number
  2201.  
  2202.            This command  takes the  character and  fills it from the
  2203.            current line  and column  of the  cursor  the  number  of
  2204.            times.  Any   valid  characters  may  be  used  including
  2205.            characters generated  using the  ALT keypad  method (e.g.
  2206.            ruling graphics).
  2207.  
  2208.            Characters will not be filled to a width greater than 256
  2209.            nor will  they be  filled at  the cursor if it is off the
  2210.            end of a line. In the latter case FILL appends at the end
  2211.            of the line.
  2212.  
  2213.            If you  gave an  invalid fill  parameter or the fill will
  2214.            not fit  in  the  current  line,  NED  will  display  the
  2215.            message:
  2216.  
  2217.                 Bad Fill Spec or Not Valid to Fill
  2218.  
  2219.            If the fill is successful, NED displays the message:
  2220.  
  2221.                 '<char>' Filled number Times
  2222.  
  2223.            For example:
  2224.  
  2225.                 <Esc>F*,70<Enter>
  2226.  
  2227.            
  2228.            NED v1.7x User's Guide                           Page  43
  2229.  
  2230.            will fill the '*' character 70 times from the cursor.
  2231.  
  2232.  
  2233.            GOTO    Goto a line
  2234.            Syntax: G line[,column]
  2235.  
  2236.            This command  moves the cursor to the specified line, and
  2237.            optional column  of the  current area. The line cannot be
  2238.            greater than  the number of lines in the current area and
  2239.            the column cannot be greater than 256. If an invalid line
  2240.            or  column  is  specified,  the  cursor  remains  in  its
  2241.            original position,  and NED  will display  the  following
  2242.            message:
  2243.  
  2244.                 Bad Line Number !
  2245.  
  2246.            This command is also available in CONFIG.NED, see section
  2247.            5.3 for details.
  2248.  
  2249.  
  2250.            HELP    Load help system
  2251.            Syntax: H [startpagenum]
  2252.  
  2253.            This command  attempts to load the help system. NHELP.EXE
  2254.            must be  either in the current directory or reside on the
  2255.            PATH.
  2256.  
  2257.            The HELP command takes an optional starting page number,
  2258.            for example:
  2259.  
  2260.                 <Esc>H5<Enter>
  2261.  
  2262.            will take  you to  the fifth  help screen. See the F1 key
  2263.            reference in section 5.2 for more details.
  2264.  
  2265.  
  2266.            INTERWORD Specify interword delimiter(s)
  2267.            Syntax: I character...
  2268.  
  2269.            NED distinguishes  a word  as any  character or  group of
  2270.            characters surrounded  by one or more characters from the
  2271.            interword delimiter  set. The  default is  a  space.  The
  2272.            interword  delimiter   set  allows  you  to  tailor  your
  2273.            definition of  a word  so you  can break  up  complicated
  2274.            expressions. NED  needs to know these characters in order
  2275.            to provide functions like next/previous word and deleting
  2276.            words. For  example many  programming languages  use  the
  2277.            comma to  separate function  parameters. In this case you
  2278.            would specify:
  2279.  
  2280.                 <Esc>I ,<Enter>
  2281.  
  2282.            Changes to  the delimiter  set made with this command can
  2283.            be saved  to CONFIG.NED  by using  the CTRL  F4 key. Note
  2284.            that to  use the space as a character it must be embedded
  2285.            before or  in the  middle of the other characters or else
  2286.            CONFIG.NED must  be written  to disk  with the strip flag
  2287.            set to  off with  the CTRL  F7 key.  See section  5.2 for
  2288.            
  2289.            NED v1.7x User's Guide                           Page  44
  2290.  
  2291.            details on CTRL F4 and CTRL F7 section 5.3 for details on
  2292.            the INTERWORD statement in CONFIG.NED.
  2293.  
  2294.  
  2295.            JEJECT  Eject page from printer
  2296.            Syntax: J [numpages]
  2297.  
  2298.            This command  ejects a  page from  the printer.  You  may
  2299.            optionally specify  a  number  of  pages  to  eject.  For
  2300.            example:
  2301.  
  2302.                 <Esc>J3<Enter>
  2303.  
  2304.            will eject  three pages  from the  printer.  Rather  than
  2305.            sending the  form feed character, NED sends the number of
  2306.            line feeds  corresponding to  the page  length set in the
  2307.            YLAYOUT command  or the  LAYOUT statement  in CONFIG.NED.
  2308.            The default page length is 66 lines.
  2309.  
  2310.  
  2311.            KEEP    Save a macro file
  2312.            Syntax: K [macrofile]
  2313.  
  2314.            The KEEP  command saves the current macro set to disk. If
  2315.            the macro  set is new you must specify a macrofile. If no
  2316.            macrofile is  given or  the filename is invalid, NED will
  2317.            display the message:
  2318.  
  2319.                 Invalid MACRO file or filename
  2320.  
  2321.            If the  macro set  has  been  previously  loaded  and  no
  2322.            macrofile is  given, NED  will update  the existing macro
  2323.            file. You may also specify a new name to save an existing
  2324.            macro set  to. The  default extension is for a macro file
  2325.            is .MCR.
  2326.  
  2327.  
  2328.            LAUNDRY Saves files that have changed
  2329.            Syntax: L [p]
  2330.  
  2331.            This command  checks all  the open  areas to  see if  any
  2332.            changes have  been made  in them.  If so,  NED saves each
  2333.            file to disk. The optional 'p' parameter may be specified
  2334.            which will prompt:
  2335.  
  2336.                 Save this file (Y/N) ?
  2337.  
  2338.            for each  file that  has changed.  After you  answer, NED
  2339.            proceeds  with  the  checking.  When  completed  you  are
  2340.            returned to  the area  you started  in. This  command  is
  2341.            useful if  you are  working on  a number  of files,  when
  2342.            saving each file individually is cumbersome.
  2343.  
  2344.  
  2345.            MACRO   Name and record a keyboard Macro
  2346.            Syntax: M [title[,r]]
  2347.  
  2348.            This command allows you to record a keyboard macro. It is
  2349.            
  2350.            NED v1.7x User's Guide                           Page  45
  2351.  
  2352.            an alternative  to the  F7 key. It allows you to name the
  2353.            macro before  you begin  recording. For example you would
  2354.            type:
  2355.  
  2356.                 <Esc>MFile opener<Enter>
  2357.  
  2358.            to begin  recording a  macro called  'File opener'. After
  2359.            you have  pressed ENTER,  NED will  prompt you to enter a
  2360.            macro key  between ALT  F1-20 (ALT  F11-20 = SHIFT ALT F1
  2361.            10) to  assign the  macro to.  If you enter a key that is
  2362.            not between ALT F1-20, NED displays the message:
  2363.  
  2364.                 Key entered Not a valid MACRO key !
  2365.  
  2366.            If a  valid macro key is pressed, the cursor is taken out
  2367.            of the command area to begin recording. Make sure you are
  2368.            in an  open area  when recording  and using a macro. When
  2369.            you have  finished recording  press the  F7 key.  You may
  2370.            also use  this command  to name  or  rename  an  existing
  2371.            macro. Repeat  the above  process except  append the  'r'
  2372.            option. For example:
  2373.  
  2374.                 <Esc>MFile opener,r<Enter>
  2375.  
  2376.            will prompt  you for  the macro  key and  then assign the
  2377.            name 'File opener' to it.
  2378.  
  2379.            You can  view the  names of  macros with the SHIFT F7 key
  2380.            (Macro Report  screen). The purpose of being able to name
  2381.            macros is  so that  you can view this screen and hence be
  2382.            able to  remember the  function of  macros you create and
  2383.            save. See  section 5.2 for details on the F7 and SHIFT F7
  2384.            keys.
  2385.  
  2386.  
  2387.            NTAB    Replace spaces with tabs
  2388.            Syntax: N
  2389.  
  2390.            This command replaces spaces (chr 32) with tab characters
  2391.            (chr 9) using the current tabstop settings as a template.
  2392.            This means  that  when  a  number  of  spaces  are  found
  2393.            corresponding to  the space  number value  of the nearest
  2394.            tabstop these  are replaced  by a tab character. The NTAB
  2395.            command will  release some  memory that  being the memory
  2396.            taken up by the spaces converted.
  2397.  
  2398.            NED can  be set  to automatically entab a file when it is
  2399.            saved with  the NTAB  statement in CONFIG.NED or with the
  2400.            CTRL F9 toggle key, see sections 5.2 and 5.3 for details.
  2401.            See the  TABSET command  below  for  details  on  setting
  2402.            tabstops and  see the DETAB command above for the reverse
  2403.            function.
  2404.  
  2405.  
  2406.            OPEN    Open a file for editing
  2407.            Syntax: O [pathname]
  2408.  
  2409.            This command  opens  a  file  for  editing  in  the  next
  2410.            
  2411.            NED v1.7x User's Guide                           Page  46
  2412.  
  2413.            available area.  If there  are no  free areas,  NED  will
  2414.            display the message:
  2415.  
  2416.                 No Free Areas left !
  2417.  
  2418.            In its  simplest form,  OPEN accepts  the pathname of the
  2419.            file to open. For example:
  2420.  
  2421.                 <Esc>Omyfile.prg<Enter>
  2422.  
  2423.            will attempt  to open  the file 'myfile.prg'. If the file
  2424.            does not exist NED will prompt you with:
  2425.  
  2426.                 Ok to Create (Y/N) ?
  2427.  
  2428.            If  you  answer  'y'  you  may  proceed  to  enter  text,
  2429.            otherwise you will be returned to command selection mode.
  2430.            If no  parameter is given, the next file in the File List
  2431.            is opened  if a  File List  exists. CTRL  F1 (quick open)
  2432.            will open  the next  file in the File List as a short-cut
  2433.            to this  operation. If  there are no further files in the
  2434.            File List, NED will display the message:
  2435.  
  2436.                 End of File List reached
  2437.  
  2438.            You may browse the File List in parameter entry mode with
  2439.            the up/down  arrows and  then ENTER on a file to open. If
  2440.            you hold  down either the up or down arrows, when the top
  2441.            or bottom  of the  File List  is reached,  NED will  wrap
  2442.            around to  the other  end of the list. You may also enter
  2443.            File Display  mode with the F1 key which takes you to the
  2444.            directory window  and ENTER on the file you wish to open.
  2445.  
  2446.            You may  specify a  wildcard parameter and then press the
  2447.            F1 key  to display  only those files in the wildcard set.
  2448.            For example:
  2449.  
  2450.                 <Esc>O*.c<F1>
  2451.  
  2452.            will enter  File Display  mode displaying  only  matching
  2453.            '*.c' files.  You can  then ENTER on the file you wish to
  2454.            open or  ESC back  to Command  mode. See  section 5.5 for
  2455.            more details  on the  File Display mode. NED will attempt
  2456.            read the  entire file  into the  area. If the file is has
  2457.            more lines  than the  maximum  lines  allowed,  NED  will
  2458.            prompt:
  2459.  
  2460.                 Buffer full, Continue ? (Y/N)
  2461.  
  2462.            If you  want to  edit this file, you should answer 'n' to
  2463.            this prompt  which will  abort the  command and return to
  2464.            the previous  open area.  You should then save your files
  2465.            if necessary,  open CONFIG.NED  and increase the MAXLINES
  2466.            statement to  accommodate the  larger file  then quit and
  2467.            re-load NED.  If you  answer 'y',  NED will  allow you to
  2468.            edit only  the first  number of buffer lines of the file.
  2469.            The extra  lines that  were not  read will be lost if you
  2470.            write the  file back  to disk. You may choose this option
  2471.            
  2472.            NED v1.7x User's Guide                           Page  47
  2473.  
  2474.            if you wish to view this file.
  2475.  
  2476.            Sufficient memory  must be  available to  read the entire
  2477.            file. If  there is  not enough  memory, NED will beep and
  2478.            display the message:
  2479.  
  2480.                 Insufficient memory !
  2481.  
  2482.            then abort  the command  and return  to the previous open
  2483.            area. If  you need to work on this file, we recommend the
  2484.            following actions:
  2485.  
  2486.            1 - close down any less important files you may have open
  2487.            to free up more memory and re-issue the OPEN command.
  2488.  
  2489.            2 -  reduce the  MAXLINES statement  in CONFIG.NED  to  a
  2490.            number that  it closer to your maximum required number of
  2491.            lines.
  2492.  
  2493.            3 -  check that you have enough free memory in DOS before
  2494.            re-loading NED.  For example,  you could have a Terminate
  2495.            Stay Resident (TSR) program consuming system memory.
  2496.  
  2497.            4 -  check to  see that  you  haven't  shelled  out  from
  2498.            another program  and loaded NED. You can normally do this
  2499.            except with large text files.
  2500.  
  2501.  
  2502.            PRINT   Sends the current file to the printer
  2503.            Syntax: P [{to|from,to}]
  2504.  
  2505.            With no  parameters this  command prints  the whole file.
  2506.            You may  optionally specify a to line number which prints
  2507.            from the  current line  to the to line, or alternatively,
  2508.            you may  specify a  from and  to line  numbers to specify
  2509.            printing between start and ending lines. For example:
  2510.  
  2511.                 <Esc>P5,25<Enter>
  2512.  
  2513.            Prints lines 5 to 25 inclusively.
  2514.  
  2515.                 <Esc>P100<Enter>
  2516.  
  2517.            Prints from the current line to line 100.
  2518.  
  2519.            If you  are printing in foreground mode, NED will attempt
  2520.            to initialize the PRN device before printing. If it fails
  2521.            you will be prompted:
  2522.  
  2523.                 Printer Not Ready, Continue ? (Y/N)
  2524.  
  2525.            Check that  the printer  is on-line  and answer  'y'. NED
  2526.            will retry.  If you  answer 'n'  you will  be returned to
  2527.            command selection.
  2528.  
  2529.            If you  are printing  in background  mode, NED will print
  2530.            the file  to the  spooler where  it will  be added to the
  2531.            queue and  printed in  background mode.  See  the  VSPOOL
  2532.            
  2533.            NED v1.7x User's Guide                           Page  48
  2534.  
  2535.            command below.
  2536.  
  2537.            To set your page layout i.e. page length, top, bottom and
  2538.            left margins,  see the  YLAYOUT  command  below  and  the
  2539.            LAYOUT statement in section 5.3.
  2540.  
  2541.  
  2542.            QUIT    Quit NED and return to DOS
  2543.            Syntax: Q [{a|s}]
  2544.  
  2545.            The QUIT  command first  goes through  all the open areas
  2546.            checking for  any changes.  If none  are found,  you  are
  2547.            returned to  DOS. If  changes are  found in  a  file  NED
  2548.            displays the message:
  2549.  
  2550.                 (S)ave (A)bort or (C)ancel ?
  2551.  
  2552.            You can  save or abort the file or cancel the entire quit
  2553.            operation in  which case  you remain  in Command  mode. A
  2554.            shorthand method  is also  available with  this  command.
  2555.            QUIT with the 'a' parameter quits from NED without saving
  2556.            any files  even if  changes have been recorded. QUIT with
  2557.            the 's'  parameter saves  any  files  that  have  changed
  2558.            without prompting and then quits.
  2559.  
  2560.            If the  spooler is  active and  you attempt  to quit, NED
  2561.            will display the message:
  2562.  
  2563.                 Background is busy
  2564.  
  2565.            and will not exit to DOS until printing is finished.
  2566.  
  2567.  
  2568.            REPLACE Replaces text with a specified string
  2569.            Syntax: R string[,{number|g[,n]}]
  2570.  
  2571.            Before using this command you must use either the SPECIFY
  2572.            command or  the Block  Mode 's'  command to tell NED what
  2573.            you  want  to  replace  (target  pattern).  This  command
  2574.            requires a  string which  will replace the target pattern
  2575.            if found.
  2576.  
  2577.            If just  the string is given, NED will attempt to replace
  2578.            the next  occurrence of  the target  pattern with it. For
  2579.            example:
  2580.  
  2581.                 <Esc>Sfor<Enter>RFOR<Enter>
  2582.  
  2583.            will replace the next occurrence of "for" with "FOR". You
  2584.            can append  an optional  number to  specify  the  maximum
  2585.            number of replacements to be made. Alternatively, you may
  2586.            append a  ',g' which  will  replace  the  target  pattern
  2587.            across the  whole file  (globally). Each time a target is
  2588.            found you will be prompted:
  2589.  
  2590.                 Replace (Y/N) ?
  2591.  
  2592.            if you  answer 'y'  NED will replace the pattern with the
  2593.            
  2594.            NED v1.7x User's Guide                           Page  49
  2595.  
  2596.            string, if  you answer  'n', NED continues searching. You
  2597.            may also  press ESC  at this prompt, which will abort the
  2598.            command.
  2599.  
  2600.            You may  further append a ',n' which suppresses the above
  2601.            prompting. For example:
  2602.  
  2603.                 <Esc>Sbill<Enter>Raccount,g,n<Enter>
  2604.  
  2605.            will replace  the all occurrences of the word 'bill' with
  2606.            'account' without  any prompting.  When NED  has finished
  2607.            replacing, the message:
  2608.  
  2609.                 <number> replaced, <number> overflows
  2610.  
  2611.            is displayed  showing the number of replacements made and
  2612.            the number  of overflows  encountered. An overflow occurs
  2613.            when the  replaced text  expands the line to greater than
  2614.            256 characters.  In this  case the  line is truncated. To
  2615.            replace a comma (,) precede it with a backslash character
  2616.            (\,). You  can retrieve  the last  replacement  parameter
  2617.            with the up arrow in parameter entry mode.
  2618.  
  2619.  
  2620.            SPECIFY Specifies a search expression
  2621.            Syntax: S expression
  2622.  
  2623.            This command  tells NED  what pattern  to look  for  when
  2624.            searching for  or  replacing  text.  SPECIFY  accepts  an
  2625.            expression conforming  to the Regular Expression Language
  2626.            described in section 5.6. For example:
  2627.  
  2628.                 <Esc>S/\*.*\*/<Enter>
  2629.  
  2630.            will search  for a  'C' comment line. See section 5.6 for
  2631.            details on  using this  language. To  begin searching you
  2632.            must press  F8, SHIFT  F8, CTRL  F8 or  issue  a  REPLACE
  2633.            command. SPECIFY  expressions may  also be  set using the
  2634.            's' command in Block Mode. See section 5.7 for details on
  2635.            the Block Mode.
  2636.  
  2637.            The SPECIFY  expression may be used across all open areas
  2638.            and remains  current until a new expression is specified.
  2639.            You can  retrieve the  last SPECIFY parameter with the up
  2640.            arrow in parameter entry mode.
  2641.  
  2642.  
  2643.            TABSET  Sets the tabstop template
  2644.            Syntax: T {column[,column...]|r}
  2645.  
  2646.            This command  sets the  tabstop template to the specified
  2647.            column  number(s).   If  you   specify  only  one  column
  2648.            parameter, tabs  are set  to a  width of column-1 for the
  2649.            entire template. For example:
  2650.  
  2651.                 <Esc>T5<Enter>
  2652.  
  2653.            will set  tabstops at  every fourth column. This is NED's
  2654.            
  2655.            NED v1.7x User's Guide                           Page  50
  2656.  
  2657.            default setting.  If  more  than  one  column  is  given,
  2658.            tabstops are  set accordingly. The difference between the
  2659.            last two  columns is  used to set the remaining tabstops.
  2660.            For example:
  2661.  
  2662.                 <Esc>T7,11<Enter>
  2663.  
  2664.            will set tabstops for FORTRAN programs.
  2665.  
  2666.            You can  reset the  template to  the default with the 'r'
  2667.            parameter. This  command is also available in CONFIG.NED,
  2668.            see section 5.3 for more details.
  2669.  
  2670.  
  2671.            USE     Load a macro file
  2672.            Syntax: U macrofile
  2673.  
  2674.            This command  loads a  set of  macros from disk. You need
  2675.            only specify a filename/pathname as the .MCR extension is
  2676.            the default. If macrofile does not exist or is corrupted,
  2677.            NED displays the message:
  2678.  
  2679.                 Invalid MACRO File or File name !
  2680.  
  2681.            You can  enter File  Display mode  by pressing  F1.  This
  2682.            filters *.MCR  files. You  may then  press ENTER  on  the
  2683.            macro file you wish to use. For example:
  2684.  
  2685.                 <Esc>U<F1>
  2686.  
  2687.            If there  are no macro files in the current directory you
  2688.            can select  another directory  using  File  Display  mode
  2689.            through the  OPEN command. Once you have moved to the new
  2690.            directory, exit  File Display  Mode and  re-issue the USE
  2691.            command as above.
  2692.  
  2693.            The MACRO  statement in  CONFIG.NED will  instruct NED to
  2694.            USE a  macro file  when starting  up, see section 5.3 for
  2695.            details.
  2696.  
  2697.  
  2698.            VSPOOL  Print spooler control
  2699.            Syntax: V {p|k[-]|t{1-8192}|1-9}
  2700.  
  2701.            This command  allows you  to pause  or resume  background
  2702.            printing, allow  you to  remove one or all files from the
  2703.            spooler or adjust the timeslice given to the spooler. The
  2704.            following command:
  2705.  
  2706.                 <Esc>Vp<Enter>
  2707.  
  2708.            will pause  background printing if the spooler is active.
  2709.            To resume  printing repeat  the above  command.  This  is
  2710.            useful if  you wish  to devote  all CPU  time to  editing
  2711.            processes.
  2712.  
  2713.            The spooler  queue can handle up to ten files.  Each time
  2714.            
  2715.            NED v1.7x User's Guide                           Page  51
  2716.  
  2717.            a file  is sent  to the spooler it is added to the end of
  2718.            the queue.  As the  printing of  a file is completed, all
  2719.            remaining files  are moved  up one place in the queue. To
  2720.            remove all  files from  the spooler  queue including  the
  2721.            active spool  file use the 'k' parameter. NED also allows
  2722.            you to  flush the  contents  of  the  printer  buffer  by
  2723.            appending  '-'   character  to  the  'k'  parameter.  For
  2724.            example:
  2725.  
  2726.                 <Esc>Vk-<Enter>
  2727.  
  2728.            You may  selectively remove  one file  from  the  spooler
  2729.            queue by  specifying its  position in  the queue.  Either
  2730.            enter the queue number for the file you wish to remove or
  2731.            you may  browse through  the queue  with the  up or  down
  2732.            arrows. This  will display  the number  and name  of each
  2733.            file in  the queue.  You may then press ENTER on the file
  2734.            you wish to remove.
  2735.  
  2736.            You may  adjust the  amount of  time given to the printer
  2737.            while spooling  with the 't' command. The timeslice value
  2738.            must be  between 1  and 8192.  The greater  the timeslice
  2739.            value, the  less  time  is  given  to  the  printer.  For
  2740.            example:
  2741.  
  2742.                 <Esc>Vt256<Enter>
  2743.  
  2744.            Sets  the  timeslice  to  256.  The  SPOOL  statement  in
  2745.            CONFIG.NED allows  you to  configure the spooler when NED
  2746.            loads. See  section  5.3  for  more  details.  To  toggle
  2747.            background printing on or off use CTRL F6.
  2748.  
  2749.  
  2750.            WRITE   Write the current file
  2751.            Syntax: W [pathname[,n]]
  2752.  
  2753.            With no parameter this command writes the current file to
  2754.            disk regardless  of whether  there have  been any changes
  2755.            made to  it. SHIFT  F10 is  a short-cut for this command,
  2756.            see section  5.2 for  details.  You  may  specify  a  new
  2757.            pathname to  write the  file to. If this file exists, NED
  2758.            will prompt:
  2759.  
  2760.                 File Exists, Overwrite it ? (Y/N)
  2761.  
  2762.            If  you  press  'n'  the  command  is  aborted.  You  may
  2763.            alternatively enter File Display mode to find an existing
  2764.            file to overwrite by pressing F1 in parameter entry mode.
  2765.            You may  optionally append  the 'n' parameter to pathname
  2766.            which suppresses  the stripping  of whitespace characters
  2767.            from the end of each line when writing.
  2768.  
  2769.  
  2770.            XSAVE   Save the File List
  2771.            Syntax: X [pathname]
  2772.  
  2773.            This command writes the File List to disk. If pathname is
  2774.            not given,  NED will  write the File List to FILES.NED if
  2775.            
  2776.            NED v1.7x User's Guide                           Page  52
  2777.  
  2778.            you did not start NED with an '@file' ('At' file). If you
  2779.            started NED  with an  '@file' it  will  be  updated.  See
  2780.            section 4.2  for  details  on  using  '@files'.  You  may
  2781.            optionally specify  a new  pathname to  save the list to.
  2782.  
  2783.            The extension  .NED is  the default  so you needn't enter
  2784.            it. For example:
  2785.  
  2786.                 <Esc>Xmyfiles<Enter>
  2787.  
  2788.            will save the current File List to MYFILES.NED. To load a
  2789.            File List  when starting  NED type  the '@' symbol before
  2790.            the filename. For example:
  2791.  
  2792.                 ned @myfiles<Enter>
  2793.  
  2794.            loads the  File List  MYFILES.NED from  disk when loading
  2795.            NED.
  2796.  
  2797.            When in  the File  List window  in File Display mode, you
  2798.            can save  the File List to FILES.NED by pressing CTRL F4.
  2799.            See section 4.2 for more details on File Lists.
  2800.  
  2801.  
  2802.            YLAYOUT Set print page
  2803.            Syntax: Y [length,topmargin,bottommargin[,leftmargin]]
  2804.  
  2805.            This command  sets the  print page  dimensions.  With  no
  2806.            parameters, the  page length  is set  to 66 lines the top
  2807.            and bottom margins are set to 3 lines and the left margin
  2808.            is set to 0 characters. If you wish to print on the whole
  2809.            page e.g. on standard continuous stationary, the command:
  2810.  
  2811.                 <Esc>Y66,0,0<Enter>
  2812.  
  2813.            would cancel the top and bottom margins. If the topmargin
  2814.            plus the  bottommargin is greater than page length or the
  2815.            margins are less than 0, the message:
  2816.  
  2817.                 Invalid print page layout
  2818.  
  2819.            will be  displayed. In  this case,  the existing settings
  2820.            will remain  unchanged. If  you want a left margin of ten
  2821.            characters use the following command:
  2822.  
  2823.                 <Esc>Y66,3,3,10<Enter>
  2824.  
  2825.            NED also allows you to specify the default page layout in
  2826.            CONFIG.NED, see the LAYOUT statement in section 5.3.
  2827.  
  2828.  
  2829.            ZSORT   Sort the current file
  2830.            Syntax: Z [{width|startcol,endcol}]
  2831.  
  2832.            With no  parameters, this  command sorts the current file
  2833.            alphabetically. You may specify the maximum width that is
  2834.            significant in sorting. For example:
  2835.  
  2836.            
  2837.            NED v1.7x User's Guide                           Page  53
  2838.  
  2839.                 <Esc>Z20<Enter>
  2840.  
  2841.            sorts the  current file  alphabetically  considering  the
  2842.            first twenty  characters of  the each  line only. You may
  2843.            instruct NED  to sort  the file by text that lies between
  2844.            the startcol and endcol. For example:
  2845.  
  2846.                 <Esc>Z15,23<Enter>
  2847.  
  2848.            will sort the following output from the DOS DIR command:
  2849.  
  2850.                DISTRIB  DOC      3008 19-01-92   3:40a
  2851.                FASTPRN  EXE     14441 08-01-92  11:44p
  2852.                LICENSE  DOC      5510 19-01-92   6:05p
  2853.                NCAL     EXE     42576 21-01-92   3:24a
  2854.                NED      DOC    286751 29-01-92   2:10a
  2855.                NED      EXE     96021 01-02-92   2:28a
  2856.                NHELP    EXE     21199 01-02-92   2:26a
  2857.                OMBUDSMN ASP       811 10-01-92  11:21p
  2858.                PACKING  LST       907 25-01-92  11:35p
  2859.                READ     ME      10840 31-01-92  11:34p
  2860.                REGISTER FRM      1417 19-01-92   2:09a
  2861.                SAMPLE   MCR     11240 26-01-92   3:14a
  2862.                SYSOP    DOC      4036 25-01-92   6:07p
  2863.  
  2864.            on the file size column, to produce:
  2865.  
  2866.                OMBUDSMN ASP       811 10-01-92  11:21p
  2867.                PACKING  LST       907 25-01-92  11:35p
  2868.                REGISTER FRM      1417 19-01-92   2:09a
  2869.                DISTRIB  DOC      3008 19-01-92   3:40a
  2870.                SYSOP    DOC      4036 25-01-92   6:07p
  2871.                LICENSE  DOC      5510 19-01-92   6:05p
  2872.                READ     ME      10840 31-01-92  11:34p
  2873.                SAMPLE   MCR     11240 26-01-92   3:14a
  2874.                FASTPRN  EXE     14441 08-01-92  11:44p
  2875.                NHELP    EXE     21199 01-02-92   2:26a
  2876.                NCAL     EXE     42576 21-01-92   3:24a
  2877.                NED      EXE     96021 01-02-92   2:28a
  2878.                NED      DOC    286751 29-01-92   2:10a
  2879.  
  2880.  
  2881.            1MARGIN Set the right hand margin
  2882.            Syntax: 1 [rightcolumn]
  2883.  
  2884.            This command  sets the  right hand  margin for word wrap.
  2885.            With no  parameters, this  command resets  the right hand
  2886.            margin to 65.
  2887.  
  2888.            The rightcolumn must be between 1 and 256. Only one right
  2889.            hand column  may be  specified. If  the column  given  is
  2890.            invalid, NED will display the message:
  2891.  
  2892.                 Invalid right hand margin
  2893.  
  2894.            For example:
  2895.  
  2896.                 <Esc>145<Enter>
  2897.            
  2898.            NED v1.7x User's Guide                           Page  54
  2899.  
  2900.  
  2901.            Sets the  right hand margin to 45. NED also allows you to
  2902.            specify the  default right hand margin in CONFIG.NED, see
  2903.            the WORDWRAP  statement in  section 5.3.  See section 3.4
  2904.            for details on using word wrap.
  2905.  
  2906.  
  2907.            2DOS    Execute DOS command
  2908.            Syntax: 2 [command [parameter...]]
  2909.  
  2910.  
  2911.            3SPEED  Set keyboard speed
  2912.            Syntax: 3 {0-5}
  2913.  
  2914.  
  2915.  
  2916.            
  2917.            NED v1.7x User's Guide                           Page  55
  2918.  
  2919.            *********************************************************
  2920.            NED v1.7x User's Guide
  2921.            Section 5.2    Function Reference
  2922.  
  2923.            Introduction
  2924.            This section  describes the  function keys  used in  NED.
  2925.            Function keys  perform a  particular action  for which no
  2926.            parameters are required.
  2927.  
  2928.  
  2929.            UP/DOWN ARROWS                         Previous/Next line
  2930.  
  2931.            These keys  move the  cursor up  or down one line. If the
  2932.            cursor is  at the top of the window and you press UP, the
  2933.            screen will  scroll down  one line. Alternatively, if you
  2934.            at the  bottom of the Edit window and you press DOWN, the
  2935.            screen will  scroll up  one line. If you are on the first
  2936.            or last  line of  the file  and you press UP or DOWN, the
  2937.            screen will not scroll and NED will beep.
  2938.  
  2939.            If the  SCROLL LOCK is on, the Edit window will scroll up
  2940.            or down  and the  cursor will remain in the same relative
  2941.            position on the edit window.
  2942.  
  2943.            HOME/END                                   Start/End line
  2944.  
  2945.            The HOME key moves the cursor to the first non whitespace
  2946.            character of the current line.
  2947.  
  2948.            The END  key moves  the cursor  one space to the right of
  2949.            the  last   character  on  the  current  line  (including
  2950.            whitespace characters).  These keys  have the same effect
  2951.            in Command mode.
  2952.  
  2953.            PGUP/PGDN                              Previous/Next page
  2954.  
  2955.            These keys  scroll the  edit window  up or down one page,
  2956.            normally +- 20 lines. The cursor will be left at the same
  2957.            relative position in the window. If you are at the top or
  2958.            bottom of  the file these keys will have no effect. These
  2959.            functions are  designed to  operate very  quickly and you
  2960.            can therefore  hold these  keys down  without filling the
  2961.            keyboard buffer.
  2962.  
  2963.            CTRL PGUP/CTRL PGDN                     Top/Bottom screen
  2964.  
  2965.            These keys  move the  cursor to the top or bottom line of
  2966.            the edit window.
  2967.  
  2968.            CTRL HOME/CTRL END                        First/Last line
  2969.  
  2970.            The CTRL  HOME key  takes the cursor to first line of the
  2971.            file. The  column position  remains as  it was unless you
  2972.            press CTRL SHIFT HOME which takes the cursor to the first
  2973.            column.
  2974.  
  2975.            The CTRL END key moves the cursor to the last line of the
  2976.            file. The  column position  remains as  it was unless you
  2977.            
  2978.            NED v1.7x User's Guide                           Page  56
  2979.  
  2980.            press CTRL  SHIFT END which takes the cursor to the first
  2981.            column on the last line.
  2982.  
  2983.            LEFT/RIGHT ARROWS                 Previous/Next character
  2984.  
  2985.            These keys move the cursor left or right one character on
  2986.            the current  line. If  the cursor  is at the right of the
  2987.            Edit window  and you  press RIGHT, the screen will scroll
  2988.            left  one   character  unless  you  are  on  column  256.
  2989.  
  2990.            Alternatively if  you are  at the left of the edit window
  2991.            and you  press LEFT,  the screen  will scroll  right  one
  2992.            character unless you are on column 1.
  2993.  
  2994.            If the  SCROLL LOCK  is on,  the Edit  window will scroll
  2995.            left or  right and  the cursor  will remain  in the  same
  2996.            relative position on the screen. These keys have the same
  2997.            effect in Command mode.
  2998.  
  2999.            CTRL LEFT/CTRL RIGHT                   Previous/Next word
  3000.  
  3001.            These keys  move the  cursor  to  the  beginning  of  the
  3002.            previous or  next word. If the cursor is at the beginning
  3003.            of a line and you press
  3004.  
  3005.            CTRL LEFT,  NED will  move the cursor to the beginning of
  3006.            the last  word on  the previous  line. Similarly,  if the
  3007.            cursor is  at the end of a line and you press CTRL RIGHT,
  3008.            NED will  move the  cursor to  the beginning of the first
  3009.            word on the next line.
  3010.  
  3011.            A word  is defined  as a character or group of characters
  3012.            surrounded by  one or  more interword delimiters. See the
  3013.            INTERWORD command in section 5.1 for more details.
  3014.  
  3015.            BACKSPACE (BS)                   Blank previous character
  3016.  
  3017.            This key  moves the  cursor to  the left  one  space  and
  3018.            blanks the character under it. If you are in insert mode,
  3019.            BS deletes the character to the left dragging text to the
  3020.            right of  the cursor to the left. This is the opposite of
  3021.            the DEL  key. This  key has  the same  effect in  Command
  3022.            mode. When word wrap is on and the cursor is at the first
  3023.            column of  a line  and the  line is not the first line of
  3024.            the file,  BS joins  the current  line to  the end of the
  3025.            previous line.
  3026.  
  3027.            DELETE (DEL)                             Delete character
  3028.  
  3029.            This key  deletes the character under the cursor dragging
  3030.            text to the right of the cursor to the left. This key has
  3031.            the same effect in Command mode.
  3032.  
  3033.            When word  wrap is  on and  the cursor is at the end of a
  3034.            line and  the line  is not the last line of the file, DEL
  3035.            joins the next line to the end of the current line.
  3036.  
  3037.            ENTER                                 Open new line below
  3038.            
  3039.            NED v1.7x User's Guide                           Page  57
  3040.  
  3041.  
  3042.            The ENTER key opens up a new line below the current line.
  3043.            If the  Auto-indent flag  is off, the cursor is placed at
  3044.            the first  column. If  the Auto-indent  flag is  on,  the
  3045.            cursor is placed under the first non whitespace character
  3046.            of the previous line.
  3047.  
  3048.            When auto-indent  is on,  RIGHT  SHIFT  ENTER  moves  the
  3049.            cursor one  tabstop  to  the  right  of  the  first  non-
  3050.            whitespace character  of the  line above  and LEFT  SHIFT
  3051.            ENTER moves  the cursor  one  tabstop  to  the  left.  In
  3052.            Command mode,  this key  executes the  selected  command.
  3053.  
  3054.            When word wrap is on, ENTER splits the line at the cursor
  3055.            position, moving  the cursor  to the beginning of the new
  3056.            line. This  is the same as pressing CTRL M when word wrap
  3057.            is off.
  3058.  
  3059.            CTRL ENTER                            Open new line above
  3060.  
  3061.            This key  operates in  exactly the  same way as the ENTER
  3062.            key except that it opens a line above the current line.
  3063.  
  3064.            ESCAPE (ESC)                                 Command mode
  3065.  
  3066.            This  key   moves  the   cursor  to   the  command  area,
  3067.            temporarily suspending  editing of  the file.  If you are
  3068.            already in Command mode, this key returns you to the Edit
  3069.            window.
  3070.  
  3071.            See section 5.1 for details on NED's commands and section
  3072.            3.1 for  details on  the using  the command  area. If you
  3073.            wish to enter an escape character in your file press CTRL
  3074.            ESC.
  3075.  
  3076.            SHIFT ESCAPE                            Exit Command mode
  3077.  
  3078.            This key  moves the  cursor from  the command area to the
  3079.            Edit window.  It  has  been  designed  to  be  used  when
  3080.            recording macros.  It allows  you to control which window
  3081.            the cursor is in when a macro runs.
  3082.  
  3083.            Note that  you cannot  enter Command  mode with this key.
  3084.            See section 4.4 for details on using macros.
  3085.  
  3086.            INSERT (INS)                                  Insert mode
  3087.  
  3088.            This key  toggles between insert and overtype modes. When
  3089.            in insert  mode any  text entered will automatically push
  3090.            all characters  from the  cursor to  the right.  When  in
  3091.            overtype mode  any character typed replaces the character
  3092.            under the cursor.
  3093.  
  3094.            In insert  mode the cursor appears as a half block and in
  3095.            overtype mode  the cursor is a quarter block. The initial
  3096.            status  of  insert  mode  can  be  set  with  the  INSERT
  3097.            statement in CONFIG.NED, see section 5.3 for details.
  3098.  
  3099.            
  3100.            NED v1.7x User's Guide                           Page  58
  3101.  
  3102.            This key has the same effect in Command mode.
  3103.  
  3104.            SCROLL LOCK                                 Freeze cursor
  3105.  
  3106.            This key toggles the scroll lock function on and off. The
  3107.            default is  off. When  on, the Edit window instead of the
  3108.            cursor moves  when you  press the LEFT, RIGHT, UP or DOWN
  3109.            keys.  This   is  useful  for  browsing  through  a  file
  3110.            particularly when it is wider than 80 characters.
  3111.  
  3112.            TAB                                             Right tab
  3113.  
  3114.            If you  are not  in insert mode this key moves the cursor
  3115.            one tabstop  to the  right. If the cursor is at the right
  3116.            of the  Edit window and you press the TAB key, the screen
  3117.            will scroll  left one  tabstop unless  you are  on column
  3118.            256. If  you are  in insert mode, the TAB key inserts the
  3119.            equivalent number  of spaces  to take  the cursor  to the
  3120.            next tabstop,  pushing text  to the right. This will only
  3121.            insert spaces up to the maximum of 256 characters. If the
  3122.            hard-tab flag  is  on,  this  key  will  enter  hard  tab
  3123.            characters into the file.
  3124.  
  3125.            SHIFT TAB                                        Left tab
  3126.  
  3127.            If you  are not  in insert mode this key moves the cursor
  3128.            one tabstop  to the left. If the cursor is at the left of
  3129.            the Edit  window and  you press  the SHIFT  TAB key,  the
  3130.            screen will  scroll right  one tabstop  unless you are on
  3131.            column 1.
  3132.  
  3133.            If you  are in  insert mode the SHIFT TAB key deletes the
  3134.            equivalent number of characters to take the cursor to the
  3135.            previous tabstop, dragging text to the left.
  3136.  
  3137.            F1                                                   Help
  3138.  
  3139.            This key attempts to load the help system. NHELP.EXE must
  3140.            be either  in the current directory or reside on the PATH
  3141.            and  there   must  be   64Kb  of   memory  available.  If
  3142.            insufficient memory  is available or the help file cannot
  3143.            be found, NED will display the following message:
  3144.  
  3145.                 Can't load Help File
  3146.  
  3147.            The help  system is divided into ten screens the first of
  3148.            which is  an index to the other nine. Enter the number of
  3149.            the screen  you wish  to view  or use  UP or DOWN arrows,
  3150.            ENTER and  PGUP or  PGDN to  browse through  the screens.
  3151.  
  3152.            HOME and  F1 takes  you to the index screen and END takes
  3153.            you to the last screen. To return to your file press ESC.
  3154.            This key is a shortcut for the HELP command.
  3155.  
  3156.            SHIFT F1                                 Select File List
  3157.  
  3158.            This key  enters File  Display mode  and selects the File
  3159.            List window.  If there are no files in the File List, NED
  3160.            
  3161.            NED v1.7x User's Guide                           Page  59
  3162.  
  3163.            will select the Directory window.
  3164.  
  3165.            You can  use UP,  DOWN, HOME, END, PGUP or PGDN to browse
  3166.            the File  List. If you press ENTER over any file NED will
  3167.            try to  OPEN it.  You may move to the directory window by
  3168.            pressing the TAB key. If there is not enough memory to
  3169.  
  3170.                 enter File Display mode,
  3171.  
  3172.            NED will display the message:
  3173.  
  3174.                 Insufficient Memory !
  3175.  
  3176.            CTRL F1                                    Open next file
  3177.  
  3178.            This key  attempts to  OPEN the  next file  from the File
  3179.            List. If  you don't  have a File List or the file pointer
  3180.            is at  the end  of the  list then  NED will  display  the
  3181.            message:
  3182.  
  3183.                 End of File List reached
  3184.  
  3185.            This key is a shortcut for the following keystrokes:
  3186.  
  3187.                 <Esc>O<Enter><Esc>
  3188.  
  3189.            F2                                          Restore scrap
  3190.  
  3191.            This key  restores text  from the  Scrap  buffer  to  the
  3192.            current file.  If the scrap is intra-line (within a line)
  3193.            the restored  text will be inserted into the current line
  3194.            at the  cursor position. If the cursor is past the end of
  3195.            the line,  NED will  append the  text to  the end  of the
  3196.            line. If  the length  of the  line plus  the width of the
  3197.            scrap is  greater than  256 characters, NED will beep and
  3198.            not restore  the  text.  Intra-line  scrap  can  only  be
  3199.            created in Block Mode. If however the scrap is inter-line
  3200.            (one or  more lines)  then  the  restored  text  will  be
  3201.            inserted below  the current  line. When  text is restored
  3202.            NED will display the message:
  3203.  
  3204.                 number lines copied from Scrap
  3205.  
  3206.            You will  only be  allowed to  insert  lines  up  to  the
  3207.            maximum number  of lines  allowed, set  by  the  MAXLINES
  3208.            statement in  CONFIG.NED.  In  this  situation  NED  will
  3209.            restore as  many lines from scrap as it can, then display
  3210.            the message:
  3211.  
  3212.                 number lines ONLY copied from Scrap
  3213.  
  3214.            If there  is not  enough memory  available to restore the
  3215.            entire scrap  buffer, NED will restore as much as it can.
  3216.            If there  is no  memory  available,  NED  will  beep  and
  3217.            display the message:
  3218.  
  3219.                 Insufficient Memory !
  3220.  
  3221.            
  3222.            NED v1.7x User's Guide                           Page  60
  3223.  
  3224.            SHIFT F2                                      Delete line
  3225.  
  3226.            This key  deletes (or cuts) the current line to the scrap
  3227.            buffer. Whatever  was previously  in the  scrap buffer is
  3228.            lost.
  3229.  
  3230.            You may append lines to the scrap buffer with consecutive
  3231.            SHIFT F2  strokes as  long as  no other key is pressed in
  3232.            between. In  this way you can cut an entire block of text
  3233.            to scrap.  If you  have deleted  all lines  in a file NED
  3234.            will insert  one blank line at the beginning of the file.
  3235.  
  3236.            When a  line  is  cut  to  scrap,  NED  will  display  an
  3237.            abbreviation of  the deleted  text to the right of line 3
  3238.            in the system window.
  3239.  
  3240.            CTRL F2                                     Restore above
  3241.  
  3242.            This key  is the same as F2 except that scrap is inserted
  3243.            above the  current line instead of below it. If the scrap
  3244.            is intra-line,  NED will  insert the  text at  the cursor
  3245.            column in the previous line. If the cursor column is past
  3246.            the end of the previous line, NED will append the text to
  3247.            the previous  line. If the cursor is on the first line of
  3248.            the file, NED will beep, and not insert the scrap.
  3249.  
  3250.            F3                                              Join line
  3251.  
  3252.            This key  joins the  next line  to the end of the current
  3253.            line. If  the length  of both  lines is  greater than 256
  3254.            characters, NED  will join  as much  of the  next line as
  3255.            possible, leaving  the remainder on the next line. If the
  3256.            cursor is  located within  the original  line, the joined
  3257.            line will  be appended  to the  current line. If, however
  3258.            the cursor  is off  the end  of the current line the next
  3259.            line will be joined at the cursor position. If you are on
  3260.            the last line of the file, NED will beep.
  3261.  
  3262.            SHIFT F3                                       Split line
  3263.  
  3264.            This key  splits the current line at the cursor position.
  3265.            All characters  from the  cursor to  the end  of the line
  3266.            will form  a new  line under  the current line. After the
  3267.            line is  split, the  cursor remains in the same position.
  3268.  
  3269.            This key  has the  same effect  as CTRL M except that the
  3270.            cursor remains at the end of the old line.
  3271.  
  3272.            CTRL F3                                         Copy line
  3273.  
  3274.            This key  copies the  current line  to the  scrap buffer.
  3275.            This key has the same effect as the following keys:
  3276.  
  3277.                 <Shift F2><Up><F2><Down>
  3278.  
  3279.            F4                                             Block mode
  3280.  
  3281.            This key  enters Block mode. You may also exit Block mode
  3282.            
  3283.            NED v1.7x User's Guide                           Page  61
  3284.  
  3285.            with this key. See section 5.4 for details on Block mode.
  3286.  
  3287.            SHIFT F4                                        DOS shell
  3288.  
  3289.            This key  invokes a  DOS shell.  NED  is  suspended,  the
  3290.            screen is cleared and you are handed over to DOS. You may
  3291.            then enter any DOS commands. To return to NED type 'exit'
  3292.            at the  DOS prompt  and  NED  will  be  restored  to  its
  3293.            previous state.
  3294.  
  3295.            A single  block of  at least 64Kb of contiguous memory is
  3296.            required to  invoke the  shell. If  there isn't  a  block
  3297.            large enough, NED will display the message:
  3298.  
  3299.                 Insufficient memory !
  3300.  
  3301.            Remember that you will also need some memory to run other
  3302.            programs. When  out in  the shell  be careful not to load
  3303.            any program  that may  effect what  is already in memory,
  3304.            especially a  memory resident  program (TSR).  If for any
  3305.            reason the  system memory  is corrupted you may lose your
  3306.            edits, therefore  it is  a good  idea to save the file(s)
  3307.            you are working on before you shell.
  3308.  
  3309.            CTRL F4                                Save configuration
  3310.  
  3311.            This key  instructs NED  to write the current environment
  3312.            settings  to   the  file   CONFIG.NED,  in   the  current
  3313.            directory. This function is useful for firstly creating a
  3314.            new CONFIG.NED  file and secondly to save a special setup
  3315.            you may  require. All parameters described in section 5.3
  3316.            are  included   in  the   file.  Two  options  are  worth
  3317.            mentioning. These are:
  3318.  
  3319.                 FILE=filename
  3320.                 GOTO=line,column
  3321.  
  3322.            In the  first statement,  NED  will  insert  the  current
  3323.            area's filename. In the second statement, NED will insert
  3324.            the current  cursor line  and column. When completed, NED
  3325.            will display the message:
  3326.  
  3327.                 CONFIG.NED written to disk
  3328.  
  3329.            F5                                            Brace match
  3330.  
  3331.            This key  attempts  to  find  a  matching  brace,  square
  3332.            bracket, angle bracket or parentheses. The cursor must be
  3333.            over one  of these  characters. If the cursor is not over
  3334.            one of  these characters,  NED will  beep and display the
  3335.            message:
  3336.  
  3337.                 Cursor must point to {([«<!?¿¡>»])}
  3338.  
  3339.            NED will try to match across the entire file as follows:
  3340.  
  3341.                 [  to match  ]
  3342.                 <  to match  >
  3343.            
  3344.            NED v1.7x User's Guide                           Page  62
  3345.  
  3346.                 {  to match  }
  3347.                 (  to match  )
  3348.  
  3349.            If the  character is  an opener  (left column  above) NED
  3350.            will search downwards, otherwise NED will search upwards.
  3351.  
  3352.            If a match is not found NED will display the message:
  3353.  
  3354.                 Match Not Found !
  3355.  
  3356.            If a  match is  found, NED  will move  the cursor  to the
  3357.            matching character.
  3358.  
  3359.            This function is particularly useful for checking complex
  3360.            bracketed expressions  in programs.  For example  in  the
  3361.            following expression,  you may  wish to  check that  each
  3362.            opening parentheses has a matching close:
  3363.  
  3364.                 if ((ln[j]=alloc_line(strlen(buf[i])))==(char*)0)
  3365.  
  3366.            SHIFT F5                                           Redraw
  3367.  
  3368.            This key redraws the screen, positioning the current line
  3369.            in the middle of the Edit window.
  3370.  
  3371.            CTRL F5                                       Freeze/thaw
  3372.  
  3373.            This key  freezes the screen from the current line to the
  3374.            bottom of  the Edit  window. You  may continue editing in
  3375.            the unfrozen top part of the window. You cannot leave any
  3376.            less than five lines unfrozen. If you attempt to do this,
  3377.            NED will beep.
  3378.  
  3379.            A bold  double ruled  line will  appear to  separate  the
  3380.            frozen from  the unfrozen  areas. To  unfreeze (thaw) the
  3381.            screen press  CTRL F5  again. PGUP  and PGDN  will scroll
  3382.            through the  file one line less than the unfrozen window.
  3383.  
  3384.            You may  freeze the screen in one area, change to another
  3385.            and  continue   editing.  This  function  is  useful  for
  3386.            displaying two  separate files  or two  parts of the same
  3387.            file together.
  3388.  
  3389.            F6                                           ASCII tables
  3390.  
  3391.            This key invokes the ASCII tables. This is a small window
  3392.            that displays 32 characters of the ASCII character set at
  3393.            a time.
  3394.  
  3395.            The table displays each character in decimal, hexadecimal
  3396.            and ASCII. For example:
  3397.  
  3398.                    DEC  HEX  CHR
  3399.                    42   2A   *
  3400.  
  3401.            You may  use the  UP or DOWN arrows, HOME and END to move
  3402.            through the  pages. Press  ESC to return to your file. If
  3403.            you are  on the first page of the tables, the F1 key will
  3404.            
  3405.            NED v1.7x User's Guide                           Page  63
  3406.  
  3407.            toggle between  character names  and character  literals.
  3408.  
  3409.            NCAL.EXE must  be either  in the  current directory or on
  3410.            the PATH.  There must  also be  at least  50Kb of  memory
  3411.            available to  use the  tables. If  there is  insufficient
  3412.            memory, NED will display the message:
  3413.  
  3414.                 Can't load Help File
  3415.  
  3416.            SHIFT F6                                       Calculator
  3417.  
  3418.            This key  invokes the  calculator. This is a small window
  3419.            not unlike  a conventional  hand held  model. It uses the
  3420.            standard  'infix'   method  of   operand/operator/operand
  3421.            notation (e.g 2 + 3).
  3422.  
  3423.            The calculator provides floating point arithmetic to four
  3424.            decimal places.  All the normal functions of a calculator
  3425.            are provided  in both hexadecimal and decimal format. Use
  3426.            the space bar to toggle between these two modes. When you
  3427.            toggle between  modes the currently displayed number will
  3428.            be converted accordingly.
  3429.  
  3430.            NED automatically  selects NUM-LOCK  allowing  you to use
  3431.            the numeric keypad for number entry. To enter hexadecimal
  3432.            A to  F use  CTRL A  to F. If you miskey a number you can
  3433.            backspace (BS)  over it  and re-type  or press  'e' to re
  3434.            enter the whole number. Use 'c' to clear all operands and
  3435.            operators.
  3436.  
  3437.            If the number calculated is too large to be displayed the
  3438.            calculator will show the message:
  3439.  
  3440.                 Overflow
  3441.  
  3442.            When you  have finished press ESC to return to your file.
  3443.  
  3444.            Some of  the special  functions provided  include OR (|),
  3445.            AND (&) and XOR (x). For example:
  3446.  
  3447.                 A3F | 100 <Enter>
  3448.  
  3449.            will produce the result:
  3450.  
  3451.                 B3F
  3452.  
  3453.            NCAL.EXE must  be either  in the  current directory or on
  3454.            the PATH.  There must  also be  at least  50Kb of  memory
  3455.            available to use the calculator. If there is insufficient
  3456.            memory, NED will display the message:
  3457.  
  3458.                 Can't load Help File
  3459.  
  3460.            CTRL F6                        Toggle background printing
  3461.  
  3462.            This key  toggles background printing on or off. NED will
  3463.            display either of the following messages:
  3464.  
  3465.            
  3466.            NED v1.7x User's Guide                           Page  64
  3467.  
  3468.                 Spooler on
  3469.                 Spooler off
  3470.  
  3471.            If the spooler is active, NED will display the message:
  3472.  
  3473.                 Background is busy
  3474.  
  3475.            You cannot  turn  background  off  when  the  spooler  is
  3476.            active. See the VSPOOL command in section 5.1 for details
  3477.            on controlling the spooler once it is active.
  3478.  
  3479.            F7                                           Record macro
  3480.  
  3481.            This key  tells NED  to begin recording a keyboard macro.
  3482.            When you press F7, NED will beep and display the message:
  3483.  
  3484.                 Enter Target Key (ALT F1-20)
  3485.  
  3486.            Enter a key between ALT F1-20 (ALT F11-20 = ALT SHIFT F1-
  3487.            10) to assign the macro to. As you record your macro, NED
  3488.            will display  the number  of keystrokes you have pressed,
  3489.            in the message area.
  3490.  
  3491.            When you  have finished  press F7 again to end recording.
  3492.            NED then displays the message:
  3493.  
  3494.                 End Record (macrokey)
  3495.  
  3496.            You may  record up  to 128 keystrokes per macro. NED will
  3497.            beep at  the 127th  keystroke. If  you continue  to enter
  3498.            keys, NED  will overwrite  the 128th key. See section 4.4
  3499.            and the MACRO command in section 5.1 for more information
  3500.            on using macros.
  3501.  
  3502.            SHIFT F7                                     Macro report
  3503.  
  3504.            This  key   displays  the   Macro  Report   screen  which
  3505.            summarizes the  current macro  file (if  one exists)  and
  3506.            then displays:
  3507.  
  3508.                 Key  Description    Number of Keystrokes
  3509.  
  3510.            for each  of the  twenty keys.  If the  macro key  is not
  3511.            assigned "(free)"  will appear  in the description column
  3512.            in the  normal attribute.  Macros that have been recorded
  3513.            but not  named will display "(untitled)". Used macro keys
  3514.            will be  displayed in  bold. Press  any key  to return to
  3515.            your file.
  3516.  
  3517.            CTRL F7                                             Strip
  3518.  
  3519.            This key toggles the strip flag on or off. When this flag
  3520.            is  on   (default)  trailing  whitespace  characters  are
  3521.            stripped off  each line  of the file as it is saved. When
  3522.            this flag is off this process is suppressed.
  3523.  
  3524.            F8                                            Search down
  3525.  
  3526.            
  3527.            NED v1.7x User's Guide                           Page  65
  3528.  
  3529.            This  key   begins  searching  down  for  the  expression
  3530.            previously entered with the SPECIFY command. If no search
  3531.            expression exists,  NED will  beep. If  no match is found
  3532.            NED displays the message:
  3533.  
  3534.                 (Pattern) not Found
  3535.  
  3536.            If a  matching pattern  is found  the cursor is placed at
  3537.            the beginning of the pattern and it is displayed in bold.
  3538.            You may continue searching down by pressing F8 again.
  3539.  
  3540.            SHIFT F8                                        Search up
  3541.  
  3542.            This key  has exactly  the same  function as  the F8  key
  3543.            except that  it searches  up from the cursor position for
  3544.            the search expression.
  3545.  
  3546.            CTRL F8                                   Search from top
  3547.  
  3548.            This key  has exactly  the same  function as  the F8  key
  3549.            except that it searches down from the top of the file for
  3550.            the  search  expression.  This  is  a  shortcut  for  the
  3551.            following keystrokes:
  3552.  
  3553.                 <Ctrl Shift Home><F8>
  3554.  
  3555.            If the pattern is not found the cursor will remain at the
  3556.            beginning of the first line.
  3557.  
  3558.            F9                                              Goto mark
  3559.  
  3560.            This key  takes the  cursor to the line and column of the
  3561.            marker and displays the line in bold. If no mark has been
  3562.            set in the current area, NED displays the message:
  3563.  
  3564.                 Mark Not Found !
  3565.  
  3566.            You must have previously marked the line with SHIFT F9.
  3567.  
  3568.            SHIFT F9                                  Set/remove mark
  3569.  
  3570.            This key  sets a  mark at  the current line and column of
  3571.            the cursor. The line is displayed in bold and will remain
  3572.            so until  the mark is removed by pressing SHIFT F9 again.
  3573.            When a mark is set, NED displays the message:
  3574.  
  3575.                 Mark set
  3576.  
  3577.            and:
  3578.  
  3579.                 Mark removed
  3580.  
  3581.            when a  mark is  removed. Each of the  ten areas can have
  3582.            its own marker.
  3583.  
  3584.            CTRL F9                                        Auto-entab
  3585.  
  3586.            This key  flips the  auto-entab flag on or off. This flag
  3587.            
  3588.            NED v1.7x User's Guide                           Page  66
  3589.  
  3590.            tells NED  whether to  automatically entab a file when it
  3591.            is written to disk. NED displays the message:
  3592.  
  3593.                 Auto-entab on/off
  3594.  
  3595.            when this key is pressed. See the NTAB command in section
  3596.            5.1 for  further details  and section  5.3 for details on
  3597.            the ENTAB statement in CONFIG.NED.
  3598.  
  3599.            F10                                         Status screen
  3600.  
  3601.            This key  displays the Status screen. See section 3.5 for
  3602.            a description  of this screen. Press any key to return to
  3603.            your file.
  3604.  
  3605.            You may  change areas  by moving  the current  area arrow
  3606.            with the UP or DOWN keys or by entering the number of the
  3607.            area you  wish to  change to.  If you  choose an unopened
  3608.            area you will be returned to your original file.  SHIFT
  3609.  
  3610.            F10                                             Save file
  3611.  
  3612.            This key  writes the  current  file  to  disk.  It  is  a
  3613.            shortcut for the following keystrokes:
  3614.  
  3615.                 <Esc>W<Enter><Esc>
  3616.  
  3617.            CTRL F10                                       Auto-detab
  3618.  
  3619.            This key  flips the  auto-detab flag on or off. This flag
  3620.            tells NED  whether to  automatically detab a file when it
  3621.            is read from disk. NED displays the message:
  3622.  
  3623.                 Auto-detab on/off
  3624.  
  3625.            when this key is pressed.
  3626.  
  3627.            See the  DETAB command in section 5.1 for further details
  3628.            and section  5.3 for  details on  the DETAB  statement in
  3629.            CONFIG.NED.
  3630.  
  3631.            ALT A                                       Goto column 1
  3632.  
  3633.            This key moves the cursor to the first column of the Edit
  3634.            window. If the FIRSTCOL statement in CONFIG.NED is set to
  3635.            '0' this  will be  displayed as  '0' otherwise it will be
  3636.            displayed as '1' in the System window.
  3637.  
  3638.            ALT B                                      Erase to start
  3639.  
  3640.            This key blanks the line from the current cursor position
  3641.            to the beginning of the line.
  3642.  
  3643.            ALT C                                      Centre justify
  3644.  
  3645.            This key  centre justifies  the current line. If the line
  3646.            is less  than or  equal to  80 characters in length it is
  3647.            centred over  80 characters. If it is longer, the line is
  3648.            
  3649.            NED v1.7x User's Guide                           Page  67
  3650.  
  3651.            centred over 256 characters. If word wrap is on, NED will
  3652.            centre the  current line  using the  right hand margin if
  3653.            possible.
  3654.  
  3655.            ALT D                                        Erase to end
  3656.  
  3657.            This key erases the line from the current cursor position
  3658.            to the  end of  the line. This key has the same effect in
  3659.            Command mode.
  3660.  
  3661.            ALT E                                          End window
  3662.  
  3663.            This key moves the cursor to the right most column of the
  3664.            Edit window.
  3665.  
  3666.            ALT F                                          Field copy
  3667.  
  3668.            This key  copies one  character from  the line above (the
  3669.            source line)  at  the  current  cursor  position  on  the
  3670.            current line  (the target  line) and moves the cursor one
  3671.            space to  the right.  SHIFT ALT F does the same except it
  3672.            copies a  character from the line below. If insert is on,
  3673.            the copied  character is  inserted into  the current line
  3674.            and no  more than  256 characters  will be allowed on the
  3675.            target line. NED will beep if you attempt to insert more.
  3676.  
  3677.            Characters will  not be  copied off the end of the source
  3678.            line. If  you are on the first line of the file and press
  3679.            ALT F,  NED will  beep similarly  if you  are on the last
  3680.            line and  press SHIFT  ALT F  NED  will  also  beep.  For
  3681.            example, with the source line:
  3682.  
  3683.                 The rain in Spain
  3684.  
  3685.            if the cursor is placed on the next line under the 'S' in
  3686.            'Spain' and  ALT F is pressed five times, the result will
  3687.            be:
  3688.  
  3689.                 The rain in Spain
  3690.                             Spain
  3691.  
  3692.            ALT G                                      Line case flip
  3693.  
  3694.            This key  flips the  case of the current line. ALT G also
  3695.            works in  conjunction with the left and right SHIFT keys.
  3696.  
  3697.            LEFT SHIFT  ALT G  will only flip lowercase letters RIGHT
  3698.            SHIFT ALT G will only flip uppercase letters. For example
  3699.            if you press ALT G on the following line:
  3700.  
  3701.                 The Rain In Spain
  3702.  
  3703.            it will become:
  3704.  
  3705.                 tHE rAIN iN sPAIN
  3706.  
  3707.            If you press LEFT SHIFT ALT G it will become:
  3708.  
  3709.            
  3710.            NED v1.7x User's Guide                           Page  68
  3711.  
  3712.                 THE RAIN IN SPAIN
  3713.  
  3714.            If you press RIGHT SHIFT ALT G it will become:
  3715.  
  3716.                 the rain in spain
  3717.  
  3718.            ALT H                              Insert Filename string
  3719.  
  3720.            This key  inserts the  current filename  into the current
  3721.            line at  the cursor  position. If  the cursor is past the
  3722.            end of the line, the filename will be appended to the end
  3723.            of the  line. The  string format  will be the same as the
  3724.            area's filename in the first line of the System window.
  3725.  
  3726.            ALT I                                         Auto-indent
  3727.  
  3728.            This key  flips the Auto-indent flag on or off. This flag
  3729.            tells NED  whether to  indent the  cursor under the first
  3730.            non whitespace  character of  the previous  line when you
  3731.            press ENTER.
  3732.  
  3733.            The status  of this flag is shown on line 1 of the system
  3734.            window (I)  being bold  if on.  The default  is off. This
  3735.            flag  can  also  be  set  with  AUTOINDENT  statement  in
  3736.            CONFIG.NED, see section 5.3 for details.
  3737.  
  3738.            ALT K                                          Erase line
  3739.  
  3740.            This key  blanks the  current line.  This should  not  be
  3741.            confused with SHIFT F2 which removes the current line.
  3742.  
  3743.            ALT L                                        Left justify
  3744.  
  3745.            This key  left justifies  the current  line, removing all
  3746.            leading whitespaces.
  3747.  
  3748.            ALT M                                 Character case flip
  3749.  
  3750.            This key flips the case of the character under the cursor
  3751.            (e.g. 'm'  to 'M'  or 'M'  to 'm'). LEFT SHIFT ALT M will
  3752.            only flip  lower case  letters and RIGHT SHIFT ALT M will
  3753.            only flip  upper case  letters. After  the character  has
  3754.            been flipped the cursor is moved one space to the right.
  3755.  
  3756.            ALT N                                     Start next line
  3757.  
  3758.            This key moves the cursor to the first column of the next
  3759.            line.
  3760.  
  3761.            ALT O                                        First column
  3762.  
  3763.            This key flips the first column flag on or off. This flag
  3764.            tells NED  whether the  first column is to be referred to
  3765.            as '1' or '0'.
  3766.  
  3767.            Note that  changes made  to this  flag will  be reflected
  3768.            anywhere that  NED uses  column numbers, for example with
  3769.            the GOTO  command and the ruler. The default is off. This
  3770.            
  3771.            NED v1.7x User's Guide                           Page  69
  3772.  
  3773.            flag  can   also  be   set  with  FIRSTCOL  statement  in
  3774.            CONFIG.NED, see section 5.3 for details.
  3775.  
  3776.            ALT P                                 Start previous line
  3777.  
  3778.            This key  moves the  cursor to  the first  column of  the
  3779.            previous line.
  3780.  
  3781.            ALT Q                                Delete previous word
  3782.  
  3783.            This key  deletes the previous word (the word to the left
  3784.            of the  cursor). The  text to  the right of the cursor is
  3785.            dragged to  the left  accordingly. This key has no effect
  3786.            if you are on the first column of the line.
  3787.  
  3788.            A word  is defined  as a character or group of characters
  3789.            surrounded by  one or  more interword delimiters. See the
  3790.            INTERWORD command in section 5.1 for more details.
  3791.  
  3792.            ALT R                                       Right justify
  3793.  
  3794.            This key right justifies the current line. If the line is
  3795.            less than  or equal  to 80  characters in  length, it  is
  3796.            justified over  80 characters.  If it is longer, the line
  3797.            is justified over 256 characters. If word wrap is on, NED
  3798.            will right  justify the current line using the right hand
  3799.            margin if possible.
  3800.  
  3801.            ALT S                                        Start window
  3802.  
  3803.            This key  moves the cursor to the left most column of the
  3804.            Edit window.
  3805.  
  3806.            ALT T                                            Hard-tab
  3807.  
  3808.            This key  flips the  hard-tab flag  on or  off. This flag
  3809.            tells NED  whether to  treat the  TAB  key  as  a  cursor
  3810.            movement key  when off,  or to insert hard tab characters
  3811.            into the  file if  on. The  default setting  is off. This
  3812.            flag  can   also  be   set  with   HARDTAB  statement  in
  3813.            CONFIG.NED, see section 5.3 for details.
  3814.  
  3815.            ALT U                                                Undo
  3816.  
  3817.            This key  will undo  edits made within a line. This means
  3818.            that the  line is  restored to  its original state before
  3819.            you changed it.
  3820.  
  3821.            You may  restore the  changes you  have made  to the line
  3822.            before you  first pressed  ALT U by pressing ALT U again.
  3823.            There are  certain situations  where ALT  U will  have no
  3824.            effect on  the current  line. Firstly,  changes made to a
  3825.            line cannot  be undone  once you  move to  another  line.
  3826.            Secondly,  certain  functions  reset  the  line  so  that
  3827.            further edits  only may  be undone.  These functions  are
  3828.            split and  join line  entry of  the Block  Mode entry  of
  3829.            Command  mode   entry  of  Status  screen  shell  to  DOS
  3830.            calculator ASCII tables and the Help system.
  3831.            
  3832.            NED v1.7x User's Guide                           Page  70
  3833.  
  3834.  
  3835.            ALT V                                           Word wrap
  3836.  
  3837.            This key  toggles word  wrap on  or off.  When on and the
  3838.            cursor is  moved past  the right hand margin, if the next
  3839.            character entered is an interword delimiter NED will open
  3840.            up a  new line.  If  the  character  entered  is  not  an
  3841.            interword delimiter,  NED will  split  the  line  at  the
  3842.            beginning of the previous word. If a previous word cannot
  3843.            be found the character will be added to the current line.
  3844.  
  3845.            If you  insert text  into a  line, NED will not wrap text
  3846.            that is moved past the right hand margin until the cursor
  3847.            passes the  margin itself. The cursor remains in the same
  3848.            relative position  to the  text wrapped  to the new line.
  3849.  
  3850.            The status  of this flag is shown on line 1 of the system
  3851.            window (W)  being bold if on. The default setting is off.
  3852.  
  3853.            This flag  can also be set with the WORDWRAP statement in
  3854.            CONFIG.NED, see  section 5.3 for details. See section 3.4
  3855.            for details on using word wrap.
  3856.  
  3857.            ALT W                                    Delete next word
  3858.  
  3859.            This key  deletes the next word (the word to the right of
  3860.            the cursor). The text to the right of the deleted word is
  3861.            dragged to  the left  accordingly. A word is defined as a
  3862.            character or  group of  characters surrounded  by one  or
  3863.            more interword  delimiters. See  the INTERWORD command in
  3864.            section 5.1 for more details.
  3865.  
  3866.            ALT Y                             Insert Date/Time string
  3867.  
  3868.            This key  inserts the  current date  and  time  into  the
  3869.            current line  at the  cursor position.  If the  cursor is
  3870.            past the  end of  the line,  the date/time string will be
  3871.            appended to  the current  line. The  string  format  will
  3872.            conform to  the DATEFMT statement in CONFIG.NED. Assuming
  3873.            the date  format 'dmy/',  the string  will appear  in the
  3874.            format:
  3875.  
  3876.                 dayname dd/mm/yyyy  hh:mm {am|pm}
  3877.  
  3878.            for example:
  3879.  
  3880.                 Thursday 18/05/1989  3:03 pm
  3881.  
  3882.            The string is derived from the system clock.
  3883.  
  3884.            ALT Z                                          Column 256
  3885.  
  3886.            This key  takes the cursor to column 256. If the FIRSTCOL
  3887.            statement in  CONFIG.NED is  set  to  '0'  this  will  be
  3888.            displayed as  '255' otherwise  it will  be  displayed  as
  3889.            '256' in the System window.
  3890.  
  3891.            ALT -                                                Snow
  3892.            
  3893.            NED v1.7x User's Guide                           Page  71
  3894.  
  3895.  
  3896.            This key  is for  computers with CGA video adapters. With
  3897.            these adapters,  during a horizontal or vertical retrace,
  3898.            contention between  the processor and the screen produces
  3899.            an unsightly  snow or  flickering on  the screen. Because
  3900.            NED writes  directly to  the video  adapter the ALT - key
  3901.            will  synchronize   screen  writing   with  the   retrace
  3902.            interval. This produces a slightly slower display but one
  3903.            that is a lot clearer.
  3904.  
  3905.            With MDA,  HERCULES, EGA  or VGA  adapters this  is not a
  3906.            problem and  you should  therefore ignore it. This option
  3907.            can also  be set  with the  SNOW statement in CONFIG.NED,
  3908.            see section 5.3 for details.
  3909.  
  3910.            ALT =                                    43/50 line modes
  3911.  
  3912.            This option  is for  EGA and  VGA displays only. This key
  3913.            toggles between  25 and  43/50 line  display modes.  This
  3914.            option can  also  be  set  with  the  MODE  statement  in
  3915.            CONFIG.NED. See section 5.3 for details.
  3916.  
  3917.            
  3918.  
  3919.            ALT SPACE BAR                        Turn ruler on or off
  3920.  
  3921.            This key  turns the ruler display off or on. When on, the
  3922.            ruler is  displayed on  the second  line  of  the  System
  3923.            window when  the cursor  is in the Edit window. The ruler
  3924.            defaults to on. When you enter Command mode, the ruler is
  3925.            always cleared.  You can  set whether  the ruler is on or
  3926.            off when  NED is  loaded  with  the  RULER  statement  in
  3927.            CONFIG.NED, see section 5.3 for details.
  3928.  
  3929.            CTRL 2/CTRL @                                        Quit
  3930.  
  3931.            This key  allow you to quit NED. It is a shortcut for the
  3932.            
  3933.            NED v1.7x User's Guide                           Page  72
  3934.  
  3935.            following keystrokes:
  3936.  
  3937.                 <Esc>Q<Enter>
  3938.  
  3939.            Depending on  the type  of keyboard you use, one of these
  3940.            keys will  work. See  section 5.1 for details on the QUIT
  3941.            command.
  3942.  
  3943.            CTRL ESC                                      Hard Escape
  3944.  
  3945.            This key  allows you  to insert  an escape character (chr
  3946.            27) into your file.
  3947.  
  3948.            CTRL M                                   Split line enter
  3949.  
  3950.            When word  wrap is  off, this key splits the current line
  3951.            at the cursor position. All characters from the cursor to
  3952.            the end  of the  line will  form a  new  line  under  the
  3953.            current line.
  3954.  
  3955.            After the  line is  split, the  cursor is  moved  to  the
  3956.            beginning of  the new  line. If  word  wrap  is  on,  the
  3957.            functions of CTRL M and ENTER are reversed.
  3958.  
  3959.  
  3960.            
  3961.            NED v1.7x User's Guide                           Page  73
  3962.  
  3963.            *********************************************************
  3964.            NED v1.7x User's Guide
  3965.            Section 5.3    Configuration Reference
  3966.  
  3967.            Introduction
  3968.            This section  describes all  the statements  that may  be
  3969.            used in  the start  up file  CONFIG.NED. These statements
  3970.            are used to configure NED to your requirements.
  3971.  
  3972.  
  3973.            AUTOINDENT
  3974.            Syntax: AUTOINDENT={ON|OFF}
  3975.  
  3976.            This statement sets whether Auto-indent is on or off when
  3977.            NED is  loaded. If  this statement  is  not  included  in
  3978.            CONFIG.NED, Auto-  indent defaults  to off. See the ALT I
  3979.            function in section 5.2 for further details.
  3980.  
  3981.  
  3982.            BACKUP
  3983.            Syntax: BACKUP=directory
  3984.  
  3985.            This  statement   sets  the   backup  directory.  If  the
  3986.            directory does  not exist  NED will  prompt you to create
  3987.            it. If  this statement  is not included in CONFIG.NED and
  3988.            the BACKUP command is not issued, backups will be written
  3989.            to the  current directory.  See  the  BACKUP  command  in
  3990.            section 5.1 for further details.
  3991.  
  3992.  
  3993.            COLOUR
  3994.            Syntax: COLOUR=fore,back[,fore,back]
  3995.  
  3996.            This statement allows you set the default colours used by
  3997.            NED. The  first two  parameters are  the  foreground  and
  3998.            background of  the Edit  window.  These  values  must  be
  3999.            numbers between  0 and 7. The third and fourth parameters
  4000.            are optional  and allow  you to  set the  foreground  and
  4001.            background colours  of the System window. For example the
  4002.            following statement:
  4003.  
  4004.                 COLOUR=7,1,0,7
  4005.  
  4006.            will set  white text  on a  blue background  in the  Edit
  4007.            window, and  black text  on a  white  background  in  the
  4008.            System window.  Note that  this statement  will not  work
  4009.            with a  monochrome adapter  (MDA or  HERCULES).  Monitors
  4010.            that are  not colour  but display  shades  of  grey  will
  4011.            respond to  this statement.  If  this  statement  is  not
  4012.            included in CONFIG.NED, NED will default to the following
  4013.            settings:
  4014.  
  4015.                 COLOUR=7,0,0,7
  4016.  
  4017.            See section 4.9 for a table of the colour numbers.
  4018.  
  4019.  
  4020.            DATEFMT
  4021.            
  4022.            NED v1.7x User's Guide                           Page  74
  4023.  
  4024.            Syntax: DATEFMT=formatstring
  4025.  
  4026.            This statement  allows you  to specify  the format of the
  4027.            date string  displayed in  the Status screen, insert date
  4028.            function and  in File  Display mode.  The formatstring is
  4029.            made of  four characters.  The first  three  specify  the
  4030.            order of day, month and year the last character specifies
  4031.            the separator.
  4032.  
  4033.                Symbol    Meaning
  4034.  
  4035.                D         Day
  4036.                M         Month
  4037.                Y         Year
  4038.                char      Separator character
  4039.  
  4040.            If this  statement is not included in CONFIG.NED, DATEFMT
  4041.            will default to the following:
  4042.  
  4043.                 DATEFMT=DMY/
  4044.  
  4045.            which  will  display  the  date  as  Day/Month/Year.  The
  4046.            following example will set the date to American format:
  4047.  
  4048.                 DATEFMT=MDY-
  4049.  
  4050.  
  4051.            DETAB
  4052.            Syntax: DETAB={ON|OFF}
  4053.  
  4054.            This statement  sets the  auto-detab flag on or off. When
  4055.            this feature  is on, NED automatically replaces hard-tabs
  4056.            with spaces when a file is read. If this statement is not
  4057.            included in  CONFIG.NED, DETAB  will default  to off. See
  4058.            the DETAB command in section 5.1 for further details.
  4059.  
  4060.  
  4061.            ENTAB
  4062.            Syntax: ENTAB={ON|OFF}
  4063.  
  4064.            This statement  sets the  auto-entab flag on or off. When
  4065.            this feature  is on,  NED automatically  replaces  spaces
  4066.            with hard  tabs when  a file  is written to disk. If this
  4067.            statement is  not  included  in  CONFIG.NED,  ENTAB  will
  4068.            default to  off. See  the NTAB command in section 5.1 for
  4069.            further details.
  4070.  
  4071.  
  4072.            FILE
  4073.            Syntax: FILE=pathname
  4074.  
  4075.            This statement specifies a file that will be loaded if no
  4076.            pathname or  File List  is specified  on the  DOS command
  4077.            line. This is useful if you are only working on one file.
  4078.  
  4079.            Saving CONFIG.NED  with CTRL  F4 will  assign the current
  4080.            filename to  this statement.  See section 5.2 for details
  4081.            on the CTRL F4 function.
  4082.            
  4083.            NED v1.7x User's Guide                           Page  75
  4084.  
  4085.  
  4086.            If this  statement is  not included  in CONFIG.NED and no
  4087.            pathname or File List is specified NED will return you to
  4088.            DOS with the following message:
  4089.  
  4090.                 err!:  no file to edit
  4091.                 usage: NED <filename|wildcard|@filename> <...>
  4092.  
  4093.  
  4094.            FIRSTCOL
  4095.            Syntax: FIRSTCOL={1|0}
  4096.  
  4097.            This statement  allows you to determine whether the first
  4098.            column of  a line  is displayed  as '0'  or '1'.  If this
  4099.            statement is  not included  in CONFIG.NED,  FIRSTCOL will
  4100.            default to column 1.
  4101.  
  4102.            This statement  is useful  for writing  screen layouts in
  4103.            languages where the first screen column is referred to as
  4104.            '0'. The  first column may be toggled with the ALT O key.
  4105.            See section 5.2 for details.
  4106.  
  4107.  
  4108.            GOTO
  4109.            Syntax: GOTO=line[,column]
  4110.  
  4111.            This statement  tells NED  to place  the  cursor  at  the
  4112.            specified line and optional column of the first file that
  4113.            is loaded.  This is  useful  if  you  are  working  on  a
  4114.            particular line  in a  large file.  Saving the CONFIG.NED
  4115.            with using  CTRL F4  will assign  the  current  line  and
  4116.            column to  this  statement.  If  this  statement  is  not
  4117.            included in  CONFIG.NED, GOTO  will default  to the first
  4118.            line and  column of the file. See section 5.1 for details
  4119.            on the  GOTO command.  Note that  if  you  have  set  the
  4120.            FIRSTCOL parameter  to '0',  and the  following statement
  4121.            appeared in CONFIG.NED:
  4122.  
  4123.                GOTO=1,1
  4124.  
  4125.            then the  cursor will  be placed  at the second column of
  4126.            line 1.
  4127.  
  4128.  
  4129.            HARDTAB
  4130.            Syntax: HARDTAB={ON|OFF}
  4131.  
  4132.            This statement  presets the hard-tab flag on or off. When
  4133.            this flag  is on  the TAB key inserts tab characters into
  4134.            the  file.   If  this   statement  is   not  included  in
  4135.            CONFIG.NED, HARDTAB  will default  to off.  See the ALT T
  4136.            function in section 5.2 for further details.
  4137.  
  4138.  
  4139.            INSERT
  4140.            Syntax: INSERT={ON|OFF}
  4141.  
  4142.            This statement  sets insert  on or  off. If it is on, NED
  4143.            
  4144.            NED v1.7x User's Guide                           Page  76
  4145.  
  4146.            will be in insert mode upon loading. If this statement is
  4147.            not included  in CONFIG.NED, NED will default to overtype
  4148.            mode. See section 5.2 for details on the INS key.
  4149.  
  4150.  
  4151.            INTENSITY
  4152.            Syntax: INTENSITY=boldcolour[,boldcolour]
  4153.  
  4154.            This statement allows you to set the bold colours used by
  4155.            NED. The  first parameter  sets the  bold  for  the  Edit
  4156.            window, the second optionally sets the bold attribute for
  4157.            the System  window. The  value of  boldcolour should be a
  4158.            number between  0 and  15. The  bold attribute is used to
  4159.            highlight  important   information  in   many  of   NED's
  4160.            functions such  as displaying  search finds  or showing a
  4161.            marker. The following example:
  4162.  
  4163.                 INTENSITY=12,15
  4164.  
  4165.            will set  the Edit  window intensity  to bold red and the
  4166.            System window  intensity to bold white. If this statement
  4167.            is not  included in CONFIG.NED, INTENSITY will default to
  4168.            the following settings:
  4169.  
  4170.                 INTENSITY=15,15
  4171.  
  4172.  
  4173.            INTERWORD
  4174.            Syntax: INTERWORD=char0[,char1...charN]
  4175.  
  4176.            This statement  presets the  interword delimiter  set. To
  4177.            include a space in the set you must embed it within other
  4178.            characters.  If   this  statement   is  not  included  in
  4179.            CONFIG.NED,  INTERWORD  will  default  to  a  space.  See
  4180.            section 5.1  for details  on the  INTERWORD command.  The
  4181.            following example:
  4182.  
  4183.                 INTERWORD=; ,:
  4184.  
  4185.            will set  the interword  delimiter set to a semi-colon, a
  4186.            space, a comma and a colon.
  4187.  
  4188.  
  4189.            MACROS
  4190.            Syntax: MACROS=macrofile
  4191.  
  4192.            This statement  tells NED  to load a predefined macrofile
  4193.            when starting  up. The  default extension is .MCR, so the
  4194.            extension need  not be  given. You  can  specify  a  full
  4195.            pathname for  the  macrofile.  See  the  USE  command  in
  4196.            section 5.1 for further details.
  4197.  
  4198.  
  4199.            LAYOUT
  4200.            Syntax: LAYOUT=length,topmargin,bottommargin[,leftmargin]
  4201.  
  4202.            This statement  sets the  print page  dimensions. If this
  4203.            statement is  not included  in  CONFIG.NED,  LAYOUT  will
  4204.            
  4205.            NED v1.7x User's Guide                           Page  77
  4206.  
  4207.            default to the following:
  4208.  
  4209.                 LAYOUT=66,3,3,0
  4210.  
  4211.            which sets  the page  length to  66 lines,  the  top  and
  4212.            bottom margins  to 3  lines and  the  left  margin  to  0
  4213.            characters. See  the YLAYOUT  command in  section 5.1 for
  4214.            details on page layouts.
  4215.  
  4216.  
  4217.            MAXLINES
  4218.            Syntax: MAXLINES=number
  4219.  
  4220.            This statement  sets the  maximum number  of lines a file
  4221.            may have.  This number  must be  between 1  and 10240. If
  4222.            this statement  is not  included in  CONFIG.NED, MAXLINES
  4223.            will default to 5120.
  4224.  
  4225.            If you  are only  working on small files say no more than
  4226.            1000 lines then the statement:
  4227.  
  4228.                 MAXLINES=1200
  4229.  
  4230.            will give  a considerable memory saving over the default.
  4231.            This is because all open areas are allocated room for the
  4232.            maximum number  of lines.  You can decrease the number of
  4233.            lines if  you find you are running out of memory. You can
  4234.            increase the  number of  lines if you wish to work on one
  4235.            large file.
  4236.  
  4237.  
  4238.            MODE
  4239.            Syntax: MODE={CGA|EGA|EGA43|HERC|MDA|VGA}
  4240.  
  4241.            This statement  tells NED  what type  of monitor  you are
  4242.            using. NED  determines whether  you are using an EGA, CGA
  4243.            or MDA monitor when loading. If, however, you are using a
  4244.            Hercules or a compatible monitor, MODE must be set to:
  4245.  
  4246.                MODE=HERC
  4247.  
  4248.            If you  have an EGA or VGA or compatible monitor, you may
  4249.            instruct NED  to load up in either 43 or 50 line modes by
  4250.            specifying one of the following statements:
  4251.  
  4252.                 MODE=EGA
  4253.                 MODE=EGA43
  4254.                 MODE=VGA
  4255.                 MODE=VGA50
  4256.  
  4257.            If this  statement is not included in CONFIG.NED, and NED
  4258.            cannot determine  the monitor  type, MODE will default to
  4259.            CGA.
  4260.  
  4261.  
  4262.            RULER
  4263.            Syntax: RULER={ON|OFF}
  4264.  
  4265.            
  4266.            NED v1.7x User's Guide                           Page  78
  4267.  
  4268.            This statement  tells NED  whether to  display the  ruler
  4269.            when NED  is loaded. ALT SPACE BAR also toggles the ruler
  4270.            on  or   off.  If  this  statement  is  not  included  in
  4271.            CONFIG.NED, the ruler will default to on. See section 2.2
  4272.            for details on the ruler.
  4273.  
  4274.  
  4275.            SNOW
  4276.            Syntax: SNOW={ON|OFF}
  4277.  
  4278.            This statement sets the display speed to synchronised for
  4279.            CGA or  fast for  MDA, HERC,  EGA and  VGA. When set off,
  4280.            screen writing  is synchronised with the retrace interval
  4281.            thus avoiding  SNOW on  the CGA. If this statement is not
  4282.            included in  CONFIG.NED, and you have a CGA monitor, SNOW
  4283.            will default  to off,  otherwise SNOW will default to on.
  4284.            See section 5.2 for details on the ALT - function.
  4285.  
  4286.  
  4287.            SORT
  4288.            Syntax: SORT={DIR|EXT|FILE|TIME|SIZE}
  4289.  
  4290.            This  statement  sets  the  type  of  sort  used  in  the
  4291.            directory window  of  the  File  Display  mode.  If  this
  4292.            statement  is  not  included  in  CONFIG.NED,  SORT  will
  4293.            default to DIR. See section 4.3 and 5.5 for more details.
  4294.  
  4295.  
  4296.            SPOOL
  4297.            Syntax: SPOOL={0|1}[,timeslice]
  4298.  
  4299.            This  statement  controls  NED's  print  while  you  work
  4300.            spooler. If  you specify '1' all printing will be sent to
  4301.            the  spooler  in  background.  If  you  specify  '0'  all
  4302.            printing will  be in  foreground. The  optional timeslice
  4303.            parameter  allows  you  to  adjust  the  amount  of  time
  4304.            allocated to  the foreground  (your keyboard usage). This
  4305.            value can be between 1 and 8192. The default timeslice is
  4306.            128. The  larger the  timeslice, the  less time  will  be
  4307.            allocated to  printing. If this statement is not included
  4308.            in CONFIG.NED, SPOOL will default to the following:
  4309.  
  4310.                 SPOOL=0,128
  4311.  
  4312.  
  4313.            STRIP
  4314.            Syntax: STRIP={ON|OFF}
  4315.  
  4316.            This statement  presets the  strip flag  on or  off. When
  4317.            this flag  is  on,  trailing  whitespace  characters  are
  4318.            stripped from the end of each line as the file is written
  4319.            to disk.  You may for some reason desire to have trailing
  4320.            whitespace characters preserved when the file is written.
  4321.            In this  case set  the flag  to off. If this statement is
  4322.            not included in CONFIG.NED, STRIP will default to on.
  4323.  
  4324.  
  4325.            TABSET
  4326.            
  4327.            NED v1.7x User's Guide                           Page  79
  4328.  
  4329.            Syntax: TABSET=column1[,column2...,columnN]
  4330.  
  4331.            This statement  sets the  tabstop template  to the values
  4332.            given. If you specify only one column parameter, tabs are
  4333.            set to  a width  of column-1  for the entire template. If
  4334.            more  than   one  column   is  given,  tabstops  are  set
  4335.            accordingly. The  difference between the last two columns
  4336.            is used  to set the remaining tabstops. If this statement
  4337.            is not included in CONFIG.NED, TABSET will default to the
  4338.            following:
  4339.  
  4340.                 TABSET=5
  4341.  
  4342.            See  the  TABSET  command  in  section  5.1  for  further
  4343.            details.
  4344.  
  4345.  
  4346.            WORDWRAP
  4347.            Syntax: WORDWRAP={0|1}[,rightmargin]
  4348.  
  4349.            This statement  controls NED's  word wrap  system. If you
  4350.            specify '1',  NED will start up with word wrap on. If you
  4351.            specify  '0'   word  wrap   will  be  off.  The  optional
  4352.            rightmargin parameter  allows you  to set  the right hand
  4353.            margin used with word wrap centre and right justify. This
  4354.            value can  be between 1 and 256. If this statement is not
  4355.            included in  CONFIG.NED, WORDWRAP  will  default  to  the
  4356.            following:
  4357.  
  4358.                 WORDWRAP=0,65
  4359.  
  4360.  
  4361.            
  4362.            NED v1.7x User's Guide                           Page  80
  4363.  
  4364.            *********************************************************
  4365.            NED v1.7x User's Guide
  4366.            Section 5.4    Block Mode Reference
  4367.  
  4368.            Introduction
  4369.            This section describes the keys that can be used in Block
  4370.            Mode described in section 3.4 above. Some keys compliment
  4371.            normal functions  keys that  operate on individual lines.
  4372.  
  4373.            UP/DOWN ARROWS  Previous/next line  These keys enlarge or
  4374.            shrink the  block over  the previous or next line. If you
  4375.            press UP  or DOWN on the first and last lines of the file
  4376.            respectively, NED will beep.
  4377.  
  4378.            PGUP/PGDN                              Previous/next page
  4379.  
  4380.            These keys  enlarge or shrink the block over the previous
  4381.            or next  page. These  keys will  have no  effect  at  the
  4382.            beginning or end of the file.
  4383.  
  4384.            CTRL HOME/CTRL END                     Top/bottom of file
  4385.  
  4386.            These keys  enlarge or shrink the block to the top or the
  4387.            bottom of the file.
  4388.  
  4389.            LEFT/RIGHT ARROWS                 Previous/next character
  4390.  
  4391.            These keys  work with intra-line blocks only. They expand
  4392.            or shrink the block to the previous or next character.
  4393.  
  4394.            CTRL LEFT/CTRL RIGHT                   Previous/next word
  4395.  
  4396.            These keys  work with intra-line blocks only. They expand
  4397.            or shrink the block to the previous or next word.
  4398.  
  4399.            HOME/END                                Start/end of line
  4400.  
  4401.            These keys work with intra-line blocks only. The HOME key
  4402.            expands the  block from  the cursor position to the start
  4403.            of the  line. The  END key  expands the  block  from  the
  4404.            cursor position  to the  end of  the line. If the current
  4405.            cursor position  is to the right of the starting position
  4406.            of the  cursor when you entered Block Mode (anchor point)
  4407.            and you  press HOME, the block will be resized so that it
  4408.            is bound by the new cursor position and the anchor point.
  4409.            The reverse applies for the END key.
  4410.  
  4411.            INS or +                                    Copy to scrap
  4412.  
  4413.            This key  copies the  block  to  the  scrap  buffer.  The
  4414.            original contents  of the  scrap buffer  is lost.  If the
  4415.            block was inter-line, NED displays the message:
  4416.  
  4417.                number lines copied to scrap
  4418.  
  4419.            After the block has been copied, you are returned to edit
  4420.            mode.
  4421.  
  4422.            
  4423.            NED v1.7x User's Guide                           Page  81
  4424.  
  4425.            DEL or -                                     Cut to scrap
  4426.  
  4427.            This key  cuts (deletes)  the block  to the scrap buffer.
  4428.            The original contents of the scrap buffer is lost. If the
  4429.            block was inter-line, NED displays the message:
  4430.  
  4431.                number lines cut to scrap
  4432.  
  4433.            After the  block has  been cut,  you are returned to edit
  4434.            mode.
  4435.  
  4436.            C                                          Centre justify
  4437.  
  4438.            This key centre justifies the block. Each line is centred
  4439.            separately. If  a line  is  less  than  or  equal  to  80
  4440.            characters in length it is centred over 80 characters. If
  4441.            it is longer, the line is centred over 256 characters. If
  4442.            word wrap  is on,  NED will  centre each  line using  the
  4443.            right hand margin if possible.
  4444.  
  4445.            L                                            Left justify
  4446.  
  4447.            This key left justifies the block. Each line is justified
  4448.            separately.
  4449.  
  4450.            R                                           Right justify
  4451.  
  4452.            This  key   right  justifies  the  block.  Each  line  is
  4453.            justified separately.  If a line is less than or equal to
  4454.            80  characters   in  length   it  is  justified  over  80
  4455.            characters. If  it is  longer, the line is justified over
  4456.            256 characters. If word wrap is on, NED will justify each
  4457.            line using the right hand margin if possible.
  4458.  
  4459.            S                                   Copy to search string
  4460.  
  4461.            This key works with intra-line blocks only. It copies the
  4462.            block to the search string. The original search string is
  4463.            lost. You  are returned  to edit  mode where you can then
  4464.            press
  4465.  
  4466.                F8/SHIFT F8/CTRL F8
  4467.  
  4468.            to begin searching. This  is a  short cut for the SPECIFY
  4469.            command.
  4470.  
  4471.            *                           Copy to last parameter string
  4472.  
  4473.            This key works with intra-line blocks only. It copies the
  4474.            block to  the last  Command mode  parameter  string.  The
  4475.            original last  parameter string is lost. You are returned
  4476.            to edit  mode where you can then enter Command mode (ESC)
  4477.            and press  F3  to  retrieve  the  string  for  your  next
  4478.            command.
  4479.  
  4480.            TAB/SHIFT TAB             Move block left/right a tabstop
  4481.  
  4482.            These keys  work with  inter-line blocks  only. They move
  4483.            
  4484.            NED v1.7x User's Guide                           Page  82
  4485.  
  4486.            the block  right or left one tabstop. The actual distance
  4487.            moved depends  on the  proximity  of  the  block  to  the
  4488.            nearest tabstop.
  4489.  
  4490.            If in  moving the  text, the line under or over flows, it
  4491.            will be  clipped or truncated accordingly. Therefore take
  4492.            care when  using SHIFT TAB as you cannot undo these keys.
  4493.            Once you  are satisfied  with the  position of the block,
  4494.            press ESC  to return to editing or issue one of the other
  4495.            Block Mode commands.
  4496.  
  4497.            SPACE BAR/BS                Move block left/right a space
  4498.  
  4499.            These keys  work with  inter-line blocks  only. They move
  4500.            the block  left or  right one  column. If  in moving  the
  4501.            text, the line under or over flows, it will be clipped or
  4502.            truncated accordingly.  Therefore take  care  when  using
  4503.            backspace as  you cannot  undo these  keys. Once  you are
  4504.            satisfied with  the position  of the  block, press ESC to
  4505.            return to  editing or  issue one  of the other Block Mode
  4506.            commands.
  4507.  
  4508.            F4                                  Enter/exit block mode
  4509.  
  4510.            F4 enters  or exits Block Mode. If you have only selected
  4511.            a block, pressing F4 will return you to edit mode with no
  4512.            changes. The  cursor will  be left  at the  start of  the
  4513.            block.
  4514.  
  4515.            ESC                                       Exit block mode
  4516.  
  4517.            ESC exits  block mode. If you have only selected a block,
  4518.            pressing ESC  will  return  you  to  edit  mode  with  no
  4519.            changes. The cursor will remain at the end of the block.
  4520.  
  4521.  
  4522.  
  4523.            
  4524.            NED v1.7x User's Guide                           Page  83
  4525.  
  4526.            *********************************************************
  4527.            NED v1.7x User's Guide
  4528.            Section 5.5    File Display Reference
  4529.  
  4530.            Introduction
  4531.            This section  describes the  keys available  in the  File
  4532.            Display mode.  This mode  can be used with the OPEN, USE,
  4533.            BACKUP, WRITE  and END commands. See section 4.3 for more
  4534.            details on using File Display mode.
  4535.  
  4536.            UP/DOWN ARROWS                         Previous/next file
  4537.  
  4538.            These keys  move the  selection bar  up or down in either
  4539.            the directory  window or  the File  List. Either  screens
  4540.            will scroll up or down if there are more entries than can
  4541.            be displayed in the current window.
  4542.  
  4543.            HOME/END                                  First/last file
  4544.  
  4545.            The  HOME/END   key  moves   the  selection  bar  to  the
  4546.            first/last entry  in either  the directory  window or the
  4547.            File List.
  4548.  
  4549.            PGUP/PGDN                              Previous/next page
  4550.  
  4551.            These keys  scroll the  directory  window  or  File  List
  4552.            window up or down one page.
  4553.  
  4554.            CTRL LEFT/CTRL RIGHT                   Previous/next file
  4555.  
  4556.            These keys move the selection bar to the previous or next
  4557.            entry in the directory window only.
  4558.  
  4559.            LEFT/RIGHT ARROWS                      Previous/next line
  4560.  
  4561.            These keys move the selection bar left or right one entry
  4562.            on the current line of directory window only.
  4563.  
  4564.            TAB                                     Move to File List
  4565.  
  4566.            This key  moves the  selection bar  between the directory
  4567.            window and  the File List. If there are no entries in the
  4568.            File List you will remain in the directory window.
  4569.  
  4570.            INSERT (INS)                            Copy file to list
  4571.  
  4572.            This key  works in  the directory  window only. It copies
  4573.            the currently selected entry to the end of the File List.
  4574.            If the  entry is a '.' or a '\' then all the entries from
  4575.            the directory are copied to the end of the File List.
  4576.  
  4577.            DELETE (DEL)                        Delete file from list
  4578.  
  4579.            This key  works in  the File  List only.  It deletes  the
  4580.            currently selected  entry. If it is the only entry in the
  4581.            list you will be moved over to the directory window.
  4582.  
  4583.            CTRL K                                        Delete list
  4584.            
  4585.            NED v1.7x User's Guide                           Page  84
  4586.  
  4587.  
  4588.            This key  works in the File List only. It deletes all the
  4589.            entries in  the list.  You will then be moved over to the
  4590.            directory window.
  4591.  
  4592.            CTRL F4                                        Write list
  4593.  
  4594.            This key  works in  the File  List only.  It  writes  the
  4595.            current File List to FILES.NED.
  4596.  
  4597.            ENTER                                         Select file
  4598.  
  4599.            This key  returns the  currently selected  file from  the
  4600.            directory window  or the  File List to which ever command
  4601.            was used  to enter File Display mode. This is most likely
  4602.            to be  a file to open with the OPEN command. If the entry
  4603.            is a  subdirectory or  a drive  (in the directory window)
  4604.            then NED  will change  to  the  drive  or  directory  and
  4605.            display its  contents. When  using File  Display with the
  4606.            BACKUP command,  only drives  and subdirectory  names are
  4607.            displayed. To  return a  directory to  the BACKUP command
  4608.            use CTRL ENTER.
  4609.  
  4610.            ESCAPE                                  Exit file display
  4611.  
  4612.            This key  aborts File Display mode and returns you to the
  4613.            command area.
  4614.  
  4615.            ALT D,T,F,S,X                              Sort directory
  4616.  
  4617.            These keys  sort the  entries in  the directory window as
  4618.            follows:
  4619.  
  4620.                D    Directory order
  4621.                F    Alphabetically
  4622.                S    File size
  4623.                T    Time/date
  4624.                X    Extension
  4625.  
  4626.            NED remembers  the  sort  used  when  you  re-enter  File
  4627.            Display mode.  The  default  sort  type  can  be  set  in
  4628.            CONFIG.NED with  the SORT  statement. See section 5.3 for
  4629.            details.
  4630.  
  4631.  
  4632.  
  4633.            
  4634.            NED v1.7x User's Guide                           Page  85
  4635.  
  4636.            *********************************************************
  4637.            NED v1.7x User's Guide
  4638.            Section 5.6    Regular Expression Reference
  4639.  
  4640.            Introduction
  4641.            This section  describes the  Regular Expression  Language
  4642.            used with  the SPECIFY  command. See section 5.1 for more
  4643.            details on this command. Regular expressions are a way of
  4644.            representing text  patterns in  a symbolic shorthand. The
  4645.            symbols used  to define  these expressions fall into five
  4646.            categories:
  4647.  
  4648.            Symbols that match a specific character
  4649.            Symbols that match any character
  4650.            Symbols that match a character's position on the line
  4651.            Symbols that match any of a set of characters or anything
  4652.            except a set of characters
  4653.            Symbols that let you match the previous symbol any number
  4654.            of times
  4655.  
  4656.            An expression  may be  made up of any or all of the above
  4657.            categories.
  4658.  
  4659.            CARAT (^)                                      Start line
  4660.  
  4661.            This symbol  matches any text at the beginning of a line.
  4662.            For example:
  4663.  
  4664.                 ^cat
  4665.  
  4666.            will match  the string "cat" only if it is located at the
  4667.            beginning of a line so that:
  4668.  
  4669.                 the cat
  4670.  
  4671.            would not be matched.
  4672.  
  4673.            DOLLAR ($)                                       End line
  4674.  
  4675.            This symbol  matches any  text at  the end of a line. For
  4676.            example:
  4677.  
  4678.                 cat$
  4679.  
  4680.            will match  the string "cat" only if it is located at the
  4681.            end of a line so that:
  4682.  
  4683.                 cat nap
  4684.  
  4685.            would not be matched.
  4686.  
  4687.            PERIOD (.)                                  Any character
  4688.  
  4689.            This symbol  matches any  one character.  Generally  this
  4690.            symbol by  itself will  always find  a match.  Its use is
  4691.            usually as a placeholder. For example:
  4692.  
  4693.                 c.t
  4694.            
  4695.            NED v1.7x User's Guide                           Page  86
  4696.  
  4697.  
  4698.            will match:
  4699.  
  4700.                 cat, cot, cut
  4701.  
  4702.            but will not match:
  4703.  
  4704.                 coot, coat or couch etc.
  4705.  
  4706.            ASTERISK (*)                        Match last expression
  4707.  
  4708.            This symbol matches zero or more matches of the preceding
  4709.            expression. For example:
  4710.  
  4711.                 c.*t
  4712.  
  4713.            will match:
  4714.  
  4715.                 cat, coat, chart, compliment
  4716.  
  4717.            Here the  preceding expression  is the  period. Therefore
  4718.            NED searches for any word starting with 'c' and ending in
  4719.            't'.
  4720.  
  4721.            SQUARE BRACKETS ([])                      Character class
  4722.  
  4723.            The square brackets define a set of characters known as a
  4724.            character class.  NED will  then match  any character  in
  4725.            that  set.   Character  classes   are  usually   used  in
  4726.            conjunction with other language elements. For example:
  4727.  
  4728.                 c[aou]t
  4729.  
  4730.            will match:
  4731.  
  4732.                 cat, cot, cut
  4733.  
  4734.            but will not match:
  4735.  
  4736.                 cet, cit, cyt
  4737.  
  4738.            If the  first character  in the  brackets is  a carat (^)
  4739.            then  patterns  with  characters  not  appearing  in  the
  4740.            brackets will be searched for. For example:
  4741.  
  4742.                 c[^aou]t
  4743.  
  4744.            will not match:
  4745.  
  4746.                 cat, cot, cut
  4747.  
  4748.            but will match:
  4749.  
  4750.                 cit, cet, cft, czt
  4751.  
  4752.            The brackets  may also  be used  to specify ASCII ordered
  4753.            ranges by specifying the beginning and end of the range.
  4754.            For example:
  4755.            
  4756.            NED v1.7x User's Guide                           Page  87
  4757.  
  4758.  
  4759.                 c[a-z][A-Z]t
  4760.  
  4761.            matches any upper or lower case letter so that:
  4762.  
  4763.                 cat,cIt,crt,cGt
  4764.  
  4765.            will all be matched.
  4766.  
  4767.            SPECIAL CHARACTERS
  4768.  
  4769.            The regular  expression language allows you to search for
  4770.            the following special characters:
  4771.  
  4772.                 \t   tab
  4773.                 \s   space
  4774.                 \b   backspace
  4775.  
  4776.            The backslash  tells NED  that the character that follows
  4777.            is to  be treated  literally except  with the above three
  4778.            characters. Therefore  to search  for characters  used in
  4779.            the language, prefix them with the backslash as follows:
  4780.  
  4781.                 \\   backslash
  4782.                 \*   asterisk
  4783.                 \.   period
  4784.                 \^   carat
  4785.                 \[   left bracket
  4786.                 \]   right bracket
  4787.                 \$   dollar
  4788.  
  4789.            for example:
  4790.  
  4791.                 if\snot\s\[\*2\]
  4792.  
  4793.            will match:
  4794.  
  4795.                 if not [*2]
  4796.  
  4797.            EXAMPLES
  4798.  
  4799.            You can  form many  expressions using  the language. Here
  4800.            are a few examples:
  4801.  
  4802.                 [a-z][a-z]*ism
  4803.  
  4804.            Matches any  'ism' word e.g. 'prism'. In this example you
  4805.            must repeat  the character  class range twice to match it
  4806.            any number of times.
  4807.  
  4808.                 /\*.*\*/
  4809.  
  4810.            Matches any  comment line in a C program, for example: /*
  4811.            this is a comment */
  4812.  
  4813.            will be matched.
  4814.  
  4815.                 ^[\s\t]*REM.*$
  4816.            
  4817.            NED v1.7x User's Guide                           Page  88
  4818.  
  4819.  
  4820.            Matches any comment line in a BASIC program.
  4821.            The following expression:
  4822.  
  4823.                 ^[a-z][a-z]*[\s\t]*.*([^;]*)[^;]*$
  4824.  
  4825.            will find  any C function declaration with function body.
  4826.            The expression  searches for  beginning  of  a  line  (^)
  4827.            followed by  one or  more occurrences of any character in
  4828.            the range a to z ([a-z][a-z]*) followed by either a space
  4829.            or a  tab repeated zero or more times ([\s\t]*), followed
  4830.            by any  character  repeated  zero  or  more  times  (.*),
  4831.            followed by  an open  parenthesis  (()  followed  by  any
  4832.            character except a semi-colon repeated zero or more times
  4833.            ([^;]*), followed by a close parenthesis ()), followed by
  4834.            any character  except a  semi-colon repeated zero or more
  4835.            times ([^;]*)  followed  by  an  end  of  line  ($).  For
  4836.            example, the above expression would match:
  4837.  
  4838.                 WINDOW *get_window(int start,int finish,char *store)
  4839.  
  4840.            but not match:
  4841.  
  4842.                 WINDOW *get_window (int, int, char *);
  4843.  
  4844.            The above  example only  matches 'C'  function bodies and
  4845.            not function  prototypes. It  is useful  for compiling  a
  4846.            cross-reference of  all of  the functions in a module. As
  4847.            you can  see expressions  can  be  very  complicated  yet
  4848.            extremely powerful filters can be created.
  4849.  
  4850.  
  4851.  
  4852.            
  4853.            NED v1.7x User's Guide                           Page  89
  4854.  
  4855.            *********************************************************
  4856.            NED v1.7x User's Guide
  4857.            Section 5.7    Printer Command Reference
  4858.  
  4859.            Introduction
  4860.            This  section  outlines  the  embedded  printer  commands
  4861.            described in  sections 4.5 and 5.1. The syntax of a print
  4862.            command line is as follows:
  4863.  
  4864.                .prncmd[.prncmd]...
  4865.  
  4866.            A print  command line  must  begin  with  a  period  '.',
  4867.            followed by  the command.  You may  issue more  than  one
  4868.            print command  on each  line by  separating each  command
  4869.            with a period.
  4870.  
  4871.            BOLDFACE
  4872.            Commands: bf, bo
  4873.  
  4874.            These  commands  instruct  the  printer  to  switch  bold
  4875.            printing on  or off.  'bf' will turn bold printing on and
  4876.            'bo' will turn it off.
  4877.  
  4878.            IGNORE PAPER OUT
  4879.            Commands: pf, po
  4880.  
  4881.            These commands  instruct the printer to ignore or respond
  4882.            to the  paper out  sensor. 'pf'  will tell the printer to
  4883.            ignore the  paper out  sensor  and  'po'  will  tell  the
  4884.            printer to respond to it.
  4885.  
  4886.            ENHANCED
  4887.            Commands: hf, ho
  4888.  
  4889.            These commands  instruct the  printer to  switch enhanced
  4890.            printing on  or off.  'hf' will turn enhanced printing on
  4891.            and 'ho' will turn it off.
  4892.  
  4893.            SUPERSCRIPT
  4894.            Commands: su, so
  4895.  
  4896.            These commands instruct the printer to switch superscript
  4897.            printing on  or off.  'su' will turn superscript printing
  4898.            on and 'so' will turn it off.
  4899.  
  4900.            SUBSCRIPT
  4901.            Commands: sb, so
  4902.  
  4903.            These commands  instruct the  printer to switch subscript
  4904.            printing on  or off. 'sb' will turn subscript printing on
  4905.            and 'so' will turn it off.
  4906.  
  4907.            FORM FEED
  4908.            Commands: ff, fo
  4909.  
  4910.            The 'ff' command instructs the printer not to send a form
  4911.            feed when  it has  finished printing.  'fo'  enables  the
  4912.            sending of  a form feed when finished printing. Note that
  4913.            
  4914.            NED v1.7x User's Guide                           Page  90
  4915.  
  4916.            issuing a  'fo' command  after a 'ff' command in the same
  4917.            file will  have no  effect. Where  this is  useful is  to
  4918.            concatenate two  print files  together.  Issue  the  'ff'
  4919.            command in the first file and 'fo' in the second.
  4920.  
  4921.            UNDERLINE
  4922.            Commands: ul, uo
  4923.  
  4924.            These commands  instruct the  printer to switch underline
  4925.            printing on  or off. 'ul' will turn underline printing on
  4926.            and 'uo' will turn it off.
  4927.  
  4928.            ELONGATED
  4929.            Commands: lf, lo
  4930.  
  4931.            These commands  instruct the  printer to switch elongated
  4932.            printing on  or off. 'lf' will turn elongated printing on
  4933.            and 'lo' will turn it off.
  4934.  
  4935.            CONDENSED
  4936.            Commands: cf, co
  4937.  
  4938.            These commands  instruct the  printer to switch condensed
  4939.            printing on  or off. 'cf' will turn condensed printing on
  4940.            and 'co' will turn it off.
  4941.  
  4942.            LINES PER INCH
  4943.            Commands: ia, ib, io
  4944.  
  4945.            These commands  instruct the  printer to  change the line
  4946.            spacing. 'ia'  sets line  spacing to  1/8 inch. 'ib' sets
  4947.            line spacing  to 7/72  inch (often 13/120). 'io' sets the
  4948.            line spacing to 1/6 inch which is usually the default.
  4949.  
  4950.            ESCAPE SEQUENCES
  4951.            Command: esequence
  4952.  
  4953.            This command  allows you  to send escape sequences to the
  4954.            printer. It  must be  either the only or the last command
  4955.            on a  print command  line. When  NED recognizes an escape
  4956.            sequence command  it  sends  an  escape  character  (1Bh)
  4957.            followed by the remaining characters on the line.
  4958.  
  4959.                .e@
  4960.  
  4961.            resets an Epson FX type printer
  4962.  
  4963.                .e50
  4964.  
  4965.            enables auto line feed on an IBM graphics printer.
  4966.  
  4967.            EXAMPLES
  4968.  
  4969.            The following is an example of using the printer
  4970.            commands.
  4971.  
  4972.                .bf.hf.ul
  4973.                The Rain In Spain
  4974.            
  4975.            NED v1.7x User's Guide                           Page  91
  4976.  
  4977.                .uo
  4978.                Stays mainly on the Plain.
  4979.                .bo.ho.e@
  4980.  
  4981.            The above sets bold on, enhanced on and underline on then
  4982.            prints 'The  Rain...'. It  then turns  underline off  and
  4983.            prints  'Stays   mainly...'.  It  then  turns  bold  off,
  4984.            enhanced off and resets the printer.
  4985.  
  4986.            INLINE PRINTER COMMANDS
  4987.  
  4988.            You can  insert your  own printer  commands directly into
  4989.            your file  by using  CTRL ESC  and Shift  In (chr 14) and
  4990.            Shift Out (chr 15). For example:
  4991.  
  4992.                The rain in <Ctrl Esc>GSpain<Ctrl Esc>H stays mainly
  4993.                on the plain.
  4994.  
  4995.            When printed on an Epson FX, will appear as:
  4996.  
  4997.                The rain in Spain stays mainly on the plain.
  4998.  
  4999.            On an  HP LaserJet,  Shift In  and Shift  Out select  the
  5000.            primary and secondary fonts respectively. For example, if
  5001.            the primary  font is  Courier and  the secondary  font is
  5002.            Courier bold the following line:
  5003.  
  5004.                The rain in <Alt 15>Spain<Alt 14> stays mainly on
  5005.                the plain.
  5006.  
  5007.            When printed on an HP LaserJet, will appear as:
  5008.  
  5009.                The rain in Spain stays mainly on the plain.
  5010.  
  5011.            In this  example, to  generate the Shift In and Shift Out
  5012.            characters, hold  down the  ALT key  and type 14 or 15 on
  5013.            the numeric keypad.
  5014.  
  5015.  
  5016.  
  5017.            
  5018.            NED v1.7x User's Guide                           Page  92
  5019.  
  5020.            *********************************************************
  5021.            NED v1.7x User's Guide
  5022.            Chapter 6. Tutorials
  5023.  
  5024.            6.1 Introduction
  5025.            These tutorials are designed to assist you to become more
  5026.            familiar with  NED. They introduce the main skills needed
  5027.            to operate NED effectively.
  5028.  
  5029.            You should have read Chapter 1 before you start here. You
  5030.            may find  it useful  to read  Chapters 2  and 3  prior to
  5031.            starting these tutorials to familiarize yourself with the
  5032.            range of  commands available.  It  is  assumed  you  have
  5033.            installed NED  correctly and  that the  system files  are
  5034.            either in  the current  directory or  on  the  PATH.  See
  5035.            section 1.2 for details on installing NED.
  5036.  
  5037.            In the  tutorials, special keys such as SHIFT F2 or ALT F
  5038.            will be  surrounded by  angle  brackets.  Characters  not
  5039.            surrounded by  angle brackets  should be typed literally.
  5040.            Also make  sure you press ENTER only when specified.
  5041.  
  5042.            6.2 Tutorial One - A DOS  menu system This  tutorial will
  5043.            guide you through the creation of a simple DOS batch menu
  5044.            system.  We   will  create  this  system  in  a  separate
  5045.            subdirectory so  as not  to interfere  with any  existing
  5046.            batch files.  Firstly enter  the following command at the
  5047.            DOS prompt:
  5048.  
  5049.                 md \nedtut<Enter>
  5050.  
  5051.            If the message:
  5052.  
  5053.                 Unable to create directory
  5054.  
  5055.            was displayed, then enter the following:
  5056.  
  5057.                 del \nedtut<Enter>
  5058.                 y<Enter>
  5059.  
  5060.            to remove  any  existing  files.  Regardless,  enter  the
  5061.            following command:
  5062.  
  5063.                 cd \nedtut<Enter>
  5064.  
  5065.            Creating the menu files
  5066.            Now at the DOS prompt enter the following command:
  5067.  
  5068.                 ned menu.bat menu.txt<Enter>
  5069.  
  5070.            As NED  loads it  will copy  the two  filenames from  the
  5071.            command line  to the  File List, then NED will attempt to
  5072.            open 'menu.bat'  (the first  file  in  the  list).  Since
  5073.            'menu.bat' does not exist, NED will prompt you to confirm
  5074.            its creation.  Press 'y'  to proceed.  NED  displays  the
  5075.            following message:
  5076.  
  5077.                 (new file)
  5078.            
  5079.            NED v1.7x User's Guide                           Page  93
  5080.  
  5081.  
  5082.            Now enter the following:
  5083.  
  5084.                 echop<Left><Del><space bar>off<Enter>
  5085.  
  5086.            The obvious  typing error  is  corrected  by  moving  the
  5087.            cursor left  with the LEFT arrow and pressing the DEL key
  5088.            to remove the 'p' in 'echop'. Now enter the following:
  5089.  
  5090.                 cls<Enter>
  5091.                 type \tut\menu.txt
  5092.  
  5093.            These lines  are the commands to display the menu screen,
  5094.            which you will create shortly. Note that the ENTER key is
  5095.            needed to  open up  a new blank line. Before we continue,
  5096.            there is  one more  error to correct. The pathname of the
  5097.            menu text  file should  be '\nedtut\menu.txt'. To correct
  5098.            it, press the following keys:
  5099.  
  5100.                 <Home><Ctrl Right><Right>
  5101.  
  5102.            which moves  the cursor  to the  beginning of  the  line,
  5103.            moves to  the second character of the next word. Next you
  5104.            need to ensure that you are in insert mode. If the cursor
  5105.            appears as  a quarter  block you are in overtype mode, so
  5106.            press INS to change to insert mode. If the cursor appears
  5107.            as a  half block you are already in insert mode. Now type
  5108.            the following to correct the pathname:
  5109.  
  5110.                 ned
  5111.  
  5112.            Now to save this file, enter the following:
  5113.  
  5114.                 <Esc>W<Enter>
  5115.  
  5116.            which takes  you into  Command mode  and issues the WRITE
  5117.            command. NED displays the message:
  5118.  
  5119.                 3 lines written
  5120.  
  5121.            the file  is left  open and you are left in Command mode.
  5122.            The next  step is  to create  the menu  screen. Type  the
  5123.            following:
  5124.  
  5125.                 O<Enter>
  5126.  
  5127.            As for  'menu.bat' above,  you will  have to  confirm the
  5128.            creation of  'menu.txt' by  pressing 'y'  when  prompted.
  5129.            Exit Command  mode and  return  to  the  Edit  window  by
  5130.            pressing the  ESC key.  You now  need to  ensure that the
  5131.            Auto-indent feature  is set on. The status of Auto-indent
  5132.            is displayed on the top line of the screen between memory
  5133.            free %  and the  line counter. If on, 'I' appears in bold
  5134.            attribute if  off, it  will be in normal attribute. Press
  5135.            ALT I  if it is off. Turn the CAPS LOCK on, the status of
  5136.            which is  displayed by the 'C' character in the same area
  5137.            as the Auto-indent flag. Now type the following:
  5138.  
  5139.            
  5140.            NED v1.7x User's Guide                           Page  94
  5141.  
  5142.                 S Y S T E M   M E N U<Alt C><Enter>
  5143.  
  5144.            Note that a space should be typed between each letter and
  5145.            three spaces between the two words. ALT C will centre the
  5146.            line, and ENTER will open a new line below.
  5147.  
  5148.            Next,  we  will  underline  the  menu  title.  Enter  the
  5149.            following:
  5150.  
  5151.                 <Esc>F=,21<Ctrl Enter>
  5152.  
  5153.            This instructs  NED  to  fill  from  the  current  cursor
  5154.            position with  21 '='  characters.  The  CTRL  ENTER  key
  5155.            returns you  directly to  the Edit  window. Insert  three
  5156.            blank lines by pressing ENTER three times, then enter the
  5157.            following line:
  5158.  
  5159.                 1 - DISPLAY DIRECTORY TREE<Alt C><Enter>
  5160.  
  5161.            As above,  this line  will be  centred  and  a  new  line
  5162.            opened. On the new line type the following:
  5163.  
  5164.                 2 -<Space bar>
  5165.  
  5166.            We have  inserted space  bar since  we  want  a  trailing
  5167.            space. Then  press ALT F seven times. Each time you press
  5168.            ALT F  a character  from the  line above is copied to the
  5169.            cursor position  and the  cursor is  moved to  the right.
  5170.            This saves  you from having to retype 'DISPLAY'. Now type
  5171.            the following:
  5172.  
  5173.                 <Space bar>CHKDSK INFO
  5174.  
  5175.            Then press:
  5176.  
  5177.                 <Ctrl F3><F2><Ctrl Right>
  5178.  
  5179.            which takes  a copy of the current line, inserts the copy
  5180.            below the  current line,  and then moves to the beginning
  5181.            of the first word on the new line.
  5182.  
  5183.            We will  now edit this new line to create your third menu
  5184.            option. Press  the INS  key to  change to  overtype mode,
  5185.            type '3'  to replace the '2' at the beginning of the line
  5186.            and press  CTRL RIGHT three times. This will position you
  5187.            at the beginning of the word 'CHKDSK'. Now press ALT D to
  5188.            delete the remainder of the line and then type:
  5189.  
  5190.                 DOS ENVIRONMENT<Enter><Enter><Enter>
  5191.  
  5192.            which will  complete the  third menu  option and  open up
  5193.            three blank  lines below.  Now type the menu instructions
  5194.            as follows:
  5195.  
  5196.                 ENTER THE NUMBER FOR THE OPTION YOU WANT
  5197.                 <Alt C><Enter>
  5198.                 OR ENTER "MENU" TO REDISPLAY THIS SCREEN
  5199.                 <Enter>
  5200.            
  5201.            NED v1.7x User's Guide                           Page  95
  5202.  
  5203.  
  5204.            This completes  the entry  of the  screen text,  which we
  5205.            will now finish formatting. Press the following:
  5206.  
  5207.                 <Ctrl Home><Down><Down><Down><Down><Enter>
  5208.  
  5209.            Which will  take you  to the  top of  the file,  move the
  5210.            cursor down  to the  first menu option and insert a blank
  5211.            line between the first and second menu options. Now press
  5212.            the following:
  5213.  
  5214.                 <Down><Enter><Down><Down><Down><Down>
  5215.  
  5216.            which inserts  a blank  line between the second and third
  5217.            menu  options   and  moves   the  cursor   to  the   menu
  5218.            instructions. Press the following keys:
  5219.  
  5220.                 <Alt G><Home><Alt M>
  5221.  
  5222.            to convert  the line  to lower case, move to the start of
  5223.            the line  and flip the case of the 'e' in 'enter' to 'E'.
  5224.            Now press:
  5225.  
  5226.                 <Down><Alt G><Ctrl Right><Ctrl Right><Right>
  5227.  
  5228.            which moves you to the second instruction line, flips its
  5229.            case and  moves the  cursor to  the 'm' of '"menu"'. Then
  5230.            press ALT M four times to change 'menu' to uppercase. The
  5231.            screen should now look like the following:
  5232.  
  5233.                             S Y S T E M   M E N U
  5234.                             =====================
  5235.  
  5236.  
  5237.                           1 - DISPLAY DIRECTORY TREE
  5238.                           2 - DISPLAY CHKDSK INFO
  5239.                           3 - DISPLAY DOS ENVIRONMENT
  5240.  
  5241.  
  5242.                     Enter the number for the option you want
  5243.                    or enter 'MENU' to redisplay this screen
  5244.  
  5245.            This finishes your menu screen. To save your work to disk
  5246.            press:
  5247.  
  5248.                 <Shift F10>
  5249.  
  5250.            This is  a  shortcut  for  the  WRITE  command  you  used
  5251.            earlier. NED should display the message:
  5252.  
  5253.                 14 lines written
  5254.  
  5255.            Creating the option files
  5256.            We now want to create a batch file for each option in the
  5257.            menu. To do this, press the following keys:
  5258.  
  5259.                 <Alt 1><Ctrl Home><F4><Down><Ins>
  5260.  
  5261.            
  5262.            NED v1.7x User's Guide                           Page  96
  5263.  
  5264.            This  changes  you  to  the  first  area  which  contains
  5265.            'menu.bat'. ALT  0 to  9 are  shortcut keys  to change to
  5266.            another area  and   'menu.bat' is  in area  1. This  then
  5267.            moves the  cursor to  the first  line, enters Block Mode,
  5268.            expands the  block to  cover the  first two  lines,  then
  5269.            copies the  block to  the scrap  buffer and  exits  Block
  5270.            Mode.
  5271.  
  5272.            Your first  option file  will be  called '1.bat'. Use the
  5273.            OPEN command to create it as follows:
  5274.  
  5275.                 <Esc>O1.bat<Enter>y<Esc>
  5276.  
  5277.            We will  use the contents of the scrap buffer to form the
  5278.            basis of the first option file. Press the following keys:
  5279.  
  5280.                 <F2><Shift F2>
  5281.  
  5282.            which inserts  a copy  of  the  scrap  buffer  below  the
  5283.            current  line   and   then   deletes   the   blank   line
  5284.            automatically inserted  by NED when the file was created.
  5285.  
  5286.            We now  want to  finish the  option file  by  adding  the
  5287.            command to display the DOS tree and then to redisplay the
  5288.            menu text. Press the following:
  5289.  
  5290.                 <Ctrl End><Enter><Caps Lock>
  5291.  
  5292.            to move  to the  end of  the file  and open a blank line,
  5293.            turn the Caps Lock off. Now type the following:
  5294.  
  5295.                 wis . | more<Enter>
  5296.                 menu
  5297.  
  5298.            We will  now use  this file  as the  basis of  '2.bat' by
  5299.            pressing the following:
  5300.  
  5301.                 <F4><Ctrl Home><Ins>
  5302.  
  5303.            To create  '2.bat' we  will use the same procedure as you
  5304.            used with '1.bat', by typing:
  5305.  
  5306.                 <Esc>O2.bat<Enter>y<Esc>
  5307.                 <F2><Shift F2>
  5308.  
  5309.            We now  want to  finish this option file by replacing the
  5310.            'wis'  command  with  the  'chkdsk'  command.  Press  the
  5311.            following:
  5312.  
  5313.                 <Down><Down><Alt K>
  5314.  
  5315.            These keys  move the  cursor to the third line and remove
  5316.            its contents. Now type:
  5317.  
  5318.                 chkdsk /f *.* | more
  5319.  
  5320.            As with  this the  last file, we will create the basis of
  5321.            '3.bat' with '2.bat'. Press the following:
  5322.            
  5323.            NED v1.7x User's Guide                           Page  97
  5324.  
  5325.  
  5326.                 <Ctrl Home><F4><Ctrl End><Ins>
  5327.                 <Esc>O3.bat<Enter>y<Esc>
  5328.                 <F2><Shift F2>
  5329.  
  5330.            To finish  this option  file we will replace the 'chkdsk'
  5331.            command with the 'set' command. Press the following:
  5332.  
  5333.                 <Down><Down><Alt K>set
  5334.  
  5335.            You now  have five open files. The Status screen helps to
  5336.            keep track  of open files. Press F10 to view this screen.
  5337.            Note that  the option  batch files have a flashing 'Y' in
  5338.            the 'Changes'  column.  The  Status  screen  should  look
  5339.            something like the following:
  5340.  
  5341.            Area File Name  Size Lines        Last Write      Changes
  5342.  
  5343.              1   MENU.BAT    39     3  20/07/1989 at 12:15         N
  5344.              2   MENU.TXT    406   14  20/07/1989 at 12:23         N
  5345.              3   1.BAT              5        (new file)            Y
  5346.              4   2.BAT              5        (new file)            Y
  5347.            > 5   3.BAT              5        (new file)            Y
  5348.              6   (area unopened)
  5349.              7   (area unopened)
  5350.              8   (area unopened)
  5351.              9   (area unopened)
  5352.              10  (area unopened)
  5353.  
  5354.            Press any  key to return to the current file. To save the
  5355.            files that  have changed,  use  the  LAUNDRY  command  as
  5356.            follows:
  5357.  
  5358.                 <Esc>L<Enter>
  5359.  
  5360.            You might  like to have another look at the Status screen
  5361.            to check  that  all  changed  files  have  been  written.
  5362.  
  5363.            Testing the menu system
  5364.            We now  want to test the menu system. To do this you will
  5365.            have to  return to  DOS. Since  we are already in Command
  5366.            mode, enter the following:
  5367.  
  5368.                 Q<Enter>
  5369.  
  5370.            Now at the DOS prompt type:
  5371.  
  5372.                 menu<Enter>
  5373.  
  5374.            which will display the menu text. To run the first option
  5375.            type:
  5376.  
  5377.                 1<enter>
  5378.  
  5379.            You  will  no  doubt  see  that  the  directory  tree  is
  5380.            immediately replaced  by  the  menu  text.  To  fix  this
  5381.            problem, we will have to edit our batch files. Reload NED
  5382.            as follows:
  5383.            
  5384.            NED v1.7x User's Guide                           Page  98
  5385.  
  5386.                 ned *.bat<Enter>
  5387.  
  5388.            NED expands  and sorts the filenames matching the '*.bat'
  5389.            wildcard into  the File  List. NED  then opens  the first
  5390.            file in  the list  which will  be '1.bat'.  Now type  the
  5391.            following:
  5392.  
  5393.                 <Down><Down><Enter>pause
  5394.  
  5395.            to  insert   the  'pause'   statement  under   the  'wis'
  5396.            statement.
  5397.  
  5398.            We need  to insert this command in the other option batch
  5399.            files. Copy  the current  line to  the  scrap  buffer  by
  5400.            pressing CTRL  F3.  Because  we  know  that  the  'pause'
  5401.            command needs  to be  inserted at  the same  place in the
  5402.            remaining  option   batch  files,   we  can   record  the
  5403.            keystrokes used for the second option file to a macro. We
  5404.            will then  only need to press the macro key to repeat the
  5405.            keystrokes for the third option file. Press the following
  5406.            keys:
  5407.  
  5408.                 <F7><Alt F1>
  5409.  
  5410.            which begins recording keystrokes to ALT F1. NED displays
  5411.            the message:
  5412.  
  5413.                 Recording (ALT F1)
  5414.  
  5415.            Now press:
  5416.  
  5417.                 <Ctrl F1><Down><Down><F2>
  5418.  
  5419.            to open  the next  file in  the File  List which  will be
  5420.            '2.bat', and insert scrap buffer under the third line. To
  5421.            finish recording  the macro,  press F7.  NED displays the
  5422.            message:
  5423.  
  5424.                 End Record (ALT F1)
  5425.  
  5426.            Now we  can use  the   macro to  update the  third option
  5427.            file. Press  ALT F1 and the 'pause' command will be added
  5428.            to '3.bat'!  To test these changes, we will save and quit
  5429.            NED by  using the  's' parameter  with the QUIT command
  5430.            as
  5431.            follows:
  5432.  
  5433.                 <Esc>Qs<Enter>
  5434.  
  5435.            At the DOS prompt type:
  5436.  
  5437.                 menu<Enter>
  5438.                 1<Enter>
  5439.  
  5440.            When the  command has  finished, you  will  be  asked  to
  5441.            strike any key when ready. When you strike a key the menu
  5442.            text will  be displayed.  Test the  other options  if you
  5443.            wish.
  5444.            
  5445.            NED v1.7x User's Guide                           Page  99
  5446.  
  5447.  
  5448.            That completes  Tutorial One.  To learn  more  about  NED
  5449.            proceed to the next tutorial.
  5450.  
  5451.            6.3 Tutorial Two - Programming with NED
  5452.            This tutorial  will show  you more of NED's capabilities,
  5453.            particularly  those  that  assist  with  the  writing  of
  5454.            computer programs.  We have chosen the BASIC language for
  5455.            the examples  in this  tutorial since  it is  the    most
  5456.            widely understood  language. If you have not been through
  5457.            the first  tutorial then you will not be able to complete
  5458.            this tutorial  as you  will need to use 'menu.txt'. Enter
  5459.            the following to remove the tutorial file:
  5460.  
  5461.                 del \nedtut\sample.bas<Enter>
  5462.  
  5463.            If the message:
  5464.  
  5465.                 File not found
  5466.  
  5467.            is displayed,  ignore it  and enter the following command
  5468.            to change to the tutorial directory:
  5469.  
  5470.                 cd \nedtut<Enter>
  5471.  
  5472.            Now at the DOS prompt enter the following command:
  5473.  
  5474.                 ned sample.bas<Enter>
  5475.  
  5476.            Since 'sample.bas' does not exist, NED will prompt you to
  5477.            confirm its creation. Press 'y' to proceed.
  5478.  
  5479.            The Program Header
  5480.            Firstly we  want to  create the program header. This will
  5481.            consist of  a few  comment lines  with the  filename  and
  5482.            date. Enter the following:
  5483.  
  5484.                 REM <Esc>F-,75<Ctrl Enter><Enter>
  5485.                 <Alt F><Alt F><Alt F><Alt F>
  5486.  
  5487.            In the  first line, the word 'REM' will be followed by 75
  5488.            '-' characters  from the  FILL command.  A  new  line  is
  5489.            opened up, the 'REM ' is field copied from the first line
  5490.            to the second line.
  5491.  
  5492.            Next you  need to  ensure that you are in insert mode. If
  5493.            the cursor appears as a quarter block you are in overtype
  5494.            mode, so  press INS  to change  to insert  mode.  If  the
  5495.            cursor appears  as a half block you are already in insert
  5496.            mode. Now type the following:
  5497.  
  5498.                 File name:<Tab><Tab><Alt H><Enter>
  5499.  
  5500.            Here we  have used  the ALT  H key  to insert the current
  5501.            filename at the cursor position. When in insert mode, the
  5502.            TAB inserts spaces up to the next tabstop. Now repeat the
  5503.            above field copy as follows:
  5504.  
  5505.            
  5506.            NED v1.7x User's Guide                           Page 100
  5507.  
  5508.                 <Alt F><Alt F><Alt F><Alt F>
  5509.                 Date created:<Tab><Alt Y>
  5510.  
  5511.            As above,  this copies the 'REM ' from the previous line,
  5512.            and inserts the current date/time at the end of the line.
  5513.  
  5514.            To complete the header we will copy the first line of the
  5515.            file to the end of the file. Press the following:
  5516.  
  5517.                 <Ctrl Home><Ctrl F3><Ctrl End><F2><Down>
  5518.                 <Enter><Enter>
  5519.  
  5520.            CTRL HOME  and CTRL  END move  the cursor to the first or
  5521.            last line  of the  file. After  the comment line has been
  5522.            inserted, two  blank lines  are opened up below it. Using
  5523.            Auto-indent and  Enter to  Format code  One of  the  most
  5524.            common program  constructs is  the 'if/else'.  NED has an
  5525.            Auto-indent feature which makes the entry of this type of
  5526.            structure easy.  To toggle  Auto-indent on,  press ALT I.
  5527.  
  5528.            The status of Auto-indent is displayed on the top line of
  5529.            the screen between memory free % and the line counter. If
  5530.            on, 'I'  appears in  bold attribute if off, it will be in
  5531.            normal attribute. Now enter the following:
  5532.  
  5533.                 if a = b<Right Shift Enter>
  5534.  
  5535.            You will  notice that  the cursor is now one tabstop into
  5536.            the new  line. This  is because  when you press the RIGHT
  5537.            SHIFT in  combination with ENTER NED moves the cursor one
  5538.            tabstop to the right. Now type:
  5539.  
  5540.                 if a = c<Right Shift Enter>
  5541.                 olda = a<Enter>
  5542.                 a = b<Left Shift Enter>
  5543.                 endif<Left Shift Enter>
  5544.                 endif<Enter>
  5545.  
  5546.            You will  notice that when you press ENTER by itself, the
  5547.            cursor  will   appear  under   the  first  non-whitespace
  5548.            character of  the previous  line. The  effect of pressing
  5549.            LEFT or  RIGHT SHIFT is to move the cursor one tabstop to
  5550.            the  left  or  right  of  that  position.  Now  type  the
  5551.            following:
  5552.  
  5553.                 else<Enter>
  5554.                 <Tab>oldb = b<Enter>
  5555.                 b = a
  5556.  
  5557.            Here the  ENTER and TAB keys perform the longhand version
  5558.            of the  RIGHT SHIFT  ENTER we used before. We now we want
  5559.            to move  these three  lines to  above the  last  'endif'.
  5560.            Press the following:
  5561.  
  5562.                 <F4><Up><Up><Del><Ctrl F2>
  5563.  
  5564.            Which enters  Block Mode,  selects the  last three lines,
  5565.            cuts them to the scrap buffer and finally CTRL F2 inserts
  5566.            
  5567.            NED v1.7x User's Guide                           Page 101
  5568.  
  5569.            the block above the current line. To finish this routine,
  5570.            enter the following:
  5571.  
  5572.                 <Right Shift Enter>If a = c
  5573.                 <Down><F4><Down><Tab><Esc>
  5574.                 <Down><Ctrl F3><F2><Home><Tab>
  5575.  
  5576.            This inserts  another 'if'  statement below  the  'else',
  5577.            enters Block Mode, selects the next two lines, moves them
  5578.            one tabstop  to the right and exits Block Mode. The third
  5579.            line takes  a copy  of the 'endif' line, inserts it under
  5580.            the current line. The cursor is moved to the start of the
  5581.            line and  the line  is moved  one tabstop  to the  right.
  5582.  
  5583.            Making Corrections  to code  Some versions  of BASIC will
  5584.            not accept the 'endif' as one word. To correct this enter
  5585.            the following:
  5586.  
  5587.                 <F4><Ctrl Right>s
  5588.  
  5589.            Here we  have used the 's' function in Block Mode to copy
  5590.            the 'endif'  to the search expression. This is a shortcut
  5591.            for the  SPECIFY command.  To make the replacements, type
  5592.            the following:
  5593.  
  5594.                 <Esc>Rend if,g<Enter>
  5595.  
  5596.            Each time  the search  expression is  found you  will  be
  5597.            prompted to  replace it  with 'end  if'. Answer  'y' each
  5598.            time you are prompted. NED will then display the message:
  5599.  
  5600.                 3 replaced, 0 overflows.
  5601.  
  5602.            showing you  the total  number of  replacements  and  the
  5603.            number of overflows. Overflows occur when the replacement
  5604.            text expands  the line to more than 256 characters. BASIC
  5605.            also requires a 'then' to follow the 'if' condition which
  5606.            we have  not included.  To correct  this we  will use the
  5607.            Regular Expression '^\s*if' to specify our search pattern
  5608.            and append  'then' to  the line.  We will also record the
  5609.            keystrokes needed  to do  this to  a macro  so  that  the
  5610.            process can be repeated. Enter the following:
  5611.  
  5612.                 S^\s*if<Ctrl Enter><Ctrl Home>
  5613.  
  5614.            The carat  '^' in  the expression specifies the beginning
  5615.            of a line, the '\s' which specifies a space character and
  5616.            the asterisk  '*' which  tells NED to match the preceding
  5617.            expression (being  the space)  zero  or  more  times.  To
  5618.            record the  edits for the first 'if' statement, press the
  5619.            following:
  5620.  
  5621.                 <F7><Alt F8><F8><End><Space Bar>then<F7>
  5622.  
  5623.            This begins recording the macro key ALT F8, then searches
  5624.            for the  first matching  'if' statement, moves to the end
  5625.            of that  line and adds ' then' and finishes recording the
  5626.            macro. Now  press ALT  F8 two  times to fix the remaining
  5627.            
  5628.            NED v1.7x User's Guide                           Page 102
  5629.  
  5630.            'if' statements.  The file should now look something like
  5631.            the following:
  5632.  
  5633.            REM -----------------------------------------------------
  5634.            REM File name:      SAMPLE.BAS
  5635.            REM Date created:   Wednesday 19/07/1989  12:55 pm
  5636.            REM -----------------------------------------------------
  5637.  
  5638.  
  5639.            if a = b then
  5640.                if a = c then
  5641.                    olda = a
  5642.                    a = b
  5643.                end if
  5644.            else
  5645.                if a = c then
  5646.                    oldb = b
  5647.                    b = a
  5648.                end if
  5649.            end if
  5650.            ~
  5651.            ~
  5652.            ~
  5653.            ~
  5654.            ~
  5655.            ~
  5656.            ~
  5657.            ~
  5658.  
  5659.            Getting a Copy of the Screen Layout
  5660.            It is  often necessary to design a screen layout prior to
  5661.            coding. In  this section  we will convert the menu screen
  5662.            'menu.txt' you  created in  the first  tutorial to  BASIC
  5663.            statements. If  you have  not created the menu screen, go
  5664.            back and complete Tutorial One. To start with, we need to
  5665.            open 'menu.txt' and copy its contents to the current file
  5666.            'sample.bas'. Enter the following:
  5667.  
  5668.                 <Esc>O<F1>
  5669.  
  5670.            This takes  you to File Display mode where you can select
  5671.            the file  'menu.txt' by  using the arrow keys to move the
  5672.            high-light to  the filename  and pressing  ENTER. If  you
  5673.            cannot find  'menu.txt' go back to the first tutorial and
  5674.            create it  as instructed.  Now press ESC to return to the
  5675.            Edit window and press the following keys:
  5676.  
  5677.                 <F4><Ctrl End><Ins>
  5678.  
  5679.            which will  copy the  entire file  to the  scrap  buffer.
  5680.            Return to  'sample.bas' by  using the  Status  screen  as
  5681.            follows:
  5682.  
  5683.                 <F10><Up><any key>
  5684.  
  5685.            When you  change areas  using the  Status screen, you may
  5686.            also press  the number of the area you wish to change to.
  5687.            To  insert   this  screen   into  your  file,  press  the
  5688.            
  5689.            NED v1.7x User's Guide                           Page 103
  5690.  
  5691.            following:
  5692.  
  5693.                 <Ctrl End><F2><Enter><Enter>
  5694.  
  5695.            Converting the Layout to Program Statements
  5696.            Now type the following:
  5697.  
  5698.                 CLS<Enter>
  5699.                 LOCATE<space bar><space bar>3,
  5700.  
  5701.            You now  need to  move the cursor to the beginning of the
  5702.            first line of the menu screen by pressing:
  5703.  
  5704.                 <Down><Home>
  5705.  
  5706.            Note the column number, then press:
  5707.  
  5708.                 <Up><End>
  5709.  
  5710.            then type the number of the column, which should be '30'.
  5711.            Then type the following:
  5712.  
  5713.                 PRINT "
  5714.  
  5715.            Now join the menu screen line by pressing the following:
  5716.  
  5717.                 <F3><Alt W><End>";
  5718.  
  5719.            The ALT  W removes  the leading spaces from the menu line
  5720.            and the '";' completes the 'PRINT' statement.
  5721.  
  5722.            We will now copy this line and use it as the basis of the
  5723.            next statement. Press the following:
  5724.  
  5725.                 <Ctrl F3><F2><Ctrl Right><Ctrl Right>
  5726.  
  5727.            which copies  the current  line and  inserts it below and
  5728.            then moves  the cursor  over the  row  parameter  of  the
  5729.            'LOCATE' statement.  Make sure  insert is  off  (overtype
  5730.            mode) and  enter '4'.  To complete  the  line  press  the
  5731.            following:
  5732.  
  5733.                 <Ctrl Right><Right><Alt D><F3><Alt W>";<Enter>
  5734.  
  5735.            which deletes  the copy of the 'PRINT' statement text and
  5736.            joins the  next line  from the menu layout. The next step
  5737.            is to  take a  copy of  the previous  line's 'LOCATE' and
  5738.            'PRINT' statements  and insert  them for the three option
  5739.            lines. To do this type the following:
  5740.  
  5741.                 <Up><F4><Ctrl Right><Ctrl Right><Right><Right><Ins>
  5742.                 <F7><Alt F2><Down><F2><Down><F2><Down><F2><F7>
  5743.  
  5744.            In addition  to inserting  the block,  this  records  the
  5745.            necessary keystrokes  to the  macro key  ALT F2 for later
  5746.            use. Now  move the  cursor to  the beginning of the first
  5747.            option line by pressing:
  5748.  
  5749.            
  5750.            NED v1.7x User's Guide                           Page 104
  5751.  
  5752.                 <Down><Home>
  5753.  
  5754.            Again, note  the column  number which should be '28'. Now
  5755.            press UP three times, then the following:
  5756.  
  5757.                 <Home><Ctrl Right>7<Right>28
  5758.                 <Down><Ctrl Left>9<Alt F><Alt F><Alt F>
  5759.                 <Down><Ctrl Left><Left>11<Alt F><Alt F><Alt F>
  5760.  
  5761.            This renumbers  the  'LOCATE'  statements  for  the  menu
  5762.            options. Note  the use  of field  copy ALT  F to copy the
  5763.            column number  from the  previous line.  We now  need  to
  5764.            append '";' to the end of each of these statements. To do
  5765.            this we  will copy  the characters  from a completed line
  5766.            and insert them at where needed. Press the following:
  5767.  
  5768.                 <Up><Up><Up><End><F4><Left><Left><Ins><Alt F2>
  5769.  
  5770.            Here we  have used  the macro you created above to insert
  5771.            the scrap at the end of these lines.
  5772.  
  5773.            We now  need to  remove the  blank lines from between the
  5774.            menu options. Press the following:
  5775.  
  5776.                 <Down><Down><Shift F2><Down><Shift F2>
  5777.  
  5778.            We will  record a macro to move the menu options to their
  5779.            'PRINT' statements. In this example we will also name the
  5780.            macro using the MACRO command. Press the following:
  5781.  
  5782.                 <Esc>MMove menu options<Enter><Shift Alt F4>
  5783.                 <Home><F4><End><Del><Up><Up><Up>
  5784.                 <End><Ctrl Left><Right><F2><Down><Down><F7>
  5785.  
  5786.            This macro has been assigned to ALT F14. It cuts the last
  5787.            menu option  and places  it between  the double quotes of
  5788.            the last 'PRINT' statement, then it returns the cursor to
  5789.            the previous  menu option.  Press SHIFT  F7 to  view  the
  5790.            Macro Report  screen. You  will notice  the name  of  the
  5791.            macro we have just recorded is displayed. The other macro
  5792.            we recorded  ALT F2  was not  named and thus displays the
  5793.            message '(untitled)'. Press any key to return to the Edit
  5794.            window.  Now  press  SHIFT  ALT  F4  twice  to  move  the
  5795.            remaining menu options.
  5796.  
  5797.            The last  step is to convert the two instruction lines to
  5798.            'LOCATE' and 'PRINT' statements. Open a new line and copy
  5799.            the 'LOCATE'  statement by pressing ENTER, and then ALT F
  5800.            eight times. Now press the following:
  5801.  
  5802.                 4,<Down><Shift F2><Shift F2><Shift F2>
  5803.                 <Shift F2><Shift F2>
  5804.  
  5805.            to remove  the blank  lines  between  the  code  and  the
  5806.            remainder of  the layout. To find our column number press
  5807.            HOME, note  the number  (which should  be 21),  and  then
  5808.            press the following:
  5809.  
  5810.            
  5811.            NED v1.7x User's Guide                           Page 105
  5812.  
  5813.                 <Up><End>21<Alt F><Alt F><Alt F><Alt F><Alt F>
  5814.                 <Alt F><Alt F><Alt F><Shift F2><F2><Ctrl F2>
  5815.  
  5816.            This inserts  a copy  a copy  of the line between the two
  5817.            menu instruction  lines. Note  that you  must press ALT F
  5818.            eight times. Now press:
  5819.  
  5820.                 <F3><Alt W><End>";
  5821.  
  5822.            This  completes  the  first  menu  instruction  line.  To
  5823.            compete the second line, press:
  5824.  
  5825.                 <Down><Down><Home><Ctrl Right><Alt D>
  5826.                 Esc to exit this menu<Alt C><Home>
  5827.  
  5828.            Note the column position (should be 29);
  5829.  
  5830.                 <End>";
  5831.  
  5832.            Which will  centre the  line.  To  correct  the  'LOCATE'
  5833.            statement, press the following:
  5834.  
  5835.                 <Up><Home><Ctrl Right><Right><Right><Right>
  5836.                 <Right>9<End><F3><Alt W><Shift F5>
  5837.  
  5838.            SHIFT F5  redraws the screen with the current line in the
  5839.            centre of  the window.  The screen  should look something
  5840.            like the following:
  5841.  
  5842.            CLS
  5843.            LOCATE  3,30:PRINT "S Y S T E M   M E N U";
  5844.            LOCATE  4,30:PRINT "=====================";
  5845.            LOCATE  7,28:PRINT "1 - DISPLAY DIRECTORY TREE";
  5846.            LOCATE  9,28:PRINT "2 - DISPLAY CHECKDISK INFO";
  5847.            LOCATE 11,28:PRINT "3 - DISPLAY DOS ENVIRONMENT";
  5848.            LOCATE 14,21:PRINT "Enter the number for the option you
  5849.            want";
  5850.            LOCATE 14,29:PRINT "or Esc to exit this menu";
  5851.            ~
  5852.  
  5853.            This finishes  the conversion to code of the menu screen.
  5854.            Firstly  we   will  close   'menu.txt'  and   then   save
  5855.            'sample.bas'. Enter the following:
  5856.  
  5857.                 <Alt 2><Esc>C<Enter>E<Enter>
  5858.  
  5859.            Since 'sample.bas'  is the only open file after we closed
  5860.            'menu.txt', NED  will exit to DOS after writing the file.
  5861.            This completes tutorial two.
  5862.  
  5863.  
  5864.  
  5865.            
  5866.            NED v1.7x User's Guide                           Page 106
  5867.  
  5868.            *********************************************************
  5869.            NED v1.7x User's Guide
  5870.            Appendix A. Messages
  5871.  
  5872.            The following  gives a description and  necessary  advice
  5873.            for the messages found in NED.
  5874.  
  5875.            number lines converted
  5876.                 NED  has  successfully  executed  a  DETAB  or  NTAB
  5877.                 command.
  5878.  
  5879.            number lines copied from Scrap
  5880.                 NED has  just copied   text from the Scrap into your
  5881.                 file.
  5882.  
  5883.            number lines ONLY copied from Scrap
  5884.                 NED has copied number of lines only. Usually because
  5885.                 there is  insufficient memory  or the maximum number
  5886.                 of lines has been reached.
  5887.  
  5888.            number lines copied to Scrap
  5889.                 NED has just copied text from your file into Scrap.
  5890.  
  5891.            number lines cut to Scrap
  5892.                 NED has  just cut (deleted) text from your file into
  5893.                 Scrap.
  5894.  
  5895.            number lines read
  5896.                 NED has successfully read a file.
  5897.  
  5898.            number lines sorted
  5899.                 NED has successfully sorted a file.
  5900.  
  5901.            number lines written
  5902.                 NED has successfully written your file.
  5903.  
  5904.            number% read
  5905.                 NED has read number% of a file.
  5906.  
  5907.            number replaced, number overflows.
  5908.                 NED has   told you how many replacements it made and
  5909.                 the number of overflows that occurred in your file.
  5910.  
  5911.            number% written
  5912.                 NED has written number% of your file.
  5913.  
  5914.            Area Not Open !
  5915.                 You have attempted to select an unopened area.
  5916.  
  5917.            Auto-detab off
  5918.                 NED will not detab a file when it is read.
  5919.  
  5920.            Auto-detab on
  5921.                 NED will detab a file when it is read.
  5922.  
  5923.            Auto-entab off
  5924.                 NED will not entab a file when it is written.
  5925.  
  5926.            
  5927.            NED v1.7x User's Guide                           Page 107
  5928.  
  5929.            Auto-entab on
  5930.                 NED will entab a file when it is written.
  5931.  
  5932.            Backup Creation Error, using default
  5933.                 A backup   file could  not be  made in the specified
  5934.                 backup directory. The current directory is used.
  5935.  
  5936.            Bad Area !
  5937.                 You specified an invalid area number.
  5938.  
  5939.            Bad Fill Spec or Not Valid to Fill
  5940.                 Your fill  specification is invalid or the number of
  5941.                 characters to fill will not fit in the current line.
  5942.  
  5943.            Bad Line Number !
  5944.                 You specified a non-existent line number.
  5945.  
  5946.            Bad Replacement Specification.
  5947.                 You  haven't  entered  a  search  expression  or  no
  5948.                 replacement specification was given.
  5949.  
  5950.            Bad Tab Stop
  5951.                 You specified  an   tabstop setting  out of range or
  5952.                 order.
  5953.  
  5954.            Background is busy
  5955.                 The spooler  is still  busy in  background mode. You
  5956.                 cannot exit  to DOS  or switch  the  background  off
  5957.                 until spooling is finished.
  5958.  
  5959.            (Block Mode)
  5960.                 You have just entered block mode.
  5961.  
  5962.            Buffer full, Continue ? (Y/N)
  5963.                 The file  that NED was trying to read is bigger than
  5964.                 the area  buffer. If  you continue,  NED  will  only
  5965.                 recognize lines  up to the buffer size. Increase the
  5966.                 MAXLINES statement in CONFIG.NED and reload.
  5967.  
  5968.            Can't Create BACKUP Directory
  5969.                 The BACKUP  directory you  specified  could  not  be
  5970.                 created (e.g. volume name or a bad directory name).
  5971.  
  5972.            Can't load Help File
  5973.                 Either NHELP.EXE  or NCAL.EXE  is not in the current
  5974.                 directory or  it is not on the PATH or else there is
  5975.                 not enough memory to load it.
  5976.  
  5977.            Can't open file
  5978.                 The filespec  given could not be opened (e.g. it was
  5979.                 a subdirectory or a wildcard).
  5980.  
  5981.            Can't open spool file
  5982.                 A temporary  file needed by the spooler could not be
  5983.                 opened. Check DOS for insufficient disk space or too
  5984.                 many  files.   Don't  delete  spooler  files  (those
  5985.                 matching sp??????) when shelling to DOS.
  5986.  
  5987.            
  5988.            NED v1.7x User's Guide                           Page 108
  5989.  
  5990.            Can't open spoolfile (file)
  5991.                 The temporary spoolfile (the file you printed) could
  5992.                 not be opened. Check DOS for insufficient disk space
  5993.                 or too many files.
  5994.  
  5995.            Changes will be lost, Confirm (Y/N)
  5996.                 You've just  told NED  to close  a  file  which  has
  5997.                 changed. If you answer 'Y' the changes will be lost.
  5998.  
  5999.            'char' Filled  number  Times
  6000.                 NED has successfully  filled a char number of times.
  6001.  
  6002.            CONFIG.NED written to disk
  6003.                 NED  has   just  written  its  current  settings  to
  6004.                 CONFIG.NED.
  6005.  
  6006.            Create BACKUP Directory ? (Y/N)
  6007.                 The BACKUP  directory you  specified does not exist.
  6008.                 If you  answer 'Y'  NED will  attempt to  create it.
  6009.  
  6010.            Cursor must point to {([«<!?¿¡>»])}
  6011.                 The  brace  matching  function  only works  when the
  6012.                 cursor points to one of the listed characters.
  6013.  
  6014.            DOS: Type 'EXIT' to come back ...
  6015.                 You've just shelled to DOS.
  6016.  
  6017.            End of File List reached
  6018.                 There are  no more files in the File List to open or
  6019.                 there is no File List.
  6020.  
  6021.            End Record (macrokey)
  6022.                 You have  just finished  recording a Macro (e.g. ALT
  6023.                 F1).
  6024.  
  6025.            Enter MACRO Name or <ret> for none
  6026.                 You've entered  the MACRO command. You can specify a
  6027.                 name for  a macro  and begin  recording or rename an
  6028.                 existing macro.
  6029.  
  6030.            Enter Target Key (ALT F1-20)
  6031.                 You have  just started  a  Macro  record.  You  must
  6032.                 assign the Macro to a function key.
  6033.  
  6034.            Error Reading !
  6035.                 NED has  encountered a  DOS error  whilst reading  a
  6036.                 file.
  6037.  
  6038.            Error Writing !
  6039.                 NED has  encountered a  DOS error whilst writing the
  6040.                 file.
  6041.  
  6042.            File Exists! Overwrite (Y/N) ?
  6043.                 You have  specified a  filename which exists. If you
  6044.                 answer 'Y' its contents will be overwritten with the
  6045.                 current file.
  6046.  
  6047.            Insufficient Memory !
  6048.            
  6049.            NED v1.7x User's Guide                           Page 109
  6050.  
  6051.                 You have  requested an  operation for which there is
  6052.                 insufficient memory to perform.
  6053.  
  6054.            Insufficient Memory to Store Line
  6055.                 We just  ran out  of memory!  Save your  file(s) and
  6056.                 exit to DOS.
  6057.  
  6058.            Insufficient memory to use MACROS
  6059.                 Not enough  memory is  left to use Macros. Usually a
  6060.                 start-up error.  Use CHKDSK  to see  that  there  is
  6061.                 sufficient memory to load NED.
  6062.  
  6063.            Insufficient memory to use SPOOLER
  6064.                 Not enough  memory  is  left  to  use  the  spooler.
  6065.                 Usually a  start-up error.  Use CHKDSK  to see  that
  6066.                 there is sufficient memory to load NED.
  6067.  
  6068.            Invalid column sort width
  6069.                 The columns  you have  specified are out of range or
  6070.                 non-existent for sorting with the ZSORT command.
  6071.  
  6072.            Invalid directory name
  6073.                 You have specified an invalid directory name for the
  6074.                 BACKUP command. Check with your DOS manual for valid
  6075.                 directory name characters.
  6076.  
  6077.            Invalid filename
  6078.                 You have  specified an  invalid filename. Check with
  6079.                 your DOS manual for valid filename characters.
  6080.  
  6081.            Invalid MACRO File or File name !
  6082.                 You have specified a corrupted or non-existent Macro
  6083.                 file.
  6084.  
  6085.            Invalid print page layout
  6086.                 You  have  specified  a  page  layout  that  is  not
  6087.                 possible  (e.g.  the  top  and  bottom  margins  are
  6088.                 greater than the page length).
  6089.  
  6090.            Invalid right hand margin
  6091.                 The right  hand margin for word wrap must be between
  6092.                 1 and 256.
  6093.  
  6094.            Invalid sort offset
  6095.                 The sort width given is not valid (e.g. the width is
  6096.                 greater than the maximum number of columns).
  6097.  
  6098.            Invalid timeslice value
  6099.                 The timeslice must be an integer between 1 and 8192.
  6100.  
  6101.            Key entered Not a valid MACRO key !
  6102.                 You have  specified an invalid Macro key. Macro keys
  6103.                 must be between (ALT F1-20).
  6104.            
  6105.            NED v1.7x User's Guide                           Page 110
  6106.  
  6107.  
  6108.            MACROS Restored from File
  6109.                 NED has successfully loaded a Macro file.
  6110.  
  6111.            MACROS Saved to File
  6112.                 NED has successfully saved a Macro file.
  6113.  
  6114.            Mark Found
  6115.                 You have just executed the goto mark key and NED has
  6116.                 found a marker.
  6117.  
  6118.            Mark Not Found !
  6119.                 You have just executed the goto mark key and NED has
  6120.                 not found a marker.
  6121.  
  6122.            Mark removed
  6123.                 The mark on the current line has been removed.
  6124.  
  6125.            Mark set
  6126.                 The current line has been marked.
  6127.  
  6128.            Match Not Found !
  6129.                 NED did not find a matching {([«<!?¿¡>»])}
  6130.  
  6131.            (new file)
  6132.                 You are editing a new file.
  6133.  
  6134.            No Free Areas left !
  6135.                 You already have ten open areas.
  6136.  
  6137.            ok
  6138.                 Operation successful.
  6139.  
  6140.            Ok to Create ? (Y/N)
  6141.                 You have  specified a  file which does not exist. If
  6142.                 you enter 'Y' NED will attempt to create it.
  6143.  
  6144.            Overwrite old MACRO File ? (Y/N)
  6145.                 You have  just told  NED to  KEEP a  macro file that
  6146.                 already  exists.  If  you  answer  'Y'  it  will  be
  6147.                 overwritten.
  6148.  
  6149.            Overwriting old BACKUP file
  6150.                 The previous  backup file  is being overwritten with
  6151.                 the current backup file.
  6152.  
  6153.            (pattern) not Found
  6154.                 NED did not find the search pattern you specified.
  6155.  
  6156.            Press F1 for File Display
  6157.                 You have issued an OPEN, WRITE, END, BACKUP or MACRO
  6158.                 command. You may enter File Display mode by pressing
  6159.                 F1.
  6160.  
  6161.            Printer Off Line. Check & Retry.
  6162.                 The printer  does  not  respond  to  initialization.
  6163.                 Check it and retry.
  6164.  
  6165.            
  6166.            NED v1.7x User's Guide                           Page 111
  6167.  
  6168.            Printer Not Ready, Continue ? (Y/N)
  6169.                 The printer  is not  on line  and can't be selected.
  6170.                 Check and press 'Y' to proceed.
  6171.  
  6172.            (processing line linenumber)
  6173.                 NED is  processing line linenumber of the file (e.g.
  6174.                 printing).
  6175.  
  6176.            Recording (macrokey)
  6177.                 You are now recording a Macro (e.g. ALT F1).
  6178.  
  6179.            Replace ? (Y/N)
  6180.                 You have  just issued  a REPLACE  command.  NED  has
  6181.                 found a match and is asking you to confirm replacing
  6182.                 it with the new string.
  6183.  
  6184.            (replacing)
  6185.                 NED is replacing text.
  6186.  
  6187.            (S)ave, (A)bort or (C)ancel ?
  6188.                 You have just tried to QUIT without saving a changed
  6189.                 file. Enter S, A or C.
  6190.  
  6191.            Save this file ? (Y/N)
  6192.                 You have  just issued a LAUNDRY command with the 'p'
  6193.                 option. NED has recorded changes in this file and is
  6194.                 asking you to confirm the save.
  6195.  
  6196.            Spool file killed
  6197.                 You have just removed a selected file from the spool
  6198.                 queue.
  6199.  
  6200.            Spooler empty or area not used
  6201.                 You have  attempted to  remove a  spool file that is
  6202.                 not in the queue.
  6203.  
  6204.            Spooler not active
  6205.                 You have  attempted to  issue a spooler command when
  6206.                 it is not active.
  6207.  
  6208.            Spooler off
  6209.                 You have  just pressed  CTRL F6. Background printing
  6210.                 is disabled.
  6211.  
  6212.            Spooler on
  6213.                 You have  just pressed  CTRL F6. Background printing
  6214.                 is enabled.
  6215.  
  6216.            Spooler queue is full
  6217.                 There are already 10 files in the queue.Wait until a
  6218.                 few have been printed and try again.
  6219.  
  6220.            Spooling resumed
  6221.                 You have  just issued  the Vp command while spooling
  6222.                 was suspended.
  6223.  
  6224.            Spooling suspended
  6225.                 You have  just issued  the Vp command while spooling
  6226.            
  6227.            NED v1.7x User's Guide                           Page 112
  6228.  
  6229.                 was active.
  6230.  
  6231.            Spooler terminated
  6232.                 The current  spool file  has been  aborted  and  all
  6233.                 files in the spooler queue have been removed.
  6234.  
  6235.            Strip off
  6236.                 NED will  not strip  trailing whitespace  characters
  6237.                 when writing a file.
  6238.  
  6239.            Strip on
  6240.                 NED will  strip trailing  whitespace characters when
  6241.                 writing a file.
  6242.  
  6243.            Unrecognized spooler command
  6244.                 Check  the  function  reference  section  for  valid
  6245.                 spooler commands.
  6246.            
  6247.            NED v1.7x User's Guide                           Page 113
  6248.  
  6249.            *********************************************************
  6250.            NED v1.7x User's Guide
  6251.            Index
  6252.  
  6253.                   '*' function                            18
  6254.                   'a' parameter                       23, 48
  6255.                   'At' files                          11, 31
  6256.                   'c' function                            19
  6257.                   'k' parameter                       36, 51
  6258.                   'n' parameter                           51
  6259.                   'p' parameter                       17, 44
  6260.                   'r' function                            19
  6261.                   'r' option                          33, 45
  6262.                   'r' parameter                           50
  6263.                   's' function                        18, 19
  6264.                   's' parameter                       24, 31
  6265.                   't' command                             51
  6266.  
  6267.                   1MARGIN command                     19, 53
  6268.                   43/50 line modes                    37, 71
  6269.  
  6270.                   ALT 0 to ALT 9                          16
  6271.                   ALT F1 to ALT F20                   33, 45
  6272.                   ALT generation method                   13
  6273.                   AREA command                        16, 40
  6274.                   ASCII tables                        37, 62
  6275.                   ASTERISK                                86
  6276.                   Auto-detab                          20, 66
  6277.                   Auto-entab                          20, 65
  6278.                   Auto-indent                         57, 68
  6279.                   AUTOINDENT statement                27, 73
  6280.  
  6281.                   Background printing                 30, 35
  6282.                   BACKUP command              15, 24, 27, 40
  6283.                   Backup dir                              20
  6284.                   BACKUP statement                        73
  6285.                   Begin recording                         64
  6286.                   Blank previous character                56
  6287.                   Block mode                          18, 60
  6288.                   BOLDFACE                                89
  6289.                   Brace match                             61
  6290.                   Browse                          15, 31, 46
  6291.  
  6292.                   Calculator                              36
  6293.                   CARAT                                   85
  6294.                   Centre justify                      17, 66
  6295.                   CGA                                  29,71
  6296.                   Character case flip                     68
  6297.                   CLOSE command                       16, 41
  6298.                   Colour                          27, 37, 71
  6299.                   COLOUR statement                    27, 72
  6300.                   Column 256                             102
  6301.                   Command area                    12, 15, 57
  6302.                   Command mode                        15, 41
  6303.                   Command selection mode                  15
  6304.            
  6305.            NED v1.7x User's Guide                           Page 114
  6306.  
  6307.                   Commands                                40
  6308.                   Comments                                26
  6309.                   Compulsory parameters                   40
  6310.                   CONDENSED                               90
  6311.                   CONFIG.NED                          26, 73
  6312.                   Copy a line                             17
  6313.                   Copy file to list                       32
  6314.                   Copy line                               17
  6315.                   Copy to last parameter string       18, 19
  6316.                   Copy to scrap                       17, 18
  6317.                   Copy to search string                   19
  6318.                   Current dir                             20
  6319.                   Current keystroke number                33
  6320.                   Current Search Expression               21
  6321.                   Cut to scrap                            19
  6322.  
  6323.                   Date/Time                               20
  6324.                   Date/Time string                        70
  6325.                   DATEFMT statement                   27, 73
  6326.                   Decimal                             36, 63
  6327.                   Default delimiter                       17
  6328.                   Delete character                        56
  6329.                   Delete file from list               33, 83
  6330.                   Delete line                             60
  6331.                   Delete list                             33
  6332.                   Delete next word                    17, 70
  6333.                   Delete previous word                17, 69
  6334.                   DETAB                               41, 74
  6335.                   Directory area                          32
  6336.                   DOLLAR                                  85
  6337.                   DOS command line                        11
  6338.                   DOS commands                        54, 61
  6339.                   DOS shell                               61
  6340.  
  6341.                   Editing window                      11, 12
  6342.                   EGA                                     29
  6343.                   ELONGATED                               90
  6344.                   Embedded printer commands               89
  6345.                   END command                     16, 23, 42
  6346.                   End window                              14
  6347.                   ENHANCED                                89
  6348.                   ENTAB                                   74
  6349.                   Entering parameters                     15
  6350.                   Erase line                          17, 68
  6351.                   Erase to end                            17
  6352.                   Erase to start                          66
  6353.                   ESCAPE SEQUENCES                        90
  6354.                   Example macro file                      34
  6355.                   Exit Command mode                       57
  6356.  
  6357.                   Field copy                          17, 67
  6358.                   FILE                                    26
  6359.                   File Display Mode                       31
  6360.                   File List                       11, 15, 30
  6361.                   FILE statement                      26, 74
  6362.                   Filename string                         68
  6363.                   FILL command                        42, 99
  6364.            
  6365.            NED v1.7x User's Guide                           Page 115
  6366.  
  6367.                   Finish recording                        33
  6368.                   First column                            28
  6369.                   First/Last line                         80
  6370.                   FIRSTCOL statement              28, 66, 75
  6371.                   Force a write                           16
  6372.                   FORM FEED                               89
  6373.                   Free memory                         20, 47
  6374.                   Freeze cursor                           58
  6375.                   Freeze/thaw                             62
  6376.                   Function keys                        8, 15
  6377.  
  6378.                   GOTO                                43, 68
  6379.                   Goto column 1                       14, 66
  6380.                   Goto mark                               65
  6381.                   GOTO statement                      28, 75
  6382.  
  6383.                   Hard Escape                         13, 72
  6384.                   Hard-tab                        13, 20, 69
  6385.                   HARDTAB statement                   28, 75
  6386.                   HELP command                        13, 43
  6387.                   Hexadecimal                         36, 37
  6388.                   High-bit characters                     13
  6389.  
  6390.                   IGNORE PAPER OUT                        89
  6391.                   Infix                               36, 63
  6392.                   INSERT                                 112
  6393.                   Insert mode                         13, 57
  6394.                   INSERT statement                    28, 75
  6395.                   Installation                             9
  6396.                   INTENSITY statement             28, 37, 76
  6397.                   Interword chars                 17, 20, 43
  6398.                   INTERWORD command                   17, 43
  6399.                   INTERWORD statement                 29, 76
  6400.  
  6401.                   JEJECT                                  44
  6402.                   Join line                           17, 60
  6403.                   Justified                               17
  6404.  
  6405.                   KEEP command                        34, 44
  6406.  
  6407.                   Last parameter              15, 19, 32, 40
  6408.                   Last search specification               15
  6409.                   LAUNDRY command                 16, 44, 97
  6410.                   LAYOUT statement                    29, 52
  6411.                   Left justify                    17, 18, 68
  6412.                   Left tab                                58
  6413.                   Line case flip                      17, 67
  6414.                   LINES PER INCH                          90
  6415.  
  6416.                   MACRO command                   15, 33, 44
  6417.                   Macro report                    34, 45, 64
  6418.                   Macros                                  33
  6419.                   MAXLINES statement          12, 29, 46, 77
  6420.                   Memory resident program                 61
  6421.                   MODE statement                      29, 77
  6422.                   Move block left/right a space       18, 82
  6423.                   Move block left/right a tabstop         81
  6424.                   Move to file list                       83
  6425.            
  6426.            NED v1.7x User's Guide                           Page 116
  6427.  
  6428.  
  6429.                   NCAL.EXE                                36
  6430.                   NHELP.EXE                               13
  6431.                   Notational conventions                   7
  6432.                   NTAB command                            45
  6433.  
  6434.                   OPEN command                15, 16, 30, 45
  6435.                   Open new line above                     57
  6436.                   Open new line below                     56
  6437.                   Open next file                      16, 59
  6438.                   Overtype mode                       13, 28
  6439.  
  6440.                   Page layout                             29
  6441.                   Parameter entry mode                    15
  6442.                   PATH                                     9
  6443.                   PERIOD                                  85
  6444.                   Positioning keys                        13
  6445.                   Previous/Next character                 56
  6446.                   Previous/Next line                      55
  6447.                   Previous/Next page                      55
  6448.                   Previous/Next word                  14, 56
  6449.                   Print a file                            34
  6450.                   PRINT command                       34, 47
  6451.                   Print the current file                  47
  6452.  
  6453.                   QUIT command                        23, 48
  6454.  
  6455.                   Re-sort the directory                   32
  6456.                   Record macro                            33
  6457.                   Recording macros                    33, 44
  6458.                   Redraw                                  62
  6459.                   Regular Expression Language     21, 49, 85
  6460.                   Rename an existing macro                33
  6461.                   REPLACE command             15, 21, 23, 48
  6462.                   Restore                             17, 59
  6463.                   Restore above                       18, 60
  6464.                   Restore scrap                           17
  6465.                   Retrace interval                        71
  6466.                   Reverse Video                       18, 32
  6467.                   Right justify                           69
  6468.                   Right tab                               13
  6469.                   Ruler display                       12, 68
  6470.                   RULER statement                     23, 77
  6471.  
  6472.                   Save configuration                      87
  6473.                   Save file                               16
  6474.                   Scrap buffer                        12, 17
  6475.                   Screen colours                          37
  6476.                   Scroll bar                              33
  6477.                   Search down                             21
  6478.                   Search from top                         21
  6479.                   Search keys                             21
  6480.                   Search up                               21
  6481.                   Select file                             84
  6482.                   Select File List                        58
  6483.                   Set/remove mark                         65
  6484.                   SHIFT TAB                           13, 58
  6485.                   Snow                                    71
  6486.            
  6487.            NED v1.7x User's Guide                           Page 117
  6488.  
  6489.                   SNOW statement                      29, 78
  6490.                   Sort directory                          84
  6491.                   SORT statement                      29, 78
  6492.                   SPECIAL CHARACTERS                      87
  6493.                   Special escape sequences                90
  6494.                   Special keys                            15
  6495.                   SPECIFY                 15, 18, 21, 48, 49
  6496.                   Split line                          17, 60
  6497.                   Split line enter                    19, 72
  6498.                   SPOOL statement                     30, 78
  6499.                   Spooler                                 35
  6500.                   SQUARE BRACKETS                         86
  6501.                   Start next line                     14, 68
  6502.                   Start previous line                 14, 69
  6503.                   Start window                        14, 66
  6504.                   Start/End line                      13, 55
  6505.                   Status Screen                           20
  6506.                   Strip                               20, 51
  6507.                   STRIP statement                     30, 78
  6508.                   SUBSCRIPT                               89
  6509.                   SUPERSCRIPT                             89
  6510.                   System information                      11
  6511.                   System window                           11
  6512.  
  6513.                   TAB                             13, 18, 58
  6514.                   TABSET                                  49
  6515.                   TABSET statement                    30, 78
  6516.                   Terminate Stay Resident             47, 61
  6517.                   Timeslice                           30, 50
  6518.                   Top/Bottom screen                   14, 55
  6519.                   Trailing whitespace characters      30, 64
  6520.                   Typewriter                              12
  6521.  
  6522.                   UNDERLINE                               90
  6523.                   Underscore                              18
  6524.                   Undo                                18, 69
  6525.                   USE command                     31, 34, 50
  6526.  
  6527.                   VGA                                     29
  6528.                   VSPOOL command                      36, 50
  6529.  
  6530.                   Wildcard specification              11, 31
  6531.                   Word wrap                               70
  6532.                   WORDWRAP statement              20, 30, 53
  6533.                   WRITE command                       16, 51
  6534.                   Write list                              33
  6535.  
  6536.                   XSAVE command                       31, 51
  6537.  
  6538.                   YLAYOUT command                     35, 52
  6539.  
  6540.                   ZSORT command                           52
  6541.