home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 002 / dfedit.arc / DFEDIT.DOC < prev    next >
Encoding:
Text File  |  1985-04-20  |  95.8 KB  |  2,231 lines

  1.  
  2.            IBM/TI PC Directory File Editor (DF-EDIT)
  3.                    User Documentation
  4.  
  5.                                Table of Contents
  6.  
  7.  
  8.               Section 1 - DF-EDIT Overview
  9.  
  10.         1.1  Introduction                                       1-1
  11.         1.2  Distribution Disk Contents                         1-2
  12.         1.3  Production Installation                            1-2
  13.     1.4  DFEDIT Parameter                    1-2
  14.     1.5  Color Customization                1-3
  15.     1.6  Prompt Editing Functions                1-5
  16.  
  17.  
  18.                          Section 2 - Edit File Utility
  19.  
  20.         2.1  Introduction                                       2-1
  21.         2.2  Tool Invocation                                    2-1
  22.         2.3  Screen Format                                      2-1
  23.         2.4  Editor Functions                                   2-2
  24.         2.4.1  Basic Editing Functions                          2-4
  25.         2.4.2  Word Functions                                   2-7
  26.         2.4.3  Miscellaneous Key Functions                      2-8
  27.         2.4.4  Alternate Key Functions                          2-9
  28.     2.4.5  Control Key Functions                2-10
  29.     2.5  Editor Commands                    2-12
  30.  
  31.  
  32.                Section 3 - Show Directory Utility
  33.  
  34.         3.1  Introduction                                       3-1
  35.         3.2  Tool Invocation                                    3-1
  36.         3.3  Screen Format                                      3-1
  37.         3.4  File Commands                                      3-2
  38.         3.5  Display Functions                                  3-5
  39.         3.6  Global Commands                                    3-7
  40.  
  41.  
  42.                          Section 4 - Show File Utility
  43.  
  44.         4.1  Introduction                                       4-1
  45.         4.2  Screen Format                                      4-1
  46.         4.3  Commands and Functions                             4-1
  47.  
  48.  
  49.              Section 5 - Print File Utility
  50.  
  51.         5.1  Introduction                                       5-1
  52.         5.2  Print Format                                       5-1
  53.  
  54.  
  55.                Section 6 - Text Formatter Utility
  56.  
  57.         6.1  Introduction                                       6-1
  58.         6.2  Commands                                           6-1
  59.         6.3  Formatting Rules                                   6-2
  60.     User Documentation                     Introduction
  61.  
  62.  
  63.                                   Section 1
  64.                                        
  65.                   IBM/TI PC Directory File Editor (DF-EDIT)
  66.  
  67.  
  68.     1.1  Introduction
  69.     
  70.     This is a a set of utilities which display, edit, and print text files,
  71.     and  display  DOS  2.x directories.  These utilities execute on the IBM
  72.     Persional Computer under PC-DOS 2.0, 2.1, or 3.0 or the TI Professional
  73.     Computer under MS-DOS version 2.1 with  a  minimum  of  128K  bytes  of
  74.     memory. 
  75.     
  76.     The set of utilities consist of following programs. 
  77.  
  78.       COLORS  A color configuration utility which customizes the colors for
  79.               the various display areas in the utilities. 
  80.  
  81.       EDIT    The  Edit  File  utility  is  a full screen text editor which
  82.               provides  a  powerful  set  of  easy  to  use  functions  and
  83.               commands.  The Edit File utility can be invoked by the "EDIT"
  84.               DOS  command  for  a specific file or from the Show Directory
  85.               utility.  A file can be displayed  while  in  the  Edit  File
  86.               utility with the Show File utility. 
  87.  
  88.       PF      The  Print  File  utility  copies  a text file to the printer
  89.               optionally adding page headers  which  give  the  file  name,
  90.               current  date  and  time,  and  page number.  This utility is
  91.               useful for printing program source text or other  unformatted
  92.               text.   This  utility  can be invoked by the "PF" DOS command
  93.               for a specific file or from the Show Directory utility. 
  94.  
  95.       ROFF    Since the Edit File utility is not a word processor, a simple
  96.               text formatter is also provided which formats a document  for
  97.               printing.   This  formatter  is taken from "Software Tools in
  98.               Pascal" by Kernighan and Plauger and is similar to the Runoff
  99.               formatting utility. 
  100.  
  101.       SF      The Show File utility displays a text file on the screen  and
  102.               allows  the  window  into  the  file  to  be moved forward or
  103.               backward.  This utility  can  be  invoked  by  the  "SF"  DOS
  104.               command  for  a  specific file or from the Edit File and Show
  105.               Directory utilities. 
  106.  
  107.       SHOW    The Show Directory utility displays all or some of the  names
  108.               of  the  files  on  a  disk with information about the files.
  109.               From this display, files can be copied,  deleted,  displayed,
  110.               edited,  printed, or renamed by simply positioning the cursor
  111.               to  the  desired  file  name  and  using  a  single   command
  112.               character.  This utility is invoked by the "SHOW" DOS command
  113.               using a directory name similar to the standard "DIR" command.
  114.               From  this  utility,  the Edit File, Print File, or Show File
  115.               utilities can be invoked. 
  116.  
  117.  
  118.  
  119.  
  120.  
  121.                                       1-1                                  
  122.     User Documentation                                         Introduction
  123.  
  124.  
  125.     1.2  Distribution Disk Contents
  126.  
  127.     The contents of the distribution disk are listed below. 
  128.  
  129.             README  1ST     Read first documentation
  130.             INSTALL BAT     Installation batch stream
  131.             DFEDIT  DOC     Documentation file
  132.             COLORS  EXE     Color Configuration utility
  133.             EDIT    EXE     Edit File utility
  134.             PF      EXE     Print File utility
  135.             ROFF    EXE     Text Formatter utility
  136.             SF      EXE     Show File utility
  137.             SHOW    EXE     Show Directory utility
  138.             EDIT    HLP     Editor Commands help file
  139.             SHOW    HLP     Show Directory help file
  140.  
  141.  
  142.     1.3  Product Installation
  143.     
  144.     The following procedure should be used to install  these  utilities  on
  145.     any  and  all  working  disks.  If you have a Winchester disk, you will
  146.     only have to do this procedure once.  Otherwise if you only have floppy
  147.     disks, you  will  need  to  follow  this  procedure  for  each  working
  148.     diskette.   Insert  the  distribution  disk in drive A and your working
  149.     diskette in drive B.  Then invoke the installation  batch  stream  with
  150.     the  following  command,  where  <drive>  is the drive letter where the
  151.     utilities are to be installed. 
  152.     
  153.       A:INSTALL <drive>:
  154.     
  155.     This batch stream will create a "\DFEDIT" directory and copy  the  help
  156.     files  and  utilities to this directory.  If you do not want to use all
  157.     the utilities, you may want to delete the utilities which you will  not
  158.     be using.  Each program is self-contained and does not invoke the other
  159.     programs.   Then  you  need  to  use  the following "PATH" directive to
  160.     instruct DOS to look in the "\DFEDIT" directory for the utilities. 
  161.     
  162.       PATH \DFEDIT
  163.     
  164.     This path directive should be placed in the "AUTOEXEC.BAT" file so that
  165.     you do not need to set it each time you boot your machine. 
  166.  
  167.  
  168.     1.4  DFEDIT Parameter
  169.     
  170.     Normally  the  "\DFEDIT"  directory  contains  the   help   files   and
  171.     customization  files  used  the  utilities.  You may want to copy these
  172.     files to a RAM disk for faster access or move them to some  other  disk
  173.     or directory.  Therefore you can use the DOS "SET" statement to specify
  174.     a  value  for  the "DFEDIT" parameter which indicates where these files
  175.     should be found.  An example set command is given below  and  indicates
  176.     the default if none is specified. 
  177.     
  178.       SET DFEDIT=\DFEDIT
  179.     
  180.     This  set directive should be placed in the "AUTOEXEC.BAT" file so that
  181.  
  182.  
  183.                                       1-2                                  
  184.     User Documentation                                         Introduction
  185.  
  186.  
  187.     you do not need to set it each time you boot your machine. 
  188.  
  189.  
  190.     1.5  Color Customization
  191.     
  192.     The colors used by the various utilities can  be  customized  with  the
  193.     Colors utility.  This utility is invoked by the following DOS command. 
  194.     
  195.       COLORS
  196.     
  197.     The  following  screen  is  then  displayed  for  the  TI  Professional
  198.     Computer. 
  199.  
  200.         Color number, Load, Normal, Quit, Reverse, Save, Underline
  201.     
  202.             Border lines                        1-Blue
  203.             Command lines                       2-Red
  204.             Display lines                       3-Magenta
  205.             Dos screen                          4-Green
  206.             Error messages                      5-Cyan
  207.             Information lines                   6-Yellow
  208.             Selected block lines                7-White
  209.  
  210.     The following screen is then displayed for the IBM Personal Computer. 
  211.  
  212.         Color number, Load, Quit, Save
  213.     
  214.             Border lines                        0-Black
  215.             Command lines                       1-Blue
  216.             Display lines                       2-Green
  217.             Dos screen                          3-Cyan
  218.             Error messages                      4-Red
  219.             Information lines                   5-Magenta
  220.             Selected block lines                6-Brown
  221.                                                 7-Light Gray
  222.                                                 8-Dark Gray
  223.                                                 9-Light Blue
  224.                                                 A-Light Green
  225.                                                 B-Light Cyan
  226.                                                 C-Light Red
  227.                                                 D-Light Magenta
  228.                                                 E-Yellow
  229.                                                 F-White
  230.     
  231.                     Select 0 to F for desired foreground color
  232.                     Use alt-0 to alt-7 for background color
  233.  
  234.     Initially the cursor is positioned beside the  "Border  lines"  string.
  235.     The  cursor then can be moved to each of the display types using the up
  236.     and down cursor keys, and each color can be set by using the number  of
  237.     the  desired  color.  On the IBM Personal Computer the background color
  238.     can be set by using the 'alt' number keys.  Each of the types of  lines
  239.     is described below. 
  240.  
  241.        * "Border  lines"  specifies  the  color  for display borders.  This
  242.          color is not used in the current set of utilities. 
  243.  
  244.  
  245.                                       1-3                                  
  246.     User Documentation                                         Introduction
  247.  
  248.  
  249.        * "Command lines" specifies the color for the top and  bottom  lines
  250.          of  each utility display.  These lines display the valid commands,
  251.          function keys and other global information. 
  252.  
  253.        * "Display lines" specifies the color for the  main  text  lines  in
  254.          each utilities display. 
  255.  
  256.        * "Dos  screen"  specifies  the  color  to be used when each utility
  257.          returns to DOS. 
  258.  
  259.        * "Error messages" specifies the color in which any  error  messages
  260.          are displayed. 
  261.  
  262.        * "Information  lines"  specifies  the color used to display general
  263.          information such as the directory header information in SHOW. 
  264.  
  265.        * "Selected block lines" specifies the color of the  selected  block
  266.          lines  in  the  editor  and the current file in the show directory
  267.          utility. 
  268.  
  269.     After each of the colors has be  changed  to  the  desired  color,  the
  270.     colors  must  be  saved  with the 'Save' command.  All the commands are
  271.     described below. 
  272.  
  273.       Load      Load a color data file so that it  can  be  modified.   The
  274.                 default  file  name  is "<dfedit>\COLORS.DAT" The following
  275.                 prompt requests the data file name. 
  276.                 
  277.                   Load Colors - Enter file pathname:
  278.  
  279.       Normal    Use normal color  rather  than  reverse  and/or  underline.
  280.                 This   option  is  only  valid  for  the  TI  Profressional
  281.                 Computer. 
  282.  
  283.       Quit      Quit the color modification utility and return to DOS. 
  284.  
  285.       Reverse   Use black text on a color background.  This option is  only
  286.                 valid for the TI Profressional Computer. 
  287.  
  288.       Save      Save  the  color  information in a data file for use by all
  289.                 the utilities.  The default file name used by each  utility
  290.                 is  "<dfedit>\COLORS.DAT".   The  following prompt requests
  291.                 the data file name. 
  292.                 
  293.                   Save Colors - Enter file pathname:
  294.  
  295.       Underline Use underline text color for display.  This option is  only
  296.                 valid for the TI Profressional Computer. 
  297.  
  298.  
  299.  
  300.  
  301.  
  302.  
  303.  
  304.  
  305.  
  306.  
  307.                                       1-4                                  
  308.     User Documentation                                         Introduction
  309.  
  310.  
  311.     1.6  Prompt Editing Functions
  312.     
  313.     All  of the utilities use prompts to request information from the user.
  314.     These prompts are normally displayed on the top line of the screen with
  315.     the prompt area underlined and the current prompt response displayed in
  316.     reverse video.  In the EDIT and SHOW utilities,  the  editor  functions
  317.     mappings  are  used.  The editor function name is given in parenthesis.
  318.     The section describes the functions which  can  be  used  to  edit  the
  319.     prompt response. 
  320.  
  321.       Abort Prompt - ESC (CmdMd)
  322.           Abort the current prompt and command. 
  323.  
  324.       Accept Current Response - RETURN (Retrn)
  325.           Accept the current complete response for the prompt. 
  326.  
  327.       Back Space One - BACKSPACE (BkSp)
  328.           Delete the character to the left of the present cursor position. 
  329.  
  330.       Delete Character - DEL (DelCh)
  331.           Delete the character at the present cursor position. 
  332.  
  333.       Delete End-of-Line and Accept - LINE FEED (Down)
  334.           Delete all the characters from the present cursor position to the
  335.           end of the response and accept the resulting response. 
  336.  
  337.       Move Left One - Left Arrow (Left)
  338.           Move  the cursor to the left one position unless it is already at
  339.           the beginning of the prompt area. 
  340.  
  341.       Move Right One - Right Arrow (Right)
  342.           Move the cursor to the right one position unless it is already at
  343.           the end of the current response. 
  344.  
  345.       Toggle Insert Character Mode - INS (InsCh)
  346.           Toggle the insert character mode which enables characters  to  be
  347.           inserted rather than overtype characters in the response. 
  348.  
  349.  
  350.  
  351.  
  352.  
  353.  
  354.  
  355.  
  356.  
  357.  
  358.  
  359.  
  360.  
  361.  
  362.  
  363.  
  364.  
  365.  
  366.  
  367.  
  368.  
  369.                                       1-5                                  
  370.     User Documentation                    Edit File Utility
  371.  
  372.  
  373.                                   Section 2
  374.                                        
  375.                               Edit File Utility
  376.  
  377.  
  378.     2.1  Introduction
  379.     
  380.     The  edit file utility allows an ASCII text file to be modified using a
  381.     full screen editor.  The editor has two main modes, "edit  mode"  where
  382.     the  cursor  is on the screen allowing textual changes to the file, and
  383.     "command mode" where the cursor  is  on  a  command  row.   The  editor
  384.     supports  editing  files up to 256 columns wide.  The right margin must
  385.     be set to a large enough value if wide lines are to be  modified.   The
  386.     default  right  margin  is set at column 80 unless the tab line defines
  387.     another value for the right margin. 
  388.  
  389.  
  390.     2.2  Tool Invocation
  391.     
  392.     The edit file utility is invoked by the  "Edit"  command  in  the  show
  393.     directory utility and by the following DOS command. 
  394.     
  395.       EDIT <file_name>
  396.     
  397.     If  the  edit  file  utility  is  invoked  with the DOS command without
  398.     specifing a file name, the following prompt requests  the  file  to  be
  399.     edited.   In  this  mode the edit file utility will continue to request
  400.     the name of a file to be edited until an empty file name or the ESC key
  401.     is used to terminate the edit file utility. 
  402.     
  403.       Edit File - Enter pathname:
  404.     
  405.     When the editor is invoked, the editor enters edit mode where the  text
  406.     of  the file can be modified.  The functions supported in edit mode are
  407.     described in the Editor Functions section.   Finally  command  mode  is
  408.     described in the Editor Commands section. 
  409.  
  410.  
  411.     2.3  Screen Format
  412.     
  413.     The  screen for the editor is divided into three parts.  The first part
  414.     of the screen is the top row which displays the  tabs  and  margins  in
  415.     edit mode and the command line in command mode.  The second part of the
  416.     screen  is  the  part between the top and bottom row which displays the
  417.     file being edited.  This  part  of  the  screen  is  called  the  "edit
  418.     window".   If  a  non-existent  file  or an empty file is specified for
  419.     editing, a single blank line is displayed in the window.   The  end  of
  420.     the  file  is  indicated  by a "*eof" line displayed in the edit window
  421.     after the last line of the file.  The last part of the  screen  is  the
  422.     bottom  row  which  displays the function key definitions for edit mode
  423.     and file information in command mode. 
  424.     
  425.     During edit mode the top row of the screen displays a ruler line  which
  426.     defines  the current tab settings and the left and right margins.  Each
  427.     tab is indicated by a "T", the left margin is indicated by a  "L",  and
  428.     the  right  margin is indicated by a "R".  Initially the left margin is
  429.  
  430.  
  431.                                       2-1                                  
  432.     User Documentation                                    Edit File Utility
  433.  
  434.  
  435.     set at column 1, the right margin is set at column 80, and the tabs are
  436.     set 8 spaces apart starting from the left margin.  The tab settings and
  437.     margins can be changed with the "Tabs" command described in the  Editor
  438.     Commands section. 
  439.     
  440.     During  command  mode the top row of the screen is the command line and
  441.     defines the valid commands.  These commands are described in the Editor
  442.     Commands section. 
  443.     
  444.     During edit mode the bottom row of the screen defines  the  assignments
  445.     of the numeric function keys.  The IBM PC has ten function keys and the
  446.     TI PC has twelve function keys. 
  447.  
  448.     During  command mode the bottom row displays information about the file
  449.     being edited.  The information is described below. 
  450.  
  451.         file name           Name of file being edited
  452.         Current=line        Current line number
  453.         Total=lines         Number of lines in the file
  454.         Block=first/last    Number of the first and last line
  455.                             of the selected block
  456.  
  457.  
  458.     2.4  Editor Functions
  459.  
  460.     When the editor is invoked, the cursor is placed on  the  text  in  the
  461.     edit window.  In this mode, the cursor can be moved in the edit window,
  462.     the window can be moved over the file being edited, and the text in the
  463.     window  can be modified.  Each of these functions is invoked by using a
  464.     single key.  The editor functions with  their  default  associated  key
  465.     assignments  are  described  in  the following sections.  The following
  466.     table gives the editor function description, section  in  which  it  is
  467.     described, and the short function name. 
  468.  
  469.  
  470.  
  471.  
  472.  
  473.  
  474.  
  475.  
  476.  
  477.  
  478.  
  479.  
  480.  
  481.  
  482.  
  483.  
  484.  
  485.  
  486.  
  487.  
  488.  
  489.  
  490.  
  491.  
  492.  
  493.                                       2-2                                  
  494.     User Documentation                                    Edit File Utility
  495.  
  496.  
  497.                     Function              Section     Name
  498.                     
  499.                     Adjust Line Mode        2.4.4     AdjLn
  500.                     Back Delete             2.4.1     BkDel
  501.                     Back Space              2.4.1     BkSp
  502.                     Back Tab                2.4.1     BkTab
  503.                     Back Word               2.4.2     BkWd
  504.                     Beginning of File       2.4.1     BegFl
  505.                     Bottom Row              2.4.3     BotLn
  506.                     Center Line             2.4.4     CenLn
  507.                     Command Mode            2.4.1     CmdMd
  508.                     Control Character       2.4.5     CtlCh
  509.                     Delete Character        2.4.1     DelCh
  510.                     Delete End of Line      2.4.1     DelEL
  511.                     Delete Line             2.4.1     DelLn
  512.                     Delete Word             2.4.2     DelWd
  513.                     Down One Line           2.4.1     Down
  514.                     Duplicate Line          2.4.4     DupLn
  515.                     End of File             2.4.1     EndFl
  516.                     Find Next               2.4.5     FndNx
  517.                     First Word              2.4.2     FstWd
  518.                     Fill Paragraph          2.4.4     Fill
  519.                     Home Position           2.4.1     Home
  520.                     Insert Character        2.4.1     InsCh
  521.                     Insert Line             2.4.1     InsLn
  522.                     Insert Line Mode        2.4.1     InsMd
  523.                     Join Line               2.4.4     Join
  524.                     Last Word               2.4.2     LstWd
  525.                     Left Margin             2.4.3     BegLn
  526.                     Left One Character      2.4.1     Left
  527.                     Line Down               2.4.3     LnDwn
  528.                     Line Up                 2.4.3     LnUp
  529.                     Mark Block              2.4.1     Block
  530.                     Next Line               2.4.1     Retrn
  531.                     Next Tab                2.4.1     Tab
  532.                     Next Word               2.4.2     NxtWd
  533.                     Page Down               2.4.1     PgDwn
  534.                     Page Up                 2.4.1     PgUp
  535.                     Paste Text              2.4.4     Paste
  536.                     Replace Next            2.4.5     RepNx
  537.                     Right Margin            2.4.3     EndLn
  538.                     Right One Character     2.4.1     Right
  539.                     Set Tab Stop            2.4.4     SetTb
  540.                     Split Line              2.4.4     Split
  541.                     Top Row                 2.4.3     TopLn
  542.                     Undelete Line           2.4.1     UndLn
  543.                     Undelete Word           2.4.2     UndWd
  544.                     Undo Line Changes       2.4.4     Undo
  545.                     Up One Line             2.4.1     Up
  546.  
  547.                        Editor Function Key Assignements
  548.  
  549.  
  550.  
  551.  
  552.  
  553.  
  554.  
  555.                                       2-3                                  
  556.     User Documentation                                    Edit File Utility
  557.  
  558.  
  559.     2.4.1  Basic Editing Functions
  560.  
  561.     The most common editor functions by default are assigned to the numeric
  562.     function  keys,  the cursor keys, and other labeled function keys.  The
  563.     bottom row of the screen gives the current assignment  of  the  numeric
  564.     function  keys.   The following table gives the basic function keys and
  565.     their default assigned function. 
  566.  
  567.  
  568.                             Basic Editor Functions
  569.  
  570.                 Back Space      BkSp        Back Space
  571.                 Del             DelCh       Delete Character
  572.                 Down            Down        Down One Line
  573.                 Esc             CmdMd       Enter Command Mode
  574.                 F1, PgDn        PgDwn       Page Down
  575.                 F2, PgUp        PgUp        Page Up
  576.                 F3              BegFl       Beginning of File
  577.                 F4              EndFl       End of File
  578.                 F5              DelLn       Delete Line
  579.                 F6              DelEL       Delete End of Line
  580.                 F7              UndLn       Undelete Line
  581.                 F8              Block       Mark Block
  582.                 F9              InsLn       Insert Line
  583.                 F10             InsMd       Insert Line Mode
  584.                 Home            Home        Home Position
  585.                 Ins             InsCh       Insert Character
  586.                 Left            Left        Left One Character
  587.                 Return          Retrn       Next Line
  588.                 Right           Right       Right One Character
  589.                 Tab             Tab         Next Tab
  590.                 shift Tab       BkTab       Back Tab
  591.                 Up              Up          Up One Line
  592.  
  593.     These functions are described in the following paragraphs. 
  594.  
  595.       Back Space (BkSp) - Back Space
  596.           Move the cursor left one character position but not past the left
  597.           margin.  If in insert character mode, the previous  character  is
  598.           deleted. 
  599.  
  600.       Back Tab (BkTab) - shift Tab
  601.           Move  the cursor backward on the present line to the previous tab
  602.           stop, unless the cursor is already at the left margin.  The  tabs
  603.           currently  defined are displayed on the ruler line at the top row
  604.           of the screen.  If the previous tab stop is to the  left  of  the
  605.           left most column being display, the window is shifted to the left
  606.           by  a multiple of 10 columns in order for the cursor to remain in
  607.           the window. 
  608.  
  609.       Beginning of File (BegFl) - F3
  610.           Position the edit window so that the beginning  of  the  file  is
  611.           displayed  in  the  window,  and the cursor is placed at the left
  612.           margin of the first line in the file. 
  613.  
  614.  
  615.  
  616.  
  617.                                       2-4                                  
  618.     User Documentation                                    Edit File Utility
  619.  
  620.  
  621.       Delete Character (DelCh) - Del
  622.           Delete the character under the cursor, and move the characters to
  623.           the right of the cursor left one position. 
  624.  
  625.       Delete End of Line (DelEL) - F6
  626.           Delete the  characters  on  the  present  line  from  the  cursor
  627.           position to the right margin.  These characters are placed in the
  628.           line  delete buffer so that the first deleted character is placed
  629.           in the same column position as the first character on the present
  630.           line.  These characters can then be restored with  the  "Undelete
  631.           Line" or "Paste Line" function. 
  632.  
  633.       Delete Line (DelLn) - F5
  634.           Delete  the  present line and move the following lines up one row
  635.           in the window.  The deleted line is placed  in  the  line  delete
  636.           buffer  so  that  it  can  be  restored  with the "Undelete Line"
  637.           function.  If the last remaining line of the file is  deleted,  a
  638.           single blank line will be displayed. 
  639.  
  640.       Down One Line (Down) - Down (TI - Line Feed)
  641.           Move  the cursor down one row in the edit window to the next line
  642.           in the file.  The cursor is left in the same column position.  If
  643.           the present line is near the bottom row of the window,  then  the
  644.           window  is  scrolled  down  one line.  The cursor cannot be moved
  645.           onto the "*eof" line on the display. 
  646.  
  647.       End of File (EndFl) - F4
  648.           Position the edit window so that the end of the file is displayed
  649.           in the window, and the cursor is placed at the left margin of the
  650.           last line in the file. 
  651.  
  652.       Enter Command Mode (CmdMd) - ESC
  653.           Terminate edit mode and invoke the command mode described in  the
  654.           Editor Commands section. 
  655.  
  656.       Home Position (Home) - Home
  657.           Move  the  cursor  to  the left margin of the top row of the edit
  658.           window. 
  659.  
  660.       Insert Character Mode (InsCh) - Ins
  661.           Change the mode so  that  textual  characters  will  be  inserted
  662.           rather  than  replace  the  characters on the line.  The inserted
  663.           characters are placed before the character under the  cursor  and
  664.           all  the  characters  from  the cursor to the end of the line are
  665.           moved right one position.  If a character is already at the right
  666.           margin, characters cannot be inserted so  a  "beep"  is  sounded.
  667.           The  insert  character mode is terminated by the use of any other
  668.           editor function except the Back Space  (BkSp)  function.   Insert
  669.           character mode is indicated by a underline cursor rather than the
  670.           normal block cursor which indicates overtype mode. 
  671.  
  672.       Insert Line (InsLn) - F9
  673.           Insert a blank line into the file before the present line and the
  674.           following  lines are moved down one row.  The cursor is placed on
  675.           the inserted blank line at  the  present  column  position.   The
  676.           "Next Line" function is used to insert blank lines after the last
  677.  
  678.  
  679.                                       2-5                                  
  680.     User Documentation                                    Edit File Utility
  681.  
  682.  
  683.           line of the file. 
  684.  
  685.       Insert Line Mode (InsMd) - F10
  686.           Toggle the insert line mode for the "Next Line" function.  If the
  687.           insert  line  mode  is  off,  the  "Next  Line"  function  simply
  688.           positions the cursor on the first word of the next line.  If  the
  689.           insert  line  mode  is on, the "Next Line" function will insert a
  690.           blank line after the present line.  This  is  useful  for  adding
  691.           several  textual  lines  to  the  file  without having to use the
  692.           "Insert Line" function for each new line.  Insert  line  mode  is
  693.           indicated by the small "M" for manual insert or "A" for automatic
  694.           insert at the bottom right-hand corner of the edit screen. 
  695.  
  696.       Left One Character (Left) - Left
  697.           Move the cursor left one character position but not past the left
  698.           margin. 
  699.  
  700.       Mark Block (Block) - F8 (TI - F11)
  701.           Use  the  present  line  as  the  beginning or ending line of the
  702.           selected block.  If a block is not  selected,  then  the  present
  703.           line is a one line block.  If a one line block has been selected,
  704.           then  the  present  line  becomes  the beginning or ending of the
  705.           block.  If a block is already selected, then the present line  is
  706.           a  one  line  block.   See  the  Editor  Commands  section  for a
  707.           description of the Block commands.  The marked lines are normally
  708.           displayed in another color or underlined. 
  709.  
  710.       Next Line (Retrn) - Return
  711.           Move the cursor to the first non-blank character on the next line
  712.           of the file.  If the present line is near the bottom row  of  the
  713.           window,  then  the  window is scrolled down one line.  If "Insert
  714.           Line Mode" is on, indicated by "A" on the function key row,  then
  715.           a  blank  line  will  be inserted after the present line, and the
  716.           cursor will be placed on the blank line below the first non-blank
  717.           character on the present line.  If this function is used  on  the
  718.           last  line  of the file, a blank line will be inserted at the end
  719.           of the file. 
  720.  
  721.       Next Tab (Tab) - Tab
  722.           Move the cursor forward on the present line to the next tab stop,
  723.           unless the cursor is already  at  the  right  margin.   The  tabs
  724.           currently  defined are displayed on the ruler line at the top row
  725.           of the screen.  If the next tab stop is to the right of the right
  726.           most column being display, the window is shifted to the right  by
  727.           a multiple of 10 columns in order for the cursor to remain in the
  728.           window. 
  729.  
  730.       Page Down (PgDwn) - F1, PgDn
  731.           Scroll  the  edit window down or forward by 20 lines but not past
  732.           the end of the file.  The cursor is normally left on the same row
  733.           of the window. 
  734.  
  735.       Page Up (PgUp) - F2, PgUp
  736.           Scroll the edit window up or backward by 20 lines  but  not  past
  737.           the  beginning  of  the file.  The cursor is normally left on the
  738.           same row of the window. 
  739.  
  740.  
  741.                                       2-6                                  
  742.     User Documentation                                    Edit File Utility
  743.  
  744.  
  745.       Right One Character (Right) - Right
  746.           Move the cursor right one character position  but  not  past  the
  747.           right margin. 
  748.  
  749.       Undelete Line (UndLn) - F7
  750.           Insert the line currently in the delete line buffer into the file
  751.           before  the  present  line.  The "Delete Line" and "Delete End of
  752.           Line" functions place information into the  delete  line  buffer.
  753.           Several of the Block commands also use the the delete line buffer
  754.           to delete, copy, or move lines. 
  755.  
  756.       Up One Line (Up) - Up
  757.           Move  the  cursor  up  one row in the edit window to the previous
  758.           line in the  file.   The  cursor  is  left  in  the  same  column
  759.           position.  If the present line is near the top row of the window,
  760.           then the window is scrolled up one line. 
  761.  
  762.  
  763.     2.4.2  Word Functions
  764.  
  765.     Several  functions  are  available  which  operate on words rather than
  766.     characters or lines.  A word is any sequence of characters separated by
  767.     one or more blanks.  The "ctrl" left and right arrow keys are  used  to
  768.     move forward or backward by words.  The "alt" left and right arrow keys
  769.     are  used  to move to the first and last word on a line.  The "ctrl" F5
  770.     (DelLn) and F7 (UndLn) keys are used to delete and undelete words.  The
  771.     word operations are summarized in the following table. 
  772.  
  773.  
  774.                             Editor Word Functions
  775.  
  776.                 ctrl F3         FstWd       First Word of Line
  777.                 ctrl F4         LstWd       Last Word of Line
  778.                 ctrl F5         DelWd       Delete Word
  779.                 ctrl F7         UndWd       Undelete Word
  780.                 ctrl Left       BkWd        Back Word
  781.                 ctrl Right      NxtWd       Next Word
  782.  
  783.     These functions are described in the following paragraphs. 
  784.  
  785.       Auto Word Wrap
  786.           When typing a word near the right margin of a line, a "beep" will
  787.           be sounded when the character at the  right  margin  is  entered.
  788.           Then  if  a  non-blank character is entered, the last word on the
  789.           line will be wrapped to a new line  inserted  after  the  current
  790.           line.   If  a  blank character is entered, a new line is inserted
  791.           after the current line and the cursor is placed at the  beginning
  792.           of the new line.  This function does not require a special key to
  793.           invoke  and  is  valid  in  all modes of text entry except insert
  794.           character mode. 
  795.  
  796.       Back Word (BkWd) - ctrl Left
  797.           Move the cursor backward to the end of the previous  word  either
  798.           on the current line or on a previous line. 
  799.  
  800.  
  801.  
  802.  
  803.                                       2-7                                  
  804.     User Documentation                                    Edit File Utility
  805.  
  806.  
  807.       Delete Word (DelWd) - ctrl F5
  808.           Delete  the  word  from the present cursor position to either the
  809.           beginning of the next word or to the end of the line.  This  word
  810.           is  placed in a delete word buffer which can be restored with the
  811.           "Undelete Word" function. 
  812.  
  813.       First Word of Line (FstWd) - ctrl F3 (TI - alt Left)
  814.           Move the cursor to the first non-blank character on  the  present
  815.           line. 
  816.  
  817.       Last Word of Line (LstWd) - ctrl F4 (TI - alt Right)
  818.           Move the cursor after the last non-blank character on the present
  819.           line.   This  is useful when you want to add something to the end
  820.           of the present line. 
  821.  
  822.       Next Word (NxtWd) - ctrl Right
  823.           Move the cursor forward to the beginning of the next word  either
  824.           on the current line or on a following line. 
  825.  
  826.       Undelete Word (UndWd) - ctrl F7
  827.           Insert  the  last word deleted with the "Delete Word" function at
  828.           the present cursor position if it will fit on the present line. 
  829.  
  830.  
  831.     2.4.3  Miscellaneous Key Functions
  832.  
  833.     This section describes several  miscellaneous  editor  functions.   The
  834.     cursor can be moved to the boundaries of the screen by using shift with
  835.     the  first  four  function  keys.  The ctrl Page Up/Page Down keys will
  836.     move a specific line up or down in the  window.   The  following  table
  837.     gives the default miscellaneous key assignments. 
  838.  
  839.  
  840.                         Editor Miscellaneous Functions
  841.  
  842.                 shift F1        BotLn       Bottom Row of Window
  843.                 shift F2        TopLn       Top Row of Window
  844.                 shift F3        BegLn       Left Margin
  845.                 shift F4        EndLn       Right Margin
  846.                 ctrl PgDn       LnDwn       Line Down One Row
  847.                 ctrl PgUp       LnUp        Line Up One Row
  848.  
  849.     These functions are described in the following paragraphs. 
  850.  
  851.       Bottom Row of Window (BotLn) - shift F1 (TI - shift Down)
  852.           Move  the  cursor  to the bottom row of the edit window or to the
  853.           last line of the file, whichever comes  first,  without  changing
  854.           the cursor column position. 
  855.  
  856.       Left Margin (BegLn) - shift F3 (TI - shift Left)
  857.           Move the cursor to the left margin on the present line. 
  858.  
  859.       Line Down One Row (LnDwn) - ctrl PgDn (TI - ctrl Down)
  860.           Move  the  present  line  down  one  row in the edit window while
  861.           leaving the cursor on the same line and column.  This function is
  862.           useful for centering or moving a specific line within the window.
  863.  
  864.  
  865.                                       2-8                                  
  866.     User Documentation                                    Edit File Utility
  867.  
  868.  
  869.           The line cannot be move past the bottom row of the window. 
  870.  
  871.       Line Up One Row (LnUp) - ctrl PgUp (TI - ctrl Up)
  872.           Move the present line up one row in the window while leaving  the
  873.           cursor  on the same line and column.  This function is useful for
  874.           centering or moving a specific line within the window.  The  line
  875.           cannot be move past the top row of the window. 
  876.  
  877.       Right Margin (EndLn) - shift F4 (TI - shift Right)
  878.           Move the cursor to the right margin on the present line. 
  879.  
  880.       Top Row of Window (TopLn) - shift F2 (TI - shift Up)
  881.           Move  the  cursor  to  the  top  row  of  the edit window without
  882.           changing the cursor column position. 
  883.  
  884.  
  885.     2.4.4  Alternate Key Functions
  886.  
  887.     Several editor functions are invoked by using the  "alt"  key  together
  888.     with  one of the letter keys.  The functions are assigned to keys based
  889.     on their function name.  These functions are listed  in  the  following
  890.     table. 
  891.  
  892.  
  893.                           Editor "alt" Key Functions
  894.  
  895.                   A       AdjLn        Adjust Line Mode
  896.                   C       CenLn        Center Line
  897.                   D       DupLn        Duplicate Previous Line
  898.                   F       Fill         Fill Paragraph
  899.                   J       Join         Join Line
  900.                   P       Paste        Paste Line
  901.                   S       Split        Split Line
  902.                   T       SetTb        Set Tab Stop
  903.                   U       Undo         Undo Line Changes
  904.  
  905.     These functions are described in the following paragraphs. 
  906.  
  907.       Adjust Line Mode (AdjLn) - alt A
  908.           Adjust  the  characters to the right of the cursor on the line to
  909.           the left or right  by  inserting  blank  characters  or  deleting
  910.           characters.   This  function enters a special mode which displays
  911.           the following line at the bottom row of the screen. 
  912.           
  913.             Adjust Mode: DelCh-Left, InsCh-Right, Down, Up, CmdMd-Quit
  914.           
  915.           In this mode, the  "Delete  Character"  function  will  delete  a
  916.           character  under  the cursor and move the rest of the line to the
  917.           left one position.  The "Insert Character" function will insert a
  918.           blank character at the cursor and move the rest of  the  line  to
  919.           the  right  one  position.  The "Down One Line" and "Up One Line"
  920.           functions will repeat the current adjustment  on  a  previous  or
  921.           following  line.   If  the  "Down  One  Line"  or  "Up  One Line"
  922.           functions are used to move toward the original adjusted line, the
  923.           adjustment will be reversed to restore the line to  its  original
  924.           appearance.  The "Command Mode" function is used to terminate the
  925.  
  926.  
  927.                                       2-9                                  
  928.     User Documentation                                    Edit File Utility
  929.  
  930.  
  931.           adjust line mode. 
  932.  
  933.       Center Line (CenLn) - alt C
  934.           Center  the  text  on the current line between the left and right
  935.           margins. 
  936.  
  937.       Duplicate Previous Line (DupLn) - alt D
  938.           Duplicates the characters of the previous line from  the  present
  939.           cursor  position  to  the  next tab position on the present line.
  940.           This function is useful for copying all or part the previous line
  941.           to the present line. 
  942.  
  943.       Fill Paragraph (Fill) - alt F
  944.           Fill the text in a paragraph to the right margin.  The end of the
  945.           paragraph is indicated by a blank line or end-of-line. 
  946.  
  947.       Join Line (Join) - alt J
  948.           Join part or all of the text on the  next  line  to  the  present
  949.           line.  The text is added either after the present cursor position
  950.           or after the end of line. 
  951.  
  952.       Paste Line (Paste) - alt J
  953.           Paste the line currently in the line delete buffer to the present
  954.           line.  The first non-blank character in the line delete buffer is
  955.           placed  at  the present cursor position.  This function is useful
  956.           for moving part of a line to a specific  place  on  one  or  more
  957.           lines. 
  958.  
  959.       Split Line (Split) - alt S
  960.           Delete  the  characters  on  the  present  line  from  the cursor
  961.           position to the right  margin.   A  new  line  with  the  deleted
  962.           characters  is  then  inserted  after  the  present line, and the
  963.           cursor is placed at the first  non-blank  character  of  the  new
  964.           line. 
  965.  
  966.       Set Tab Stop (SetTb) - alt T
  967.           Sets a tab stop or clears a tab stop at the current cursor column
  968.           position. 
  969.  
  970.       Undo Line Changes (Undo) - alt U
  971.           Restore  the  current  line to its original appearance before the
  972.           latest set of changes were made.  This is useful, when a line  is
  973.           changed  inadvertently  by any of the editing functions including
  974.           text changes, to restore it to its appearance before the  changes
  975.           were made. 
  976.  
  977.  
  978.     2.4.5  Control Key Functions
  979.  
  980.     Many  of  the  editor  functions may be invoked by using the "ctrl" key
  981.     together with one of the letter keys.  This is useful for those  people
  982.     which  prefer to invoke functions without removing their hands from the
  983.     keyboard.  The following figure gives the default  assignments  of  the
  984.     control keys to editor functions. 
  985.  
  986.  
  987.  
  988.  
  989.                                      2-10                                  
  990.     User Documentation                                    Edit File Utility
  991.  
  992.  
  993.                     Editor Control Key Functions - Part 1
  994.  
  995.       +-----------+-----------+-----------+-----------+-----------+
  996.       |   InsMd   |   InsLn   |   InsCh   |   RepNx   |   BegFl   |
  997.       |     Q     |     W     |     E     |     R     |     T     |
  998.       +-+---------+-+---------+-+---------+-+---------+-+---------+-+
  999.         |   DelEL   |   DelLn   |   DelCh   |   FndNx   |   UndLn   |
  1000.         |     A     |     S     |     D     |     F     |     G     |
  1001.         +-+---------+-+---------+-+---------+-+---------+-+---------+-+
  1002.           |           |           |   CtlCh   |           |   EndFl   |
  1003.           |     Z     |     X     |     C     |     V     |     B     |
  1004.           +-----------+-----------+-----------+-----------+-----------+
  1005.  
  1006.  
  1007.                     Editor Control Key Functions - Part 2
  1008.  
  1009.       +-----------+-----------+-----------+-----------+------------+
  1010.       |   PgUp    |   BegLn   |    Tab    |   BkTab   |    EndLn   |
  1011.       |     Y     |     U     |     I     |     O     |      P     |
  1012.       +-+---------+-+---------+-+---------+-+---------+-+----------+
  1013.         |    BkSp   |    Down   |     Up    |   Right   |
  1014.         |     H     |     J     |     K     |     L     |
  1015.         +-+---------+-+---------+-+---------+-----------+
  1016.           |   PgDwn   |   Retrn   |
  1017.           |     N     |     M     |
  1018.           +-----------+-----------+
  1019.  
  1020.     Most  of  these  functions  are described in previous sections but some
  1021.     which are assigned to control keys only are described in the  following
  1022.     paragraphs. 
  1023.  
  1024.       Enter Control Character (CtlCh) - ctrl C
  1025.           Enter  a control character which would normally be used to invoke
  1026.           an editor function.   This  function  accepts  the  next  control
  1027.           character  entered  and either adds it or inserts it depending on
  1028.           the Insert Character mode. 
  1029.  
  1030.       Find Next String (FndNx) - ctrl F
  1031.           Find the next occurrence of the last string  found.   The  search
  1032.           begins one position past the present cursor position.  The cursor
  1033.           is  positioned  on  the  first  character  of the string if it is
  1034.           found, otherwise the cursor is not moved and a "beep" is sounded.
  1035.           Since Find String and Replace String use the same target  string,
  1036.           this  function  will  search  the  file  for the target string to
  1037.           verify the next replace operation.   The  "Replace  Next  String"
  1038.           function will replace the target string. 
  1039.  
  1040.       Replace Next String (RepNx) - ctrl R
  1041.           Replace  the  next  occurrence  of the last string replaced.  The
  1042.           search begins at the present  cursor  position.   If  the  target
  1043.           string  is  replaced,  the  cursor  is  positioned after the last
  1044.           character of the replacement string, otherwise the cursor is  not
  1045.           moved and a "beep" is sounded. 
  1046.  
  1047.  
  1048.  
  1049.  
  1050.  
  1051.                                      2-11                                  
  1052.     User Documentation                                    Edit File Utility
  1053.  
  1054.  
  1055.     2.5  Editor Commands
  1056.  
  1057.     The Editor in command mode provides of set of commands which operate on
  1058.     the  file  as  a  whole or require additional prompts.  Command mode is
  1059.     invoked from edit mode with the ESC key or the "Command Mode" function.
  1060.     The top row of the screen is used as the command line.   A  command  is
  1061.     invoked  by entering the first letter of the command word.  The ESC key
  1062.     can be used to abort any command prompt.  If a command needs additional
  1063.     information such as a file pathname or string, the RETURN key  must  be
  1064.     used  to  terminate  the  prompt  input.  The following table lists the
  1065.     Editor commands, with any subcommands, and their meanings. 
  1066.  
  1067.  
  1068.                                Editor Commands
  1069.  
  1070.             Block      - Block commands
  1071.               Adjust     - Adjust block left or right
  1072.               Box mode   - Switch to box mode operations
  1073.               Copy       - Copy block after or box to current line
  1074.               Delete     - Delete block or box
  1075.               Line mode  - Switch to line mode operations
  1076.               Move       - Move block after or box to current line
  1077.               Put        - Put block to file
  1078.             Find       - Find string in file
  1079.             Help       - Display editor help file
  1080.             Insert     - Insert file after current line
  1081.             Modify     - Modify editor parameters and options
  1082.               Colors     - Modify colors used by editor
  1083.               Key        - Redefine editor key mapping
  1084.                 Characters - Define key to special characters
  1085.                 Functions  - Define key to editor functions
  1086.                 Load       - Load key definitions file
  1087.                 Quit       - Quit key definitions
  1088.                 Save       - Save key definitions in file
  1089.               Options    - Modify editor options
  1090.                 Load       - Load options definitions file
  1091.                 Modify     - Modify option value
  1092.                 Quit       - Quit options definitions
  1093.                 Save       - Save options definitions in file
  1094.                 Tabs       - Modify tabs and margins
  1095.               Tabs       - Set tabs, left margin, & right margin
  1096.             Position   - Position file to specific line
  1097.             Quit       - Quit commands
  1098.               Abort      - Abort edit session
  1099.               Replace    - Replace input file
  1100.               Save       - Save modified module in specified file
  1101.             Replace    - Replace string with specified string
  1102.             Show       - Show external file
  1103.             Update     - Update input file and continue editing
  1104.  
  1105.     The supported commands and any additional prompts are described in  the
  1106.     following paragraphs. 
  1107.  
  1108.  
  1109.  
  1110.  
  1111.  
  1112.  
  1113.                                      2-12                                  
  1114.     User Documentation                                    Edit File Utility
  1115.  
  1116.  
  1117.       Block   Invoke  one  of  the  block commands on the selected block or
  1118.               box.  The "Mark Block" function is used to select  the  block
  1119.               to  be  operated  on  by these block subcommands.  One of two
  1120.               command lines is displayed depending on the mode.  The  first
  1121.               command  line  displays the line oriented block commands, and
  1122.               the second command  line  displays  the  box  oriented  block
  1123.               commands.   These  command  lines are shown below followed by
  1124.               the subcommand descriptions. 
  1125.  
  1126.               Block [Line mode] - Adjust, Box mode, Copy, Delete, Move, Put
  1127.               Block [Box mode] - Copy, Delete, Line mode, Move
  1128.  
  1129.               Adjust  Adjust the the selected block of lines to the left or
  1130.                       right.  If a positive number is specified, the  lines
  1131.                       in  the  selected  block  are  moved  to the right by
  1132.                       inserting the requested number of blanks at the  left
  1133.                       margin.  Otherwise if a negative number is specified,
  1134.                       the lines in the selected block are moved to the left
  1135.                       by  deleting  characters  at  the  left  margin.  The
  1136.                       amount to be adjusted and the direction is  requested
  1137.                       by the following prompt. 
  1138.                       
  1139.                         Adjust Block - Enter relative adjustment:
  1140.  
  1141.               Box mode
  1142.                       Switch to box mode for block commands. 
  1143.  
  1144.               Copy    In  line  mode, the selected block of lines is copied
  1145.                       and inserted after the present line of the file.   In
  1146.                       box  mode,  the selected box of characters is copied.
  1147.                       The current cursor location defines  the  upper  left
  1148.                       hand corner of the destination. 
  1149.  
  1150.               Delete  In  line mode the selected block of lines is deleted.
  1151.                       Since  a  block  delete  is  a  destructive  process,
  1152.                       confirmation is requested by the following prompt.  A
  1153.                       single character is required where "Y" or "y" deletes
  1154.                       the  block  and anything else aborts the delete block
  1155.                       operation. 
  1156.                       
  1157.                         Delete Block? (Yes/No)
  1158.                       
  1159.                       In box mode the selected box of characters is  erased
  1160.                       and replaced with blanks. 
  1161.  
  1162.               Line mode
  1163.                       Switch to line mode for block commands. 
  1164.  
  1165.               Move    In  line  mode,  the selected block of lines is moved
  1166.                       and inserted after the present line of the file.  The
  1167.                       selected block is then deleted.   In  box  mode,  the
  1168.                       selected  box  of  characters  is moved.  The current
  1169.                       cursor location defines the upper left hand corner of
  1170.                       the destination.  The selected box of  characters  is
  1171.                       erased and replaced with blanks. 
  1172.  
  1173.  
  1174.  
  1175.                                      2-13                                  
  1176.     User Documentation                                    Edit File Utility
  1177.  
  1178.  
  1179.               Put     Output  the  selected  block  of  lines  to  the file
  1180.                       requested by the following prompt. 
  1181.                       
  1182.                         Put Block - Enter pathname:
  1183.                       
  1184.                       If the specified file exists,  the  following  prompt
  1185.                       confirms whether it should be replaced. 
  1186.                       
  1187.                         Replace File [<file name>]? (Yes/No)
  1188.                       
  1189.                       To  replace  the  file  enter  a  single  "Y" or "y".
  1190.                       Anything else will abort  the  put  block  operation.
  1191.                       The  old version of the specified file is saved using
  1192.                       the extension "BAK". 
  1193.  
  1194.       Find    Find the string  requested  by  the  following  prompt.   The
  1195.               string  must  be specified exactly including blanks and case.
  1196.               The search begins after the present cursor position.  If  the
  1197.               string is found, the cursor is positioned at the beginning of
  1198.               the  string.   Otherwise  the  file is not repositioned and a
  1199.               "beep" is sounded. 
  1200.               
  1201.                 Find String - Enter string:
  1202.               
  1203.               The "Find Next" function will find the next occurrence of the
  1204.               specified string.  string. 
  1205.  
  1206.       Help    Display the help  file  of  the  editor  commands  and  their
  1207.               descriptions. 
  1208.  
  1209.       Insert  Insert  the  file requested by the following prompt after the
  1210.               present line of the file. 
  1211.               
  1212.                 Insert File - Enter pathname:
  1213.  
  1214.       Modify Colors
  1215.               Invoke interface to redefine color  assignments  for  various
  1216.               display  lines.   This utility is described in Section 1.5 of
  1217.               the Introduction. 
  1218.  
  1219.       Modify Key
  1220.               Invoke interface  to  redefine  key  assignments  for  editor
  1221.               functions and special characters.  The key definition command
  1222.               line is shown below followed by the subcommand descriptions. 
  1223.               
  1224.                 Define Keys - Characters, Functions, Load, Quit, Save
  1225.  
  1226.               Characters
  1227.                       Define  key to be a special character.  Press the key
  1228.                       to be defined followed by the hexadecimal  number  of
  1229.                       the character to be associated with the key. 
  1230.  
  1231.               Functions
  1232.                       Define  key  to be an editor function.  Press the key
  1233.                       to be defined followed by the decimal number  of  the
  1234.                       function to be associated with the key. 
  1235.  
  1236.  
  1237.                                      2-14                                  
  1238.     User Documentation                                    Edit File Utility
  1239.  
  1240.  
  1241.               Load    Load  a  key  definitions  file.  The default file is
  1242.                       named "<dfedit>\EDITKEYS.DAT". 
  1243.  
  1244.               Quit    Quit the key definitions command and  return  to  the
  1245.                       editor. 
  1246.  
  1247.               Save    Save  the current key definitions in a file for later
  1248.                       use.      The     default     file      is      named
  1249.                       "<dfedit>\EDITKEYS.DAT". 
  1250.  
  1251.       Modify Options
  1252.               Update  the options for the editor.  The modification command
  1253.               line is shown below followed by the subcommand descriptions. 
  1254.               
  1255.                 Modify options - Load, Modify, Quit, Save, Tabs
  1256.  
  1257.               Load    Load editor options file.  The default file is  named
  1258.                       "<dfedit>\EDITOPTS.DAT". 
  1259.  
  1260.               Modify  Modify  the  value associated with an option.  Simply
  1261.                       move the cursor next to the option to be modified. 
  1262.  
  1263.               Quit    Quit the editor options command  and  return  to  the
  1264.                       editor. 
  1265.  
  1266.               Save    Save  the  current editor options in a file for later
  1267.                       use.      The     default     file      is      named
  1268.                       "<dfedit>\EDITOPTS.DAT". 
  1269.  
  1270.               Tabs    Modify the current tabs and margins.  This command is
  1271.                       the  same  as  the  'Modify  Tabs'  command  which is
  1272.                       described next. 
  1273.  
  1274.               The editor options which can be modified are described below. 
  1275.  
  1276.               Backup file as '<name>.bak'
  1277.                       Each time a file is replaced, the old version of  the
  1278.                       file  is  saved  with  an  extension  of 'bak'.  This
  1279.                       option can be selected  by  specifing  'Yes'  or  not
  1280.                       selected by specifing 'No'. 
  1281.  
  1282.               Floating 'Return' key
  1283.                       Each  time  the  'Retrn' function is used, the cursor
  1284.                       normally moves to the first  character  of  the  next
  1285.                       line.   This  option  will allow the cursor to always
  1286.                       move  to  the  left  margin  rather  than  the  first
  1287.                       character.  The normal floating return is selected by
  1288.                       specifing  'Yes'  or  the fixed return is selected by
  1289.                       specifing 'No'. 
  1290.  
  1291.               Horizontal scroll size
  1292.                       The amount by which a wide file move  left  or  right
  1293.                       within  the  display  window  is  controlled  by this
  1294.                       parameter.  The number of columns by which  the  file
  1295.                       should be scrolled must be specified. 
  1296.  
  1297.  
  1298.  
  1299.                                      2-15                                  
  1300.     User Documentation                                    Edit File Utility
  1301.  
  1302.  
  1303.               Left margin
  1304.                       The  value  of the left margin must be specified.  It
  1305.                       must be greater than 0. 
  1306.  
  1307.               Right margin
  1308.                       The value of the right margin must be specified.   It
  1309.                       cannot be greater than 256. 
  1310.  
  1311.               Use tabs to pack line
  1312.                       Whenever a new line is added to a file or modified it
  1313.                       can  be  packed  using  tab characters.  Line packing
  1314.                       using tab characters is selected by specifing  'Yes'.
  1315.                       Blank  character  packing  is  selected  by specifing
  1316.                       'No.'
  1317.  
  1318.               Vertical scroll size
  1319.                       The number of lines by which the Page Up  'PgUp'  and
  1320.                       Page  Down  'PgDn'  functions  scroll the file in the
  1321.                       display window is controlled by this parameter.   The
  1322.                       number  of  line by which the file should be scrolled
  1323.                       must be specified. 
  1324.  
  1325.       Modify Tabs
  1326.               The ruler line with the current tabs and margins is displayed
  1327.               on the top row, and the cursor is placed  on  it.   The  left
  1328.               margin is indicated by the character "L", the right margin by
  1329.               the the character "R", and the tabs by the character "T".  To
  1330.               delete  an  old  setting  for  margins  and tabs, replace the
  1331.               corresponding character with a  blank  or  period  ".".   The
  1332.               following  edit  functions may be used when updating the tabs
  1333.               and margins. 
  1334.  
  1335.                 BkTab   Back Tab
  1336.                 BegLn   Beginning of Line
  1337.                 EndLn   End of Line
  1338.                 CmdMd   Escape - abort modifications
  1339.                 Left    Left One Character
  1340.                 Retrn   Return - accept modifications
  1341.                 Right   Right One Character
  1342.                 Tab     Next Tab
  1343.  
  1344.       Position
  1345.               Position the window into the file to a  specific  line.   The
  1346.               desired line number is requested by the following prompt. 
  1347.               
  1348.                 Position Line - Enter line number:
  1349.  
  1350.       Quit    Quit  the  current  edit  session.   The quit command line is
  1351.               shown below followed  by  the  subcommand  descriptions.   An
  1352.               indication  whether  the  file  will be saved with or without
  1353.               internal tabs is given. 
  1354.               
  1355.                 Quit Edit - Abort, Replace, Save
  1356.  
  1357.  
  1358.  
  1359.  
  1360.  
  1361.                                      2-16                                  
  1362.     User Documentation                                    Edit File Utility
  1363.  
  1364.  
  1365.               Abort   Abort the current edit  session  without  saving  the
  1366.                       modified  file.   If any modifications have been made
  1367.                       to  the   file,   the   following   prompt   requests
  1368.                       confirmation to abort the edit session.  To abort the
  1369.                       edit  session  enter  a  single "Y" or "y".  Anything
  1370.                       else will not abort the edit session. 
  1371.                       
  1372.                         Modifications made - Abort anyway? (Yes/No)
  1373.  
  1374.               Replace Quit  the  current  edit  session  by  replacing  the
  1375.                       original  file.  The original file is saved using the
  1376.                       extension "BAK". 
  1377.  
  1378.               Save    Quit the current edit session by saving the  modified
  1379.                       file in the file requested by the following prompt. 
  1380.                       
  1381.                         Quit Save - Enter pathname:
  1382.                       
  1383.                       If  the  specified  file exists, the following prompt
  1384.                       confirms whether it should be replaced. 
  1385.                       
  1386.                         Replace File [<file name>]? (Yes/No)
  1387.                       
  1388.                       To replace the  file  enter  a  single  "Y"  or  "y".
  1389.                       Anything  else  will  abort  the quit edit operation.
  1390.                       The old version of the specified file is saved  using
  1391.                       the extension "BAK". 
  1392.  
  1393.       Replace Replace  a  string in the file being modified.  The string to
  1394.               be replaced is requested by the following prompt.  The string
  1395.               must be specified exactly including blanks and case. 
  1396.               
  1397.                 Replace String - Enter target string:
  1398.               
  1399.               The replacement string is requested by the following  prompt.
  1400.               An  empty replacement string can be used to delete the target
  1401.               string. 
  1402.               
  1403.                 Replace String - Enter replacement string:
  1404.               
  1405.               The search for the target string begins at the present cursor
  1406.               position.  If the target string is found, it is replaced  and
  1407.               the  cursor  is  placed at the end of the replacement string.
  1408.               If the target string is not found or the  replacement  string
  1409.               will not fit on the line, a "beep" is sounded. 
  1410.               
  1411.               The  "Replace Next" function will replace the next occurrence
  1412.               of the target string with the replacement string.  The  "Find
  1413.               Next"  function  will  find the next occurrence of the target
  1414.               string, and the "Replace Next" function will then replace it. 
  1415.  
  1416.       Show    Invoke the Show File utility to display the file requested by
  1417.               the following prompt.  The show file utility is described  in
  1418.               a separate document. 
  1419.               
  1420.                 Show File - Enter pathname:
  1421.  
  1422.  
  1423.                                      2-17                                  
  1424.     User Documentation                                    Edit File Utility
  1425.  
  1426.  
  1427.       Update  Save  the  modified  file  in  the  original file, but do not
  1428.               terminate the edit session.  The original file is saved using
  1429.               the extension "BAK". 
  1430.  
  1431.  
  1432.  
  1433.  
  1434.  
  1435.  
  1436.  
  1437.  
  1438.  
  1439.  
  1440.  
  1441.  
  1442.  
  1443.  
  1444.  
  1445.  
  1446.  
  1447.  
  1448.  
  1449.  
  1450.  
  1451.  
  1452.  
  1453.  
  1454.  
  1455.  
  1456.  
  1457.  
  1458.  
  1459.  
  1460.  
  1461.  
  1462.  
  1463.  
  1464.  
  1465.  
  1466.  
  1467.  
  1468.  
  1469.  
  1470.  
  1471.  
  1472.  
  1473.  
  1474.  
  1475.  
  1476.  
  1477.  
  1478.  
  1479.  
  1480.  
  1481.  
  1482.  
  1483.  
  1484.  
  1485.                                      2-18                                  
  1486.     User Documentation                   Show Directory Utility
  1487.  
  1488.  
  1489.                                   Section 3
  1490.                                        
  1491.                             Show Directory Utility
  1492.  
  1493.  
  1494.     3.1  Introduction
  1495.     
  1496.     The  show directory utility displays the names of a group of files in a
  1497.     directory.  The display produced by this utility  is  similar  to  that
  1498.     produced by the standard DOS DIR command except that the file names are
  1499.     displayed in alphabetical order, and the list is display using the full
  1500.     screen.   Using  this utility, files can be copied, deleted, displayed,
  1501.     edited, printed, or renamed.  This is done by  simply  positioning  the
  1502.     cursor  next to the file to be operated on and pressing a single key to
  1503.     invoke the function for the desired  file.   These  file  commands  are
  1504.     described plus the keys which position the cursor and the list of files
  1505.     in  the  display.  Finally a set of global commands allow another group
  1506.     of files to be displayed, or a specific file to be edited. 
  1507.  
  1508.  
  1509.     3.2  Tool Invocation
  1510.     
  1511.     The show directory utility is invoked by the following DOS command. 
  1512.     
  1513.       SHOW <group_name>
  1514.     
  1515.     The <group_name> parameter can be any file specification  of  the  form
  1516.     normally  used with the standard DIR command.  A simple drive name will
  1517.     display all the file names on a disk, or a file specification with  the
  1518.     wild-card characters "?" or "*" will display only those file names that
  1519.     match the file specification. 
  1520.     
  1521.     If the show directory utility is invoked without specifing a file name,
  1522.     all  the  files  in  the  default  directory  on  the  default disk are
  1523.     displayed. 
  1524.  
  1525.  
  1526.     3.3  Screen Format
  1527.     
  1528.     The screen for this utility is divided into  three  parts.   The  first
  1529.     part  is the top row which displays the command line and any additional
  1530.     prompts required by a command.  These commands  are  described  in  the
  1531.     File Commands section. 
  1532.     
  1533.     The  second part is the middle of the screen between the top and bottom
  1534.     rows.  This part displays the information for the files in the selected
  1535.     group and is called the display  window.   The  top  two  rows  of  the
  1536.     display  window  are  header  lines  which identify information in each
  1537.     column plus the name of the file group, the  number  of  files  in  the
  1538.     group,  the total number of bytes in the files, and the amount of space
  1539.     available on the disk.  Each line gives the file  name  and  extension,
  1540.     file  size,  and  date  and time of the last update.  It also gives the
  1541.     attributes of the file, where  'A'  indicates  the  archive  flag,  'H'
  1542.     indicates  the hidden file flag, 'R' indicates the read/only file flag,
  1543.     and 'S' indicates the system file flag.  Directories are indicated with
  1544.     the attribute "DIR".   The  lines  of  file  information  are  normally
  1545.  
  1546.  
  1547.                                       3-1                                  
  1548.     User Documentation                               Show Directory Utility
  1549.  
  1550.  
  1551.     displayed in alphabetical order of file extension and then file name. 
  1552.     
  1553.     The  third  part  of  the  screen  is  the  bottom  row which gives the
  1554.     descriptions  of  the  numeric  function  keys.   These  functions  are
  1555.     described in the Display Functions section. 
  1556.     
  1557.     An  example  of  the format of the display window for the files on disk
  1558.     "A:" is shown below. 
  1559.  
  1560.        A:\*.*   14 Files   230336 Used    83968 Available
  1561.           -Name & Ext-  -Size-   --Date-- -Time-  -Attrs-
  1562.           EDIT     DOC   45337   5-Mar-84  9:00p  A . . .
  1563.           PF       DOC    1896   5-Mar-84  9:00p  A . . .
  1564.           README   DOC    6168   5-Mar-84  9:00p  A . . .
  1565.           ROFF     DOC    5154   5-Mar-84  9:00p  A . . .
  1566.           SF       DOC    4436   5-Mar-84  9:00p  A . . .
  1567.           SHOW     DOC   17424   5-Mar-84  9:00p  A . . .
  1568.           COLORS   EXE   12672   5-Mar-84  9:00p  A . . .
  1569.           EDIT     EXE   37248   5-Mar-84  9:00p  A . . .
  1570.           ROFF     EXE   17536   5-Mar-84  9:00p  A . . .
  1571.           PF       EXE   16000   5-Mar-84  9:00p  A . . .
  1572.           SF       EXE   17920   5-Mar-84  9:00p  A . . .
  1573.           SHOW     EXE   45568   5-Mar-84  9:00p  A . . .
  1574.           EDIT     HLP    1396   5-Mar-84  9:00p  A . . .
  1575.           SHOW     HLP     939   5-Mar-84  9:00p  A . . .
  1576.  
  1577.  
  1578.     3.4  File Commands
  1579.  
  1580.     Several commands are  provided  which  operate  on  a  single  file  or
  1581.     multiple files.  These commands provide many of the functions supported
  1582.     by  standard DOS commands, but the user interface is much simpler.  The
  1583.     file to be operated on is selected by placing the cursor on the line of
  1584.     the desired file.  The first character of the command is then  used  to
  1585.     invoke  the  desired function.  Multiple files can be selected by using
  1586.     the "Mark/Unmark" file function.  A list of valid commands and a  brief
  1587.     description of each is given in the following table. 
  1588.  
  1589.         Archive - Copy all files with the archive flag to another disk
  1590.         Backup  - Backup file or marked files to another disk drive
  1591.         Copy    - Copy file or marked files to specified destination
  1592.         Delete  - Delete file or marked files
  1593.         Edit    - Invoke edit file utility
  1594.         Help    - Display show directory help file
  1595.         Modify  - Modify file or marked files attributes
  1596.         Print   - Print file or marked files
  1597.         Quit    - Quit show directory display
  1598.         Rename  - Rename file or marked files to new name
  1599.         Show    - Invoke show file utility
  1600.  
  1601.     Each  of  these  commands is described in the following paragraphs.  If
  1602.     the command has any additional prompts, they are also described. 
  1603.  
  1604.  
  1605.  
  1606.  
  1607.  
  1608.  
  1609.                                       3-2                                  
  1610.     User Documentation                               Show Directory Utility
  1611.  
  1612.  
  1613.       Archive Copy all the files in the current file group which  have  the
  1614.               "archive"  flag  set  to  another disk.  A single destination
  1615.               drive letter (A to M) is  requested.   This  command  can  be
  1616.               aborted with the ESC or RETURN key. 
  1617.               
  1618.                 Archive files to drive (A-M):
  1619.  
  1620.       Backup  Copy  the  selected  file  or  marked  files from one disk to
  1621.               another  disk.    Since   file   backups   should   be   made
  1622.               periodically,  this  command  provides  an easy way to copy a
  1623.               file from one disk to another without changing  the  name  of
  1624.               the  file.   A  single  destination  drive letter (A to M) is
  1625.               requested.  This command can  be  aborted  with  the  ESC  or
  1626.               RETURN  key.   If  the  selected file is not marked, a single
  1627.               file backup is requested; otherwise a multiple file backup is
  1628.               requested. 
  1629.               
  1630.                 Backup file to drive (A-M):
  1631.                 Backup multiple files to drive (A-M):
  1632.  
  1633.       Copy    Copy the selected  file  or  marked  files  to  another  file
  1634.               location.   With  this command only the destination file must
  1635.               be specified.  The destination file name is requested by  one
  1636.               the following prompts.  Wild-card characters may be used when
  1637.               specifing  the  destination  file name.  An empty response to
  1638.               the prompt or the ESC key is used to abort the  command.   If
  1639.               the  selected  file  is  not  marked,  a  single file copy is
  1640.               requested; otherwise a multiple file copy is requested. 
  1641.               
  1642.                 Copy file to:
  1643.                 Copy multiple files to:
  1644.               
  1645.               If the destination file for the copy exists, confirmation  to
  1646.               replace the file is requested by the following prompt. 
  1647.               
  1648.                 Replace file [<file name>]? (Yes/No)
  1649.  
  1650.       Delete  Delete  the  selected  file or marked files.  Since this is a
  1651.               destructive process, confirmation is requested by one of  the
  1652.               following  prompts.   If  the  selected file is not marked, a
  1653.               single file delete is requested; otherwise  a  multiple  file
  1654.               delete is requested. 
  1655.               
  1656.                 Delete file? (Yes/No)
  1657.                 Delete file [<file name>]? (Yes/No/All/Stop)
  1658.               
  1659.               For  single  file  deletes,  a  "Y"  will delete the file and
  1660.               anything else aborts the delete file operation.  For multiple
  1661.               file deletes, confirmation for all files is requested.  A "Y"
  1662.               will delete the file, a "N" will not delete the file,  a  "A"
  1663.               will  delete  all  the  marked files, and a "S" will stop the
  1664.               delete multiple files command.   If  the  last  file  in  the
  1665.               current   list   is   deleted,  the  file  group  display  is
  1666.               terminated. 
  1667.  
  1668.  
  1669.  
  1670.  
  1671.                                       3-3                                  
  1672.     User Documentation                               Show Directory Utility
  1673.  
  1674.  
  1675.       Edit    Invoke the edit file utility to edit the selected file.   The
  1676.               edit  file  utility is described in a separate document.  The
  1677.               information for the selected file is updated to  reflect  the
  1678.               new file size and date and time of the modified file. 
  1679.  
  1680.       Help    Display  the  help file for the show directory utility.  This
  1681.               file  briefly  describes  each  of  the  valid  commands  and
  1682.               functions supported by this utility. 
  1683.  
  1684.       Modify  Modify  the attributes for the selected file or marked files.
  1685.               The type of modification is requested by one of the following
  1686.               prompts.  If the selected file is not marked, a  single  file
  1687.               modify  is  requested;  otherwise  a  multiple file modify is
  1688.               requested. 
  1689.               
  1690.                 Modify file attributes (+|- AHRS):
  1691.                 Modify multiple file attributes (+|- AHRS):
  1692.               
  1693.               This command uses a syntax  for  the  modification  which  is
  1694.               similar  to the DOS FILATR utility.  The "+" indicates to set
  1695.               the flag and the "-" indicates to clear the flag. 
  1696.  
  1697.       Print   Invoke the print file utility to print the selected  file  or
  1698.               marked  files.   This utility copies the selected file to the
  1699.               printer optionally adding page headers which give the name of
  1700.               the file, current date and time, and page numbers.   This  is
  1701.               useful  for printing text files such as program text or other
  1702.               unformated text files.  If  the  file  has  embedded  printer
  1703.               control  characters  such  as  form feeds, the file should be
  1704.               printed without page headers.  If the selected  file  is  not
  1705.               marked,  a  single  file  print  is  requested;  otherwise  a
  1706.               multiple file print is requested. 
  1707.               
  1708.                 Print file with page headers? (Yes/No/ESC)
  1709.                 Print multiple files with page headers? (Yes/No/ESC)
  1710.               
  1711.               If page headers are desired respond with a "Y"  otherwise  if
  1712.               page headers are not desired respond with a "N".  Use the ESC
  1713.               key to abort the print file command. 
  1714.  
  1715.       Quit    Terminate  the  current  file  group  display.   The commands
  1716.               described in the Global Commands section can then be used  to
  1717.               display another group of files or to edit a specific file. 
  1718.  
  1719.       Rename  Rename  the selected file or marked files to a new file name.
  1720.               The new file name  is  requested  by  one  of  the  following
  1721.               prompts.   After  a file is renamed, the new file information
  1722.               line is inserted into the list of  files  and  the  old  file
  1723.               information  line  is  deleted.   The  drive  should  not  be
  1724.               specified since files can only be renamed on the  same  disk.
  1725.               Wild-card  characters  can  be  used  to specify the new file
  1726.               name.  An empty response to the prompt or the ESC key is used
  1727.               to abort the command.  If the selected file is not marked,  a
  1728.               single  file  rename  is requested; otherwise a multiple file
  1729.               rename is requested. 
  1730.               
  1731.  
  1732.  
  1733.                                       3-4                                  
  1734.     User Documentation                               Show Directory Utility
  1735.  
  1736.  
  1737.                 Rename file to:
  1738.                 Rename multiple files to:
  1739.               
  1740.               After a file is renamed, the new  file  information  line  is
  1741.               inserted  into the list of files and the old file information
  1742.               line is deleted. 
  1743.  
  1744.       Show    Invoke the show file utility to display  the  selected  file.
  1745.               The show file utility is described in a separate document. 
  1746.  
  1747.  
  1748.     3.5  Display Functions
  1749.  
  1750.     In order to select the file to be operated by the commands described in
  1751.     the  previous  section,  the  cursor  must  be moved to the line of the
  1752.     desired file.  The functions to move the cursor and the list  of  files
  1753.     in  the  display  window  are described in this section.  A list of the
  1754.     valid functions and their associated function key assignments is  given
  1755.     in the following table. 
  1756.  
  1757.         Bottom of List          F4
  1758.         Down One Line           Down, RETURN
  1759.         Global Commands         ESC
  1760.         Mark/Unmark File        F6
  1761.         Mark All Files          F7
  1762.         Reread Directory        F5
  1763.         Page Down               F1, PgDn
  1764.         Page Up                 F2, PgUp
  1765.         Sort List               F9
  1766.         Top of Display          HOME
  1767.         Top of List             F3
  1768.         Up One Line             Up
  1769.         Unmark All Files        F8
  1770.  
  1771.     The  display  functions  with  their  associated  key  assignments  are
  1772.     described in the following paragraphs. 
  1773.  
  1774.       Bottom of List - F4
  1775.           Display the end of the list of files in the  display  window  and
  1776.           place the cursor on the last file of the list. 
  1777.  
  1778.       Down One Line - Down Arrow, Return
  1779.           Move  the  cursor  down one line to the next file in display.  If
  1780.           the cursor is on the bottom row of  the  window,  the  window  is
  1781.           scrolled  down one line.  If the present line is the last file in
  1782.           the list, the cursor is not repositioned. 
  1783.  
  1784.       Global Commands - ESC
  1785.           Invoke the Global Commands described in the next  section.   This
  1786.           allows  another  directory  or file group to be displayed without
  1787.           terminating the current display. 
  1788.  
  1789.       Mark/Unmark File - F6
  1790.           Toggle the file mark on the  current  file.   The  file  mark  is
  1791.           indicated with an "*" in front of the file name. 
  1792.  
  1793.  
  1794.  
  1795.                                       3-5                                  
  1796.     User Documentation                               Show Directory Utility
  1797.  
  1798.  
  1799.       Mark All Files - F7
  1800.           Set  the  file  mark for all the files but not directories in the
  1801.           list. 
  1802.  
  1803.       Reread Directory - F5
  1804.           Reread  the  directory  using  the  original  file   group   name
  1805.           specification.   The  beginning  of  the  new  list  of  files is
  1806.           displayed in the window and the cursor is  placed  on  the  first
  1807.           file  of the list.  This function is useful to update the list of
  1808.           files after several new files have been created  using  the  Copy
  1809.           command or edit file utility. 
  1810.  
  1811.       Page Down - F1, PgDn
  1812.           Scroll  the  display window down or forward on the list of files.
  1813.           The cursor is left on the same relative row of the window  unless
  1814.           the  end  of  list  is  reached.  If the last file of the list is
  1815.           already being displayed in the window, the list is  not  scrolled
  1816.           but the cursor is placed on the last file of the list. 
  1817.  
  1818.       Page Up - F2, PgUp
  1819.           Scroll  the  display  window up or backward on the list of files.
  1820.           The cursor is left on the same relative row of the window  unless
  1821.           the  beginning of list is reached.  If the first file of the list
  1822.           is already being  displayed  in  the  window,  the  list  is  not
  1823.           scrolled but the cursor is placed on the first file of the list. 
  1824.  
  1825.       Sort List - F9
  1826.           Normally  the  file  list  is  sorted on file extension and name.
  1827.           This function allows the files to  be  listed  based  on  another
  1828.           sorting criteria which is requested by the following prompt. 
  1829.           
  1830.             Sort list by - Date & time, Extension, Name, Size
  1831.           
  1832.           The  option  is  selected by using the first letter of the option
  1833.           name. 
  1834.  
  1835.             Date & time  Sort the list on date and time so the oldest files
  1836.                          are at the top of the list. 
  1837.  
  1838.             Extension    Sort the list on  file  extension  and  then  file
  1839.                          name. 
  1840.  
  1841.             Name         Sort   the   list  on  file  name  and  then  file
  1842.                          extension, which is the normal sort. 
  1843.  
  1844.             Size         Sort the list on file size so  the  largest  files
  1845.                          are at the bottom of the list. 
  1846.  
  1847.       Top of Display - HOME
  1848.           Move the cursor to the first file on the current display. 
  1849.  
  1850.       Top of List - F3
  1851.           Display  the  beginning  of  the  list of files in the window and
  1852.           place the cursor on the first file of the list. 
  1853.  
  1854.  
  1855.  
  1856.  
  1857.                                       3-6                                  
  1858.     User Documentation                               Show Directory Utility
  1859.  
  1860.  
  1861.       Up One Line - Up Arrow
  1862.           Move the cursor up one line to the previous file in display.   If
  1863.           the  cursor  is  on  the  top  row  of  the window, the window is
  1864.           scrolled up one line.  If the present line is the first  file  in
  1865.           the list, the cursor is not repositioned. 
  1866.  
  1867.       Unmark All Files - F8
  1868.           Remove the file marks from all the files in the list. 
  1869.  
  1870.  
  1871.     3.6  Global Commands
  1872.     
  1873.     When  a  file group display is terminated with the Quit command, one of
  1874.     the following commands can be used to display another group  of  files,
  1875.     invoke the editor for a file, or terminate the utility completely.  The
  1876.     first  character of the command is used to invoke the desired function.
  1877.     The command line is shown below. 
  1878.     
  1879.       Change dir, Dos command, Edit file, Make dir, Quit, Show dir
  1880.     
  1881.     These commands are described in the following paragraphs. 
  1882.  
  1883.       Change dir  Change the default directory pathname for  a  disk.   The
  1884.                   directory  name is requested by the following prompt.  An
  1885.                   empty response is used to abort this command. 
  1886.                   
  1887.                     Change Directory - Enter pathname:
  1888.  
  1889.       Dos command Invoke the DOS command interpreter  so  that  normal  DOS
  1890.                   commands  can  be  invoked.   The  SHOW  utility is still
  1891.                   resident, so use the EXIT command to return to  the  SHOW
  1892.                   utility. 
  1893.  
  1894.       Edit file   Invoke  the edit file utility to edit the specified file.
  1895.                   The file name is requested by the following  prompt.   An
  1896.                   empty response is used to abort this command. 
  1897.                   
  1898.                     Edit File - Enter pathname:
  1899.  
  1900.       Make dir    Make  a  new  directory on a disk.  The directory name is
  1901.                   requested by the following prompt.  An empty response  is
  1902.                   used to abort this command. 
  1903.                   
  1904.                     Make Directory - Enter pathname:
  1905.  
  1906.       Quit        Terminate  show  directory utility or return to the level
  1907.                   which invoked it. 
  1908.  
  1909.       Show dir    Invoke the show  directory  utility  to  display  another
  1910.                   group  of  files  in  a directory.  The directory name or
  1911.                   file group name is requested by the following prompt.  An
  1912.                   empty response is used to abort this command. 
  1913.                   
  1914.                     Show Directory - Enter pathname:
  1915.  
  1916.  
  1917.  
  1918.  
  1919.                                       3-7                                  
  1920.     User Documentation                    Show File Utility
  1921.  
  1922.  
  1923.                                   Section 4
  1924.                                        
  1925.                               Show File Utility
  1926.  
  1927.  
  1928.     4.1  Introduction
  1929.     
  1930.     The  show  file  utility  displays an ASCII text file through a logical
  1931.     window which can be moved forward and backward on the file.   The  show
  1932.     file  utility is invoked by using the "Show" file command in either the
  1933.     edit file or show directory utilities and by the following DOS  command
  1934.     where <file_name> is the name of the file to be displayed. 
  1935.     
  1936.       SF <file_name>
  1937.     
  1938.     If the show file utility is invoked the DOS command without specifing a
  1939.     file name, the following prompt requests the file to be displayed. 
  1940.     
  1941.       Show File - Enter pathname:
  1942.     
  1943.     In this mode the show file utility will continue to request the name of
  1944.     a  file to be displayed until an empty file name or the ESC key is used
  1945.     to terminate the show file utility. 
  1946.  
  1947.  
  1948.     4.2  Screen Format
  1949.     
  1950.     The screen format is very simple with a command line at the top of  the
  1951.     screen,  a  display  window  consisting  of  the  middle 23 rows of the
  1952.     screen, and a file identification line at the  bottom  of  the  window.
  1953.     The  command  line gives the line number of the top line in the window,
  1954.     and the valid commands and functions.  An example  command  line  while
  1955.     displaying   the   first   part   of   the   editor   help  file  named
  1956.     "A:\DFEDIT\EDIT1.HLP"   is   given   below   followed   by   the   file
  1957.     identification line. 
  1958.     
  1959.       [Top=1] F1-Down, F2-Up, F3-Top, F4-Bottom, Position, Quit
  1960.     
  1961.       File = A:\DFEDIT\EDIT.HLP
  1962.     
  1963.     The end of the file is indicated by a "*eof" line displayed in the file
  1964.     window after the last line of the file. 
  1965.  
  1966.  
  1967.     4.3  Commands and Functions
  1968.     
  1969.     The  show file utility provides functions to move the window up or down
  1970.     on the file being displayed.  These functions are invoked  by  function
  1971.     keys  specified  after  the  function  name.   Commands are provided to
  1972.     position the window to a specific line of the file and to quit the show
  1973.     file utility.  These commands are invoked by using the first letter  of
  1974.     the  command  name.  Each of the commands and functions is described in
  1975.     the following paragraphs. 
  1976.  
  1977.  
  1978.  
  1979.  
  1980.  
  1981.                                       4-1                                  
  1982.     User Documentation                                    Show File Utility
  1983.  
  1984.  
  1985.       Bottom of File - F4
  1986.           Position the file window to the last line of the file.  The  Show
  1987.           File  utility  currently  only  displays  files  less than 32,500
  1988.           lines. 
  1989.  
  1990.       Line Down - Down Arrow
  1991.           Move the file window down to the next line of the file unless the
  1992.           window is already at the end of file. 
  1993.  
  1994.       Line Up - Up Arrow
  1995.           Move the file window up to the previous line of the  file  unless
  1996.           the window is already at the first line of the file. 
  1997.  
  1998.       Page Down - F1, PgDn
  1999.           Move  the  file window down or forward on the file by 20 lines to
  2000.           show the next section of the file. 
  2001.  
  2002.       Page Up - F2, PgUp
  2003.           Move the file window up or backward on the file by  20  lines  to
  2004.           show the previous section of the file. 
  2005.  
  2006.       Position
  2007.           Position  the  file  window  to  a  specific  line of the file or
  2008.           relative from the current file position.  The new  file  position
  2009.           is requested by the following prompt. 
  2010.           
  2011.             Position relative (+num or -num) or absolute (num):
  2012.           
  2013.           If  a  number  without a plus "+" or minus "-" sign is specified,
  2014.           then the file window is moved to the specified line number if  it
  2015.           exists.   If a number with a plus "+" sign is specified, then the
  2016.           file window is moved down or forward by the specified  number  of
  2017.           lines.  Otherwise if a number with a minus "-" sign is specified,
  2018.           then  the  file  window  is moved up or backward by the specified
  2019.           number of lines. 
  2020.  
  2021.       Quit
  2022.           Terminate the show file utility and return to the  utility  which
  2023.           invoked it or to the DOS command handler. 
  2024.  
  2025.       Top of File - F3
  2026.           Position the file window to the first line of the file. 
  2027.  
  2028.  
  2029.  
  2030.  
  2031.  
  2032.  
  2033.  
  2034.  
  2035.  
  2036.  
  2037.  
  2038.  
  2039.  
  2040.  
  2041.  
  2042.  
  2043.                                       4-2                                  
  2044.     User Documentation                   Print File Utility
  2045.  
  2046.  
  2047.                                   Section 5
  2048.                                        
  2049.                               Print File Utility
  2050.  
  2051.  
  2052.     5.1  Introduction
  2053.     
  2054.     The  print  file  utility  copies  an  ASCII  text  file to the printer
  2055.     optionally adding page headers which give the file name,  current  date
  2056.     and  time,  and  page number.  The print file utility is invoked by the
  2057.     "Print" file command in the show directory utility and by the following
  2058.     DOS command. 
  2059.     
  2060.       PF <file_name>
  2061.     
  2062.     If the print file utility is  invoked  with  the  DOS  command  without
  2063.     specifing  a  file  name,  the following prompt requests the file to be
  2064.     printed. 
  2065.     
  2066.       Print File - Enter pathname:
  2067.     
  2068.     In this mode the print file utility will continue to request  the  name
  2069.     of a file to be printed until an empty file name or the ESC key is used
  2070.     to  terminate  the  print  file  utility.   In this mode, a file can be
  2071.     printed with or without page headers.  Your choice is requested by  the
  2072.     following prompt. 
  2073.     
  2074.       Print file [<file_name>] with page headers? (Yes/No/ESC)
  2075.     
  2076.     If  page  headers are desired respond with a "Y" or "y", or if the file
  2077.     is to be printed without page headers because it has  internal  printer
  2078.     control  characters respond with a "N" or "n".  To abort the print file
  2079.     process use the ESC key. 
  2080.  
  2081.  
  2082.     5.2  Print Format
  2083.     
  2084.     If a file is printed with page headers, the file name, current date and
  2085.     time, and page number is printed at the top of each page followed by 60
  2086.     lines of  the  file.   An  example  page  header  for  the  file  named
  2087.     "A:\DFEDIT\EDIT.HLP" is shown below. 
  2088.  
  2089.       PF 2.1   19-Jan-85  12:30:40         A:\DFEDIT\EDIT.HLP   Page 1
  2090.  
  2091.  
  2092.  
  2093.  
  2094.  
  2095.  
  2096.  
  2097.  
  2098.  
  2099.  
  2100.  
  2101.  
  2102.  
  2103.  
  2104.  
  2105.                                       5-1                                  
  2106.     User Documentation                   Text Formatter Utility
  2107.  
  2108.  
  2109.                                   Section 6
  2110.                                        
  2111.                             Text Formatter Utility
  2112.  
  2113.  
  2114.     6.1  Introduction
  2115.     
  2116.     The  text  formatter  utility  produces a neatly formatted version of a
  2117.     input text file, with optional page headers and footers and with output
  2118.     lines filled to a uniform right margin.   Input  text  lines  may  have
  2119.     interspersed  among  them command lines that alter this default mode of
  2120.     formatting.  This utility is taken from Software  Tools  in  Pascal  by
  2121.     Brian W. Kernighan and P. J. Plauger. 
  2122.     
  2123.     The text formatter is invoked by the following DOS command. 
  2124.     
  2125.       ROFF <input_file> <output_file>
  2126.     
  2127.     The  <input_file> is the name of the file which contains the text to be
  2128.     formatted with interspersed commands.  The <output_file> is the name of
  2129.     the file to which the formatted text  is  sent.   The  printer  can  be
  2130.     specified as the output file by using the file name "LST" or "PRN".  If
  2131.     an  <output_file>  is  not supplied, the output is sent to the standard
  2132.     output device which is normally the screen. 
  2133.  
  2134.  
  2135.     6.2  Commands
  2136.     
  2137.     A command line consists of a leading period  '.',  followed  by  a  two
  2138.     letter  code, possibly with optional arguments separated by one or more
  2139.     blanks and tabs from  the  command  code.   Multiple  commands  can  be
  2140.     included  on  a  command line by terminating a command with a semicolon
  2141.     ';', plus a leading period '.' for the next command. 
  2142.     
  2143.     Each of the valid commands is described briefly in the following table.
  2144.     The letter 'n' indicates that the command allows  an  optional  numeric
  2145.     argument.   If  a numeric argument is preceded by a + or -, the current
  2146.     value is changed by the amount; otherwise the argument  represents  the
  2147.     new  value.   The symbol "str" indicates that a string of characters is
  2148.     needed by the command.  For the copy  file  command  ".co"  the  string
  2149.     indicates  a  file  name.   Certain  commands  cause  a  "break" in the
  2150.     processing of input text lines, i.e.,  any  partially  filled  line  is
  2151.     output  and  a new line is begun.  If no argument is given, the default
  2152.     value is used. 
  2153.  
  2154.  
  2155.  
  2156.  
  2157.  
  2158.  
  2159.  
  2160.  
  2161.  
  2162.  
  2163.  
  2164.  
  2165.  
  2166.  
  2167.                                       6-1                                  
  2168.     User Documentation                               Text Formatter Utility
  2169.  
  2170.  
  2171.          command    break?   default     function
  2172.          
  2173.           .bd n      no        n=1       double print next n lines
  2174.           .bp n      yes       n=+1      begin page numbered n
  2175.           .br                  yes       cause break
  2176.           .ce n      yes       n=1       center next n lines
  2177.           .co str    yes                 copy file (up to 4 levels)
  2178.           .fi        yes                 start filling
  2179.           .fo str    no        empty     footer title
  2180.           .he str    no        empty     header title
  2181.           .in n      no        n=0       indent n spaces
  2182.           .lm n      no        n=5       set left margin to n
  2183.           .ls n      no        n=1       line spacing is n
  2184.           .ne n      yes       n=1       need n lines on page
  2185.           .nf        yes                 stop filling
  2186.           .pl n      no        n=62      set page length to n
  2187.           .rm n      no        n=75      set right margin to n
  2188.           .sp n      yes       n=1       space down n lines
  2189.           .ti n      yes       n=0       temporary indent of n
  2190.           .ul n      no        n=1       underline next n lines
  2191.  
  2192.  
  2193.     6.3  Formatting Rules
  2194.     
  2195.     A blank input  line  causes  a  break  and  is  passed  to  the  output
  2196.     unchanged.   Similarly,  an input line that begins with blanks causes a
  2197.     break and is written to the output with the leading  blanks  preserved.
  2198.     Thus  a  document  formatted  in  the  conventional manner by hand will
  2199.     retain its original paragraph breaks and indentation. 
  2200.     
  2201.     The '^' character can  be  used  to  produce  a  non  adjustable  blank
  2202.     character.   Normally  a period '.' followed by one or more blanks will
  2203.     be output with two trailing blanks.  The '@'  character  is  an  escape
  2204.     character  which  will  output  the  next character.  It can be used to
  2205.     output either the '^' or '@' characters. 
  2206.     
  2207.     The title header and footer lines can have the form of a single line of
  2208.     text with an optional leading single or double quote  character.   This
  2209.     form  is output starting at the left margin.  The title can also have a
  2210.     left  part,  a  center  part,  and  a  right  part  using  the   format
  2211.     "\left\center\right\".   The '#' character in the title will output the
  2212.     current page number. 
  2213.  
  2214.  
  2215.  
  2216.  
  2217.  
  2218.  
  2219.  
  2220.  
  2221.  
  2222.  
  2223.  
  2224.  
  2225.  
  2226.  
  2227.  
  2228.  
  2229.                                       6-2                                  
  2230.  
  2231.