home *** CD-ROM | disk | FTP | other *** search
/ The Developer Connection…ice Driver Kit for OS/2 3 / DEV3-D1.ISO / editors / enved / enved.doc < prev    next >
Encoding:
Text File  |  1993-12-09  |  11.9 KB  |  570 lines

  1.  
  2.  
  3.                                                                 EnvE-v110-0
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.         ===================================================================
  35.         ENVED
  36.         An Environment Editor
  37.         Version 1.10
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.         (C) Copyright IBM Corporation 1987, 1993
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.         (C) Copyright IBM Corporation 1987, 1993
  68.  
  69.  
  70.  
  71.         -------------------------------------------------------------------
  72.         Version 1.10, December 1993
  73.  
  74.         This program was written by:
  75.  
  76.         Tim Baldwin
  77.  
  78.         IBM UK Laboratories
  79.         Hursley Park
  80.         Winchester
  81.         Hampshire, SO21 2JN
  82.  
  83.         BALDWINT at WINVMB
  84.         baldy@vnet.ibm.com
  85.  
  86.  
  87.         (C) Copyright IBM Corporation 1987, 1993.  All Rights Reserved.
  88.         -------------------------------------------------------------------
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.                                                                     Page  i
  129.  
  130.  
  131.         (C) Copyright IBM Corporation 1987, 1993
  132.  
  133.  
  134.  
  135.         CONTENTS
  136.  
  137.  
  138.           1.0 Introduction  . . . . . . . . . . . . . . . . . . . . . . . 1
  139.           1.1 What Is ENVED?    . . . . . . . . . . . . . . . . . . . . . 1
  140.           1.2 What You Need   . . . . . . . . . . . . . . . . . . . . . . 1
  141.           1.3 Using ENVED   . . . . . . . . . . . . . . . . . . . . . . . 2
  142.             1.3.1 Installing The Editor   . . . . . . . . . . . . . . . . 2
  143.             1.3.2 Starting The Editor   . . . . . . . . . . . . . . . . . 2
  144.             1.3.3 Making Changes  . . . . . . . . . . . . . . . . . . . . 2
  145.             1.3.4 Ending The Editor   . . . . . . . . . . . . . . . . . . 3
  146.           1.4 Keyboard Summary  . . . . . . . . . . . . . . . . . . . . . 3
  147.  
  148.  
  149.  
  150.  
  151.  
  152.  
  153.  
  154.  
  155.  
  156.  
  157.  
  158.  
  159.  
  160.  
  161.  
  162.  
  163.  
  164.  
  165.  
  166.  
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175.  
  176.  
  177.  
  178.  
  179.  
  180.  
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192.                                                                Contents  ii
  193.  
  194.  
  195.         (C) Copyright IBM Corporation 1987, 1993
  196.  
  197.  
  198.  
  199.         1.0 INTRODUCTION
  200.  
  201.  
  202.  
  203.         1.1 WHAT IS ENVED?
  204.  
  205.         ENVED is program to allow you to edit the environment strings
  206.         associated with an OS/2 process.  The environment consists of a set
  207.         of variable names each variable having a simple text string value.
  208.         Programs running in that OS/2 process may examine the environment
  209.         and obtain the value of one or more of these environment variables.
  210.         Such programs often use the values they obtain to tailor their
  211.         behaviour for an individual user.
  212.  
  213.         Many environment variables are established and given initial values
  214.         as OS/2 starts up and processes its CONFIG.SYS file.  The
  215.         environment can be displayed by issuing the SET command from and
  216.         OS/2 command prompt, the result shows the variables and their
  217.         associated values and looks something like this:
  218.  
  219.         COMPSEC=C:\OS2\CMD.EXE
  220.         PATH=C:\OS2;C:\OS2\SYSTEM;D:\TOOLS
  221.         DPATH=C:\OS2;C:\OS2\SYSTEM
  222.         etc.
  223.  
  224.  
  225.         The SET command can also be used to add new environment variables,
  226.         to remove variables and to replace an existing variable's value.
  227.         However these values are often quite lengthy and rather than
  228.         replacing the entire value you may just want to make a few small
  229.         changes, this is where an Environment Editor such as ENVED proves
  230.         useful.
  231.  
  232.         ENVED may be particularly useful to program developers, since most
  233.         compilers make extensive use of environment variables to control
  234.         the characteristics of the compilation process.  ENVED makes
  235.         altering those environment variables for debugging, testing or
  236.         experimentation very simple.
  237.  
  238.  
  239.         1.2 WHAT YOU NEED
  240.  
  241.         ENVED will run under IBM's OS/2 2.0 or any later version and
  242.         requires that REXX is installed (which is the default).  It should
  243.         also run under IBM's OS/2 1.3 or 1.2 Extended Edition, but these
  244.         older systems have not been fully tested.
  245.  
  246.         ENVED is supplied as a single file ENVED.ZIP.  This should be
  247.         unpacked using PKUNZIP to give:
  248.  
  249.         ENVED.CMD    This is a REXX program to run the editor.
  250.  
  251.         ENVED.DLL    This a library of functions required by the REXX
  252.                      program.
  253.  
  254.  
  255.  
  256.                                                             Introduction  1
  257.  
  258.  
  259.         (C) Copyright IBM Corporation 1987, 1993
  260.  
  261.  
  262.  
  263.         ENVED.DOC    This is the full documentation in a plain ASCII
  264.                      printable format.
  265.  
  266.         In addition the package will contain the following important file:
  267.  
  268.         LICENSE.TXT  This contains the terms and conditions under which IBM
  269.                      makes this program available.
  270.  
  271.  
  272.  
  273.         1.3 USING ENVED
  274.  
  275.  
  276.  
  277.         1.3.1 INSTALLING THE EDITOR
  278.  
  279.         Simply ensure that ENVED.CMD is placed in a subdirectory that is
  280.         listed in your PATH and that ENVED.DLL is placed in a subdirectory
  281.         that is listed in your LIBPATH.
  282.  
  283.  
  284.         1.3.2 STARTING THE EDITOR
  285.  
  286.         From an OS/2 full screen or windowed command session enter the
  287.         following command at the OS/2 prompt:
  288.  
  289.         ENVED <var1> <var2> ...
  290.  
  291.  
  292.         You can put any number, including zero, of environment variable
  293.         names after the ENVED command.  Each variable that you specify will
  294.         be presented in a full screen edit panel (one variable per line)
  295.         together with its current value.  If any of the variables are
  296.         currently not set they will be displayed with a blank value.  If
  297.         you do not specify any variable names the a complete copy the the
  298.         current environment will be displayed.  The list of environment
  299.         variables is always initially displayed sorted into alphabetical
  300.         order.
  301.  
  302.  
  303.         1.3.3 MAKING CHANGES
  304.  
  305.         You may move the cursor anywhere between the "Top of Environment"
  306.         and "End of Environment" markers using the cursor control keys and
  307.         you may make any changes you wish.  The editor starts in "replace"
  308.         mode whereby any characters you type overwrite those already
  309.         present, you may toggle to "insert" mode by pressing the Ins or
  310.         Insert key.  The current mode is indicated by the size of the
  311.         cursor.
  312.  
  313.         You may change the value of any environment variable by altering
  314.         the text to the right of the "=" sign, or you may change the name
  315.         of the variable to the left of the "=" sign (or you may change
  316.         both).  If you change a variable's name this will effectively add
  317.         a new variable leaving the old one unchanged.
  318.  
  319.  
  320.                                                             Introduction  2
  321.  
  322.  
  323.         (C) Copyright IBM Corporation 1987, 1993
  324.  
  325.  
  326.  
  327.         To add a new environment variable either press Ctrl-Enter to add a
  328.         blank line and the type both the variable name and its value, or
  329.         choose the existing variable that most closely matches the new one,
  330.         press Alt-R to duplicate it, then make the required changes.
  331.  
  332.         To remove an environment variable you must set its value to
  333.         nothing, like this:
  334.  
  335.         VARIABLE=
  336.  
  337.  
  338.         The Alt-T (truncate line) key is useful for doing this.
  339.  
  340.         Note: Pressing Ctrl-Backspace (delete line) simply removes a
  341.         variable from the list currently being edited; it does not delete
  342.         the variable or its value from the environment.
  343.  
  344.  
  345.         1.3.4 ENDING THE EDITOR
  346.  
  347.         To end ENVED and return to the OS/2 command prompt press either F3
  348.         or F10.
  349.  
  350.         -  F3 will discard any changes you made, leaving the environment
  351.            settings exactly as they were before ENVED was invoked.
  352.  
  353.         -  F10 will update the current environment with all the changes you
  354.            made.
  355.  
  356.  
  357.  
  358.         1.4 KEYBOARD SUMMARY
  359.  
  360.         The following lists all the editing key actions that are available
  361.         in ENVED.  These keys are similar to those used by the TINYED
  362.         editor, although only a subset of TINYED's keys are provided.
  363.  
  364.         Right            Move the cursor one character to the right.
  365.  
  366.         Left             Move the cursor one character to the left.
  367.  
  368.         Up               Move the cursor up one line.
  369.  
  370.         Down             Move the cursor down one line.
  371.  
  372.         Ctrl-Right       Move the cursor forward to the start of the next
  373.                          word.
  374.  
  375.         Ctrl-Left        Move the cursor back to the start of the previous
  376.                          word.
  377.  
  378.         Tab              Move the cursor forward to the next tab position
  379.                          (tabs are every eight columns).
  380.  
  381.         Shift-Tab        Move the cursor back to the previous tab position
  382.  
  383.  
  384.                                                             Introduction  3
  385.  
  386.  
  387.         (C) Copyright IBM Corporation 1987, 1993
  388.  
  389.  
  390.  
  391.                          (tabs are every eight columns).
  392.  
  393.         Home             Move the cursor to the start of the current line.
  394.  
  395.         End              Move the cursor to the end of the current line.
  396.  
  397.         Ctrl-Home        Move the cursor to the top of the list of
  398.                          environment variables.
  399.  
  400.         Ctrl-End         Move the cursor to the end of the list of
  401.                          environment variables.
  402.  
  403.         Page Up          Scroll the list of environment variables up by one
  404.                          screenful.
  405.  
  406.         Page Down        Scroll the list of environment variables down by
  407.                          one screenful.
  408.  
  409.         Enter            Move the cursor down one one and back to the start
  410.                          of the line.
  411.  
  412.         Ctrl-Enter       Add a new blank line to the list of environment
  413.                          variables.
  414.  
  415.         Backspace        Delete the character to the left of the cursor.
  416.  
  417.         Ctrl-Backspace   Remove the current environment variable from the
  418.                          list being edited.
  419.  
  420.         Delete           Delete the character at the cursor position.
  421.  
  422.         Insert           Toggle between "replace" "insert" typing mode.
  423.  
  424.         Alt-J            Join the next line to the end of the current line.
  425.  
  426.         Alt-R            Repeat the current line (insert a new copy of the
  427.                          current environment variable into the list).
  428.  
  429.         Alt-S            Split the current line at the cursor position.
  430.  
  431.         Alt-T            Truncate the current line (delete all the
  432.                          characters from the cursor position to the end of
  433.                          the line).
  434.  
  435.         F1               Display some help information; press Esc to remove
  436.                          the help panel.
  437.  
  438.         F3               Quit the editor without making any changes.
  439.  
  440.         F10              Update the environment will all the changes made.
  441.  
  442.         Others           You can also enter any ASCII character by holding
  443.                          down the Alt key, typing the character's ASCII
  444.                          value (in decimal, from 1 to 255) on the numeric
  445.                          keypad and releasing the Alt key.
  446.  
  447.  
  448.                                                             Introduction  4
  449.  
  450.  
  451.         (C) Copyright IBM Corporation 1987, 1993
  452.  
  453.  
  454.  
  455.  
  456.  
  457.  
  458.  
  459.  
  460.  
  461.  
  462.  
  463.  
  464.  
  465.  
  466.  
  467.  
  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.  
  494.  
  495.  
  496.  
  497.  
  498.  
  499.  
  500.  
  501.  
  502.  
  503.  
  504.  
  505.  
  506.  
  507.  
  508.  
  509.  
  510.  
  511.  
  512.                                                             Introduction  5
  513.  
  514.  
  515.         ===================================================================
  516.  
  517.  
  518.  
  519.  
  520.  
  521.  
  522.  
  523.  
  524.  
  525.  
  526.  
  527.  
  528.  
  529.  
  530.  
  531.         ===================================================================
  532.  
  533.         (C) Copyright IBM Corporation 1987, 1993
  534.  
  535.  
  536.  
  537.  
  538.  
  539.  
  540.  
  541.  
  542.  
  543.  
  544.  
  545.  
  546.  
  547.  
  548.  
  549.  
  550.  
  551.  
  552.  
  553.  
  554.  
  555.  
  556.  
  557.  
  558.  
  559.  
  560.  
  561.  
  562.  
  563.  
  564.  
  565.  
  566.  
  567.  
  568.  
  569.  
  570.  
  571.  
  572.  
  573.  
  574.  
  575.  
  576.                                                         Printed in the U.K.
  577. 
  578.