home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1994 #1 / monster.zip / monster / PROG_C / PCSHEL23.ZIP / PCSHELL.DOC < prev    next >
Text File  |  1993-11-15  |  32KB  |  916 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.         
  8.                             
  9.                             
  10.                             
  11.                             
  12.                             
  13.                             
  14.                             
  15.                             
  16.                             
  17.                             
  18.                             
  19.                             _______
  20.                        ____|__     |               (TM)
  21.                     --|       |    |-------------------
  22.                       |   ____|__  |  Association of
  23.                       |  |       |_|  Shareware
  24.                       |__|   o   |    Professionals
  25.                     -----|   |   |---------------------
  26.                          |___|___|    MEMBER
  27.         
  28.         
  29.                               POWER C SHELL
  30.                                VERSION 2.3
  31.                               
  32.         Copyright 1991-1993 by Chuck Steenburgh & Tay-Jee Software
  33.          
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.                                      Page 1
  63.  
  64.  
  65.  
  66.  
  67.  
  68.         
  69.         
  70.         
  71.         
  72.                           TABLE OF CONTENTS
  73.         
  74.         Definition of Shareware .  .  .  .  .  .  .  .  .  .  3
  75.         
  76.         Distribution Limitations.  .  .  .  .  .  .  .  .  .  3
  77.         
  78.         ASP Ombudsman  .  .  .  .  .  .  .  .  .  .  .  .  .  3
  79.         
  80.         Disclaimer  .  .  .  .  .  .  .  .  .  .  .  .  .  .  3
  81.         
  82.         Starting Power C Shell Version 2.2  .  .  .  .  .  .  6
  83.         
  84.            Running Power C Shell                              6
  85.            Configuring PCS                                    6
  86.            Installing PCS                                     7
  87.         
  88.         Power C Shell Display.  .  .  .  .  .  .  .  .  .  .  8
  89.         
  90.         Power C Shell Menu Options .  .  .  .  .  .  .  .  .  9
  91.         
  92.            Files Menu                                         9
  93.            Operations Menu                                   10
  94.            Configuration Menu                                12
  95.            Quit Menu                                         13
  96.         
  97.         Appendices  .  .  .  .  .  .  .  .  .  .  .  .  .  . 14
  98.         
  99.            Environment variables                             14 
  100.            Help                                              15
  101.          
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.                                      Page 2
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                     
  130.         DEFINITION OF SHAREWARE
  131.         
  132.         Shareware distribution gives users a chance to try software
  133.         before buying it. If you try a Shareware program and continue
  134.         using it, you are expected to register. Individual programs
  135.         differ on details -- some request registration while others
  136.         require it, some specify a maximum trial period. With
  137.         registration, you get anything from the simple right to continue
  138.         using the software to an updated program with printed manual.
  139.         
  140.         Copyright laws apply to both Shareware and commercial software,
  141.         and the copyright holder retains all rights, with a few specific
  142.         exceptions as stated below. Shareware authors are accomplished
  143.         programmers, just like commercial authors, and the programs are
  144.         of comparable quality. (In both cases, there are good programs
  145.         and bad ones!) The main difference is in the method of
  146.         distribution. The author specifically grants the right to copy
  147.         and distribute the software, either to all and sundry or to a
  148.         specific group. For example, some authors require written
  149.         permission before a commercial disk vendor may copy their
  150.         Shareware.
  151.         
  152.         Shareware is a distribution method, not a type of software. You
  153.         should find software that suits your needs and pocketbook,
  154.         whether it's commercial or Shareware. The Shareware system makes
  155.         fitting your needs easier, because you can try before you buy.
  156.         And because the overhead is low, prices are low also. Shareware
  157.         has the ultimate money-back guarantee -- if you don't use the
  158.         product, you don't pay for it.
  159.         
  160.         DISTRIBUTION LIMITATIONS:  This is a copyrighted shareware
  161.         program.  You have a limited license to try out this soft-
  162.         ware on a single computer for a period of 30 days.  If you
  163.         continue to use the software after this 30-day trial period,
  164.         you must become a registered user.
  165.         
  166.         OMBUDSMAN
  167.         
  168.           This program is produced by a member of the Association of
  169.         Shareware Professionals (ASP).  ASP wants to make sure that
  170.         the shareware principle works for you.  If you are unable to
  171.         resolve a shareware-related problem with an ASP member by
  172.         contacting the member directly, ASP may be able to help.  The
  173.         ASP Ombudsman can help you resolve a dispute or problem with
  174.         an ASP member, but does not provide technical support for 
  175.         members' products.  Please write to the ASP Ombudsman at 545
  176.         Grover Road, Muskegon, MI 49442 or send a CompuServe message
  177.         via CompuServe Mail to ASP Ombudsman, 70007,3536.
  178.         
  179.         DISCLAIMER
  180.         
  181.            The program described in this documentation is guaranteed 
  182.         to do absolutely nothing!  It has, however, in my experience
  183.  
  184.                                      Page 3
  185.  
  186.  
  187.  
  188.  
  189.  
  190.         performed essentially as described herein.  The author will 
  191.         not be responsible for any loss or damages caused through
  192.         the use of these programs.  No warranty, express or implied,
  193.         is provided for this software's performance, merchantability,
  194.         or fitness for a particular purpose.
  195.         
  196.            All trademarks are property of their respective owners.  In
  197.         particular, "Power C" is a registered trademark of MIX Software.
  198.         
  199.            The program and documentation are Copyright 1991-193 by Chuck
  200.         Steenburgh & Tay-Jee Software.  You are encouraged to distribute
  201.         these programs provided the conditions specified in the
  202.         VENDOR.DOC file are met.
  203.         
  204.            You may evaluate this program for up to 30 days on a free
  205.         trial basis.  After 30 days, you should register your use of
  206.         the program.  The registration fee is $19.95, payable to Tay-Jee
  207.         Software at the address given below.  Please see the file
  208.         REGISTER.FRM on the distribution disk/archive.
  209.         
  210.            Registration does have its advantages:
  211.         
  212.            - We are improving the program all the time.  Registration
  213.              will get you IMMEDIATELY a disk with the latest version.
  214.         
  215.            - You will receive a free copy of Chuck Steenburgh's per-
  216.              sonal 'C' function library - more than two dozen useful
  217.              additions to your Power C programming library.
  218.         
  219.            - While we can't promise to include everyone's suggestions
  220.              in program updates, you can bet we'll listen to registered
  221.              users before any of you scrounges out there.
  222.         
  223.            - You will also get evaluation copies of our other shareware
  224.              products, including:
  225.                   * STEENBURGH's STUFF batch file utilities
  226.                   * BACK SOON! intelligent screen saver
  227.                   * 6th SENSE utilities for DOS 6.00
  228.                   * MARGARINE easy text file formatting utility
  229.            
  230.            - Registered users can obtain the source code for the program
  231.              at the cost of an additional $10.
  232.         
  233.            Send comments/registrations to:
  234.         
  235.                 Tay-Jee Software
  236.                 Post Office Box 835
  237.                 Lexington, VA 24450
  238.                 (703)261-5290
  239.                 
  240.                 !!!VIRGINIA RESIDENTS ADD 4.5SALES TAX!!!
  241.                 
  242.                 Orders outside North America add $5 shipping.  Payment
  243.                 must be made in U.S. funds, but non-U.S. checks are OK.
  244.  
  245.                                      Page 4
  246.  
  247.  
  248.  
  249.  
  250.  
  251.                 
  252.                 On-line registration: CompuServe (GO SWREG), #1180.
  253.                 (Use #1218 for source code version.)
  254.         
  255.                 CIS 72330,1776 (we haunt the IBMSYS and IBMPRO forums)
  256.         
  257.         Now that the semi-legal mumbo-jumbo is out of the way, welcome
  258.         to POWER C SHELL Version 2.3.  This program began as a simple 
  259.         aid to Power C programmers and blossomed into a much more am-
  260.         bitious project.  POWER C SHELL Version 2.3 has the following 
  261.         features:
  262.         
  263.              - Simplifies editing, compiling, and debugging
  264.              of POWER C programs without having to fool with
  265.              the DOS command line
  266.             
  267.              - Customizable editor and viewer (use your favorites),
  268.              or use the very handy TDE public domain editor in-
  269.              cluded in the package
  270.             
  271.              - Customizable compile & link options for Power C 
  272.              compiler (with help screens to explain them all)
  273.              
  274.              - Interface includes support of Power C Trace inter-
  275.              active debugging utility, available separately from
  276.              Mix Software.
  277.             
  278.              - Ability to review C.ERR error listing without
  279.              leaving the shell
  280.             
  281.              - Test run your executable programs without
  282.              leaving the shell
  283.              
  284.              - Easy, one-step loading of complete projects
  285.              
  286.              - Customizable screen colors
  287.              
  288.              - Context-sensitive help (although the program is so
  289.              simple, I doubt you'll need it)
  290.              
  291.  
  292.  
  293.  
  294.  
  295.  
  296.  
  297.  
  298.  
  299.  
  300.  
  301.  
  302.  
  303.  
  304.  
  305.  
  306.                                      Page 5
  307.  
  308.  
  309.  
  310.  
  311.  
  312.         STARTING POWER C SHELL VERSION 2.3
  313.         
  314.            Power C Shell itself requires approximately 140K of free
  315.         memory to run.  To this amount, however, you must add the 
  316.         greater of the memory required by your editor, viewer, and 
  317.         whatever C program you happen to be working on.  Power C Shell
  318.         remains in memory when these programs are executing.  The
  319.         Power C compiler, version 2.x, requires about 256K of free
  320.         memory.  Basically, a 512K machine or better is a safe bet, al-
  321.         though you might get by with only 384K available.  If you wish
  322.         to use Power C Trace with Power C Shell, you will need much more
  323.         available memory: 150k for Power C Trace, 140k for Power C
  324.         Shell, and whatever memory is required the program which you are
  325.         working on.
  326.         
  327.             
  328.              Running Power C Shell
  329.              =====================
  330.             
  331.              The syntax for starting Power C Shell is as follows:
  332.             
  333.                PCS2 [filename] [/D-] [/Llibname] [/H]
  334.                
  335.                [filename] optional parameter specifying complete
  336.                           name of source file to work on
  337.                
  338.                [/D-]      optional parameter telling PCS to ignore its
  339.                           configured starting directory and use the
  340.                           current directory
  341.                
  342.                [/L]       specify additional function library (switch
  343.                           must be followed by complete library name)
  344.                
  345.                [/H]       display a brief help screen
  346.              
  347.         
  348.         
  349.              Configuring PCS
  350.              =========== ===
  351.              
  352.            Prior to using PCS, you will have to configure it.  You may
  353.         do this either through the environment variables described in
  354.         the appendices or through the Configuration pull-down menu 
  355.         detailed below.  At a minimum, you will need to specify the 
  356.         name of your editor and any compile options you would like used 
  357.         with the Power C.  You may also want to specify the name of a
  358.         text viewer - a program which allows you to view the contents
  359.         of an ASCII file - with which to examine the C.ERR file.  (You
  360.         may use the editor for this purpose as well.)
  361.         
  362.                
  363.         
  364.         
  365.         
  366.  
  367.                                      Page 6
  368.  
  369.  
  370.  
  371.  
  372.  
  373.              Installing PCS
  374.              ========== ===
  375.            
  376.            It is recommended, but not necessary, to copy the PCS2.EXE
  377.         program file to the same directory containing your Power C com-
  378.         piler.  If you would like to be able to use PCS from any direc-
  379.         tory, make sure the PCS2.EXE file is placed in a subdirectory
  380.         contained in your DOS PATH.
  381.         
  382.            If you would like to use the TDE editor with PCS, place the
  383.         TDE program files in a directory accessible to PCS.  If this
  384.         directory is not also on your DOS PATH, you will have to specify
  385.         the COMPLETE path for TDE when you configure PCS.
  386.          
  387.  
  388.  
  389.  
  390.  
  391.  
  392.  
  393.  
  394.  
  395.  
  396.  
  397.  
  398.  
  399.  
  400.  
  401.  
  402.  
  403.  
  404.  
  405.  
  406.  
  407.  
  408.  
  409.  
  410.  
  411.  
  412.  
  413.  
  414.  
  415.  
  416.  
  417.  
  418.  
  419.  
  420.  
  421.  
  422.  
  423.  
  424.  
  425.  
  426.  
  427.  
  428.                                      Page 7
  429.  
  430.  
  431.  
  432.  
  433.  
  434.         
  435.         POWER C SHELL DISPLAY
  436.         
  437.              Project Board
  438.              
  439.            The main display is divided up into three areas.  The largest
  440.         area, in the upper left portion of the screen, is the "project
  441.         board" which lists information regarding the current project
  442.         being worked on.
  443.         
  444.            Space here is used to list all currently open source files
  445.         (up to seven), the name of the project make file, the name of
  446.         the executable file being linked to, the current working dir-
  447.         ectory, the name of any object library specified, and the name
  448.         of the project include file.
  449.         
  450.              
  451.              Memory Management Display
  452.              
  453.            To the right of the "project board" is the memory management
  454.         display, showing current allocations of stack, heap, and far
  455.         heap memory.
  456.         
  457.         
  458.              Status Board
  459.            
  460.            In the bottom area of the screen is the "status board."  This
  461.         area is used to display current Power C Shell settings such as
  462.         the name of the editor and viewer and their switches, and any
  463.         command line switches in effect for the Power C compiler, link-
  464.         er, and trace program.
  465.         
  466.         
  467.              Other Display Features
  468.            
  469.            The bottom line of the display is used by the passive help
  470.         system (described below) and a copyright message.  The top line
  471.         of the display contains the pull-down menu bar and a real-time
  472.         24-hour clock.
  473.          
  474.  
  475.  
  476.  
  477.  
  478.  
  479.  
  480.  
  481.  
  482.  
  483.  
  484.  
  485.  
  486.  
  487.  
  488.  
  489.                                      Page 8
  490.  
  491.  
  492.  
  493.  
  494.  
  495.         
  496.         POWER C SHELL MENU OPTIONS
  497.         
  498.              Files Menu
  499.              ===== ====
  500.         
  501.            Pressing the Alt-F key combination will activate the Files
  502.         pull-down menu, which contains the following options:            
  503.         
  504.         
  505.              Open 
  506.              
  507.            Selecting this menu choice will allow you to open a file for
  508.         editing and/or compiling.  Up to seven files, all belonging to
  509.         the same project, may be open at one time in PCS v2.3.  After
  510.         selecting this item, you'll be asked to enter a wildcard file
  511.         specification.  The default is *.C; however, you may enter any
  512.         value you like.  A list of all files matching the entered wild-
  513.         card pattern will be displayed in a box centered on the screen.
  514.         Using the cursor keys, position the highlight bar over the name
  515.         of the file you would like to open and then press <Enter>.
  516.         
  517.            If you open a Power C project file with a .PRJ extension, all
  518.         of the associated source files of the project will be opened.
  519.         NOTE:  This project file MUST be in PCS 2.3 format for this to
  520.         work properly.  If you open a project file while other files are
  521.         open, they will be closed first and then the project will be
  522.         loaded.
  523.         
  524.            If more than one file is open, you will be asked to choose an
  525.         "active file."  The active file is the file which is loaded by
  526.         the "Edit" menu choice described below.  Enter the file number
  527.         (1-7) of the file which you would like to be active.  A pair
  528.         of flashing exclamation points appears next to the name of the 
  529.         active file.
  530.         
  531.         
  532.              New file
  533.              
  534.            Selecting this menu item will allow you to type the name of a
  535.         new C source file on upon which to begin work.  Do NOT enter the
  536.         name of a project (*.PRJ) file.  Again, if multiple files are
  537.         open, you will be asked to select the active file.
  538.         
  539.         
  540.              Switch
  541.            
  542.            Selecting this item will allow you to change the active file.
  543.             
  544.         
  545.              Edit
  546.             
  547.            Selecting this menu item will invoke your editor and load the
  548.         currently active file for editing.
  549.  
  550.                                      Page 9
  551.  
  552.  
  553.  
  554.  
  555.  
  556.         
  557.         
  558.              Close
  559.            
  560.            This option allows you to remove a file from the list of
  561.         open source files.  Type the number of the file you wish to
  562.         close in the dialog box.  If more than one file remains open,
  563.         you will be asked to designate a new active file.
  564.         
  565.         
  566.              All Close
  567.            
  568.            This option will remove ALL files from the open list.
  569.            
  570.            
  571.              Print
  572.            
  573.            This option allows you to print one or more files associated
  574.         with the current project.  In the dialog box that appears, press
  575.         "A" to print all source files, "I" to print the project #include
  576.         file (*.H), or the number of a single open file.  Your printer
  577.         must be connected to the standard printer port (usually LPT1).  |
  578.         
  579.            If there is an error, PCS will inform you of the nature of the
  580.         problem and provide you with the opportunity of correcting it or
  581.         aborting the print operation.
  582.         
  583.         
  584.              Directory
  585.            
  586.            This option allows you to change the current working direc-
  587.         tory.  Enter a drive letter, directory, or complete path, as
  588.         appropriate, into the dialog box.  Any open files will be closed
  589.         upon changing directories.
  590.         
  591.         
  592.              Info                                                       |
  593.            
  594.            Selecting this item calls up a dialog box displaying the pro-|
  595.         gram version and other information.  In the unregistered version|
  596.         you may also print a registration form from this screen.        |
  597.         
  598.         
  599.              Operations Menu
  600.              ========== ====
  601.              
  602.            Pressing the Alt-O key combination activates the Operations
  603.         pull-down menu, which contains the following options:
  604.         
  605.         
  606.              Compile
  607.            
  608.            Selecting this item invokes the Power C compiler and compiles
  609.         the currently open source file(s).  Any compile options speci-
  610.  
  611.                                      Page 10
  612.  
  613.  
  614.  
  615.  
  616.  
  617.         fied through the PCS configuration file or environment variables
  618.         will eb in effect for the compilation.
  619.         
  620.            The compile listing will appear on the screen and you will
  621.         have the opportunity to view it prior to return to PCS.  To pre-
  622.         vent the listing from scrolling off the screen, include the
  623.         #pragma pagesize preprocessor directive in your program source.
  624.         
  625.         
  626.              Link
  627.            
  628.            The current project or source file will be linked, using the
  629.         options specified through the configuration file or environment
  630.         variable.  The executable file produced will have the same name
  631.         as the first open file, with the extension .EXE.
  632.         
  633.         
  634.              Header
  635.              
  636.            Selecting this option will invoke your editor and load the
  637.         project #include (*.H) file.  Using such a file is an easy way
  638.         to declare external variables by using the #include file in
  639.         supplementary project source code modules.
  640.         
  641.         
  642.              View C.ERR
  643.              
  644.            This option will invoke your viewer and allow you to see the
  645.         contents of the most recent compile listing (contained in the
  646.         C.ERR file generated by PC.EXE).
  647.         
  648.         
  649.              Trace
  650.            
  651.            Selecting this menu item will invoke Power C Trace, a program
  652.         available separately from Mix Software.  The PCT.EXE program
  653.         must be located in a directory on the DOS PATH, or in the cur-
  654.         rent directory.  You should also have compiled your program with
  655.         the /T switch, and subsequently linked it, prior to running the
  656.         trace program.
  657.         
  658.         
  659.              DOS Shell
  660.            
  661.            This option allows you to return momentarily to the DOS com-
  662.         mand line without exiting PCS 2.3.  A reminder will appear in
  663.         your prompt informing you to type "exit" to return to PCS.  
  664.         While you are in the DOS Shell, keep in mind that your total
  665.         free memory is reduced by approximately 140k.
  666.         
  667.         
  668.         
  669.         
  670.         
  671.  
  672.                                      Page 11
  673.  
  674.  
  675.  
  676.  
  677.  
  678.              Configuration Menu
  679.              ============= ====
  680.              
  681.            Pressing the Alt-C key combination will activate the Con-
  682.         figuration pull-down menu, which includes the following op-
  683.         tions:
  684.         
  685.         
  686.              Editor
  687.            
  688.            Selecting this option will allow you to enter the name of
  689.         your editor.  In the first dialog box, enter the complete path
  690.         and file name of your editor program.  In the second dialog box,
  691.         enter any command line parameters (switches) required by your
  692.         editor, if any.  A third dialog box will ask if your editor can
  693.         load more than one file from the command line.  If your editor
  694.         can accept multiple file names, press "Y"; otherwise, press "N".
  695.         The editor name and switches will then appear on the appropriate 
  696.         line in the status area at the bottom of the screen.
  697.         
  698.         
  699.              Viewer
  700.            
  701.            This option allows you to configure your viewer program.
  702.         Follow the steps above for the editor, this time typing the
  703.         path and switches for the viewer.  The viewer is used only for
  704.         viewing the contents of the C.ERR file from within Power C
  705.         Shell.
  706.         
  707.         
  708.              Compile Options
  709.              
  710.            This option will allow you to select which switches are to be
  711.         used by the Power C compiler.  The PC.EXE file's help screen 
  712.         will be displayed and a small dialog box will appear at the bot-
  713.         tom of the screen.  Enter your choice into the box.
  714.         
  715.         
  716.              Link Options
  717.            
  718.            This menu choice will allow you to specify link options.  A
  719.         small help screen explaining the available switches will be
  720.         presented.  Enter your switch(es) in the dialog box.
  721.         
  722.         
  723.              Memory Allocations
  724.              
  725.            With this option you can control the size of the stack, heap,
  726.         and far heap of your program.  Enter values for each of these
  727.         items in the dialog box just as you would enter them on the com-
  728.         mand line.  For example, if you want 16k of memory for the stack
  729.         enter "16k"; if you want 800 bytes allocated for the heap, enter
  730.         "800."
  731.         
  732.  
  733.                                      Page 12
  734.  
  735.  
  736.  
  737.  
  738.  
  739.         
  740.              Object Library
  741.            
  742.            Select this option to enter the name of an object file to be
  743.         linked as a library.  This can be a library of your own creation
  744.         or a third-party library.  Make use of the "?" wildcard to spec-
  745.         ify different library names for the three memory models.  For
  746.         example, PCS is linked with the library CJSLIBM.MIX, a library
  747.         of functions developed by Tay-Jee Software.  By entering the
  748.         name "CJSLIB?.MIX" as an object library, the files CJSLIBS.MIX,
  749.         CJSLIBM.MIX, or CJSLIBL.MIX will be linked depending upon which
  750.         memory model is in effect.  (See the Power C README file for a
  751.         further discussion of libraries and wildcards.)
  752.         
  753.         
  754.              Trace Options
  755.            
  756.            This option allows you to specify command line arguments for
  757.         Power C Trace.  A brief desctiption of the available switches is
  758.         shown in the dialog box; simply type the switch(es) you wish to
  759.         have included on the command line when you use Power C Trace.
  760.         
  761.         
  762.              Program Colors
  763.            
  764.            Selecting this option activates the program color selection
  765.         process.  Nine screen elements can have their screen attributes
  766.         individually configured.  Enter the number of the screen color
  767.         you wish to modify, then position the flashing star character
  768.         over the appropriate color combination, then press <Enter>.
  769.         Once you are through selecting colors, press ESC instead of a   |
  770.         color number.  In the dialog box which appears, type U to put   |
  771.         your newly selected colors into effect, C to ignore the new     |
  772.         colors and use the colors in currently in effect, or D to
  773.         revert to the program's default color scheme.  In the unreg-
  774.         istered version, while you can change the colors selected, you
  775.         cannot save these changes in the configuration file.
  776.         
  777.         
  778.              Quit
  779.              ====
  780.             
  781.            Select this option to leave Power C Shell and return to 
  782.         DOS.  Three options are available:  "Yes" exits PCS immediately;
  783.         "Save" updates the PCSHELL.CFG file with the current settings,
  784.         then returns to DOS; and "No" returns you to PCS.
  785.          
  786.  
  787.  
  788.  
  789.  
  790.  
  791.  
  792.  
  793.  
  794.                                      Page 13
  795.  
  796.  
  797.  
  798.  
  799.  
  800.         
  801.         APPENDICES
  802.         
  803.             Environment Variables
  804.             =====================
  805.             
  806.            Power C Shell can configure itself through the use of
  807.         environment variables. Power C Shell understands the following
  808.         environment variables:
  809.         
  810.              PCEDIT:     complete path of your editor
  811.              PCEDITP:    any command line parameters used by your editor
  812.              PCVIEW:     complete path of your viewer
  813.              PCVIEWP:    any command line parameters used by your viewer
  814.              PCOPTIONS:  default compile options to be used by PC.EXE
  815.              PCLINK:     default link options to be used by PCL.EXE
  816.             
  817.            Environment variables are established by use of the DOS
  818.         SET command.  To set the name of your viewer to C:\LIST.COM,
  819.         simply type the following at the DOS command line:
  820.         
  821.              SET PCVIEW=C:\LIST.COM
  822.             
  823.            Use a similar procedure to set the other variables.  To
  824.         set your default compile options to "/e/ms" (link file, use
  825.         small memory model), type the following on the DOS command 
  826.         line:
  827.         
  828.              SET PCOPTIONS=/e/ms
  829.             
  830.            If, while entering your environment variables, you get
  831.         the message "Out of environment space" or something similar,
  832.         you need to edit your CONFIG.SYS file.  Look for a state-
  833.         ment similar to the following:
  834.         
  835.              SHELL=c:\dos\command.com c:\dos /p
  836.             
  837.            To increase the environment space, change the statement
  838.         to something like this:
  839.         
  840.              SHELL=c:\dos\command.com c:\dos /p /e:384
  841.             
  842.            In the example above, 384 is the new number of bytes re-
  843.         served for the environment (160 is the default).  DOS will 
  844.         always round this number to a multiple of 16.  384 bytes 
  845.         should be enough for most users, although you may need more.
  846.         The limit is 32,768, although there should never be a need 
  847.         for more than 1 or 2K.   See your DOS manual for more de-
  848.         tails on setting the environment size.  Note that you must 
  849.         reboot your computer after editing your CONFIG.SYS file for
  850.         any changes to take effect.
  851.         
  852.            The PCEDITP and PCVIEWP parameter variables assume that
  853.         your editor and viewer accept command line switches AFTER the 
  854.  
  855.                                      Page 14
  856.  
  857.  
  858.  
  859.  
  860.  
  861.         filename to edit/view.  For example:
  862.         
  863.              <PCEDIT> (filename) <PCEDITP>
  864.              edit   program.c   -x -e
  865.               
  866.            If your editor/viewer only accept parameters and switches
  867.         BEFORE the filename, enter them as part of the PCEDIT or 
  868.         PCVIEW varaibles.  For example:
  869.         
  870.              <PCEDIT>     (filename)
  871.              edit -x -e   program.c
  872.             
  873.            you would enter the following command on the DOS command 
  874.         line prior to starting Power C Shell:
  875.         
  876.              SET PCEDIT=edit -x -e
  877.         
  878.            Environment variables will override any options contained
  879.         in the PCSHELL.CFG configuration file.
  880.         
  881.              Help
  882.              ====
  883.         
  884.            Context-sensitive help is available from within the PCS
  885.         menu system (only).  From the main PCS screen, or from within
  886.         any pull-down menu, pressing <F1> activates the help system.
  887.         A box will appear on the middle of the screen containing the
  888.         help information for the currently selected menu operation.
  889.         Use the cursor movement keys to scroll the help text up and
  890.         down through the box.  Pressing <Esc> returns you to PCS.
  891.         
  892.            A passive help system also exists for all menu items.  Look
  893.         at the bottom line on the screen for a brief description of the
  894.         currently highlighted menu item.
  895.         
  896.            A short help line appears for most dialog boxes in PCS.  Most 
  897.         "basic" editing functions, such as Insert/Delete and Backspace 
  898.         work normally in dialog boxes.  In addition, the <Tab> key can 
  899.         be used to DELETE all information in a dialog box which lies to 
  900.         the right of the cursor.
  901.         
  902.         
  903.            This document was formatted with MARGARINE 3.11, a utility 
  904.         program created using Power C 2.2.0 and Power C Shell.  Look for
  905.         it in IBM Systems/Utilities Forum (IBMSYS) on CompuServe (found
  906.         in the New Uploads or General Utilities Library as MARGAR.ZIP).
  907.  
  908.  
  909.  
  910.  
  911.  
  912.  
  913.  
  914.  
  915.  
  916.                                      Page 15