home *** CD-ROM | disk | FTP | other *** search
/ Current Shareware 1994 January / SHAR194.ISO / textedit / auror111.zip / A.DOC < prev    next >
Text File  |  1993-11-07  |  224KB  |  5,510 lines

  1.  
  2.  
  3.  
  4.   T h e   A u r o r a   E d i t o r   U s e r ' s   G u i d e
  5.   ───────────────────────────────────────────────────────────
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.   The Aurora Editor User's Guide
  16.  
  17.   Version 1.11, November 1993  (unregistered)
  18.  
  19.   Copyright (c) 1993 Aurora Terra, Inc.
  20.  
  21.   ALL RIGHTS RESERVED.
  22.  
  23.  
  24.  
  25.  
  26.  
  27.   Aurora Terra, Inc.
  28.   P.O. Box 34275
  29.   Bethesda, MD. 20827-0275  USA
  30.   (301)-468-2255
  31.  
  32.  
  33.  
  34.  
  35.  
  36.   The Aurora Editor is Copyright (c) 1993 by Aurora Terra, Inc.
  37.   The Aurora Editor/386 is Copyright (c) 1993 by Aurora Terra, Inc.
  38.   The Aurora Macro Language is Copyright (c) 1993 by Aurora Terra, Inc.
  39.  
  40.   No parts of The Aurora Editor software or this document may be copied
  41.   in part or in whole, except as provided by the License in the
  42.   following pages.
  43.  
  44.   This version of The Aurora Editor is NOT public domain or free
  45.   software, but is distributed as "shareware" for evaluation purposes
  46.   only. Please refer to the license information in the following pages.
  47.  
  48.   The Aurora Editor is a trademark of Aurora Terra, Inc.
  49.   The Aurora Editor/386 is a trademark of Aurora Terra, Inc.
  50.   The Aurora Macro Language is a trademark of Aurora Terra, Inc.
  51.  
  52.   Other product names found throughout this document are trademarks of
  53.   various companies.
  54.                                                             License   ii
  55.  
  56.  
  57.   Copyright and Proprietary Rights
  58.   ────────────────────────────────
  59.  
  60.   The Aurora Editor software is owned by Aurora Terra, Inc. and is
  61.   protected by United States copyright laws and international treaty
  62.   provisions. The Aurora Editor software contains valuable trade secrets
  63.   proprietary to Aurora Terra, Inc. You may not disassemble, decompile,
  64.   reverse engineer, or create any derivative works of the software for
  65.   any purpose other than making an adaptation to the software as a
  66.   normal step in configuring it for your own personal use.
  67.  
  68.  
  69.   License and Restrictions
  70.   ────────────────────────
  71.  
  72.   Aurora Terra grants individuals a limited license to use the shareware
  73.   version of The Aurora Editor for an evaluation period of up to 30 days
  74.   in order to determine if it suits their needs. Any other use of The
  75.   Aurora Editor, or use past the 30 day trial period requires the
  76.   individual to purchase a license from Aurora Terra.
  77.  
  78.   The Aurora Editor is not "public domain" or "free" software. If you
  79.   use it beyond the 30-day trial you MUST purchase a license.
  80.  
  81.   All users are granted a limited license to copy the shareware version
  82.   of The Aurora Editor for the sole purpose of allowing others to try
  83.   it, subject to the above as well as the following restrictions:
  84.  
  85.   - The Aurora Editor must be distributed in absolutely unmodified form
  86.     in its entirety, including all file names, program code,
  87.     documentation, and any related files. No other programs or files may
  88.     be included. The files may be distributed in a compressed or library
  89.     format.
  90.  
  91.   - The Aurora Editor may not be included in combination with any other
  92.     software or hardware product as an enticement or for any other
  93.     reason, without special permission from Aurora Terra.
  94.  
  95.   - No fee or payment may be charged or accepted for The Aurora Editor.
  96.  
  97.  
  98.   Electronic bulletin board system operators (sysops) are encouraged
  99.   post the shareware version of The Aurora Editor on their BBS for
  100.   downloading by their users, but only if the above conditions are met
  101.   and no special fee is charged to access The Aurora Editor files (a
  102.   general fee may be charged to access the BBS).
  103.  
  104.   Special restrictions apply to Disk Vendors and Retailers. For further
  105.   details, see VENDOR.DOC.
  106.                                                           Warranty   iii
  107.  
  108.  
  109.   Non-profit User Groups may distribute the shareware version of The
  110.   Aurora Editor provided the above conditions are met. These User Groups
  111.   may charge a nominal fee to cover the cost of the disk and copying of
  112.   the software.
  113.  
  114.  
  115.   Warranty Disclaimer
  116.   ───────────────────
  117.  
  118.   Aurora Terra makes no warranty of any kind, either express or implied,
  119.   including but not limited to implied warranties of merchantability and
  120.   fitness for a particular purpose, with respect to this software and
  121.   accompanying documentation.
  122.  
  123.   IN NO EVENT SHALL AURORA TERRA BE LIABLE FOR ANY DAMAGES RESULTING
  124.   FROM THE USE OF THIS SOFTWARE, INCLUDING BUT NOT LIMITED TO, DAMAGES
  125.   FOR LOSS OF BUSINESS PROFITS, BUSINESS INTERRUPTION, LOSS OF BUSINESS
  126.   INFORMATION, INCIDENTAL OR CONSEQUENTIAL DAMAGES, OR OTHER FINANCIAL
  127.   LOSS ARISING OUT OF THE USE OF OR INABILITY TO USE THIS PROGRAM, EVEN
  128.   IF AURORA TERRA HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
  129.  
  130.  
  131.   I-1  Ordering Information
  132.   ─────────────────────────
  133.  
  134.   Purchasing a license for (or registering) The Aurora Editor, allows
  135.   you to use the product beyond the 30-day trial period. With your
  136.   registration, you will receive the complete licensed version of The
  137.   Aurora Editor with all the latest enhancements.
  138.  
  139.   Registration also entitles you to free lifetime technical support,
  140.   free and discounted upgrades, and priority notification of new updates
  141.   and releases.
  142.  
  143.   Registration costs just $44.95 plus $2 shipping ($4 overseas). For a
  144.   printed bound manual, add $10.00 plus $2 extra shipping ($5 overseas).
  145.   Maryland residents add 5% sales tax. Please register now, and help us
  146.   continue to make high quality software available to you at a low cost.
  147.  
  148.   Discounts are available for BBS sysops, educational institutions,
  149.   full-time students, US government agencies, and approved user groups.
  150.   We also offer quantity discounts and site (multi-user) licensing.
  151.   Please call or write for more information.
  152.                                                            Ordering   iv
  153.  
  154.  
  155.   For Checks, Money Orders, or Corporate Purchase Orders:
  156.  
  157.     Please Send Check, Money Order, or Corporate Purchase Order to:
  158.     Aurora Terra, P.O. Box 34275, Bethesda, MD. 20827-0275. Checks must
  159.     be drawn on a US bank and payable in US dollars.
  160.  
  161.  
  162.   For Credit Card Orders only:
  163.  
  164.     You can order The Aurora Editor with VISA, MasterCard, AMEX, or
  165.     Discover from Public (software) Library by calling (800)-2424-PsL or
  166.     (713)-524-6394, or by FAX to (713)-524-6398, or Compuserve Email to
  167.     71355,470. Please specify item #10917. You can also mail credit card
  168.     orders to PsL at P.O. Box 35705, Houston, TX 77235-5705 USA.
  169.  
  170.  
  171.   For questions about registration, product details, technical support,
  172.   discounts, or other inquiries, call Aurora Terra at (301)-468-2255, or
  173.   write to: Aurora Terra, P.O. Box 34275, Bethesda, MD. 20827-0275, or
  174.   Compuserve Email to: 71702,1025 (internet:71702.1025@compuserve.com).
  175.  
  176.  
  177.   You can use the following convenient order form if you wish:
  178.                                                           Order Form   v
  179.  
  180.   +----------------------------------------------------------------------+
  181.   |                                                                      |
  182.   | Aurora Terra, please send me:                          Item  #10917  |
  183.   |                                                                      |
  184.   |                                                                      |
  185.   | The Aurora Editor v1.11 ........................... $44.95  $______  |
  186.   |                                                                      |
  187.   | Printed Bound Manual ................................. $10  $______  |
  188.   |                                                                      |
  189.   | Shipping (US/Canada/Mexico) ......... $2  (with manual $4)           |
  190.   |          (Overseas) ................. $4  (with manual $9)  $______  |
  191.   |                                                                      |
  192.   |                                                 Subtotal 1  $______  |
  193.   |                                                                      |
  194.   |                                                x  Quantity   ______  |
  195.   |                                                                      |
  196.   |                                                 Subtotal 2  $______  |
  197.   |                                                                      |
  198.   | Maryland residents please add 5% Sales Tax ...............  $______  |
  199.   |                                                                      |
  200.   | Disk Type:  ( ) 5.25"   ( ) 3.5"                     TOTAL  $______  |
  201.   |                                                                      |
  202.   +----------------------------------------------------------------------+
  203.   |                                                                      |
  204.   | Name: _____________________________________________________________  |
  205.   |                                                                      |
  206.   | Company (if company address): _____________________________________  |
  207.   |                                                                      |
  208.   | Address: __________________________________________________________  |
  209.   |                                                                      |
  210.   |          __________________________________________________________  |
  211.   |                                                                      |
  212.   |          __________________________________________________________  |
  213.   |                                                                      |
  214.   | Phone (day): __________________   Phone (Evening): ________________  |
  215.   |                                                                      |
  216.   |                                                                      |
  217.   | Payment by:  ( ) Check/Money Order  ( ) PO#_______________ (attach)  |
  218.   |              ( ) VISA  ( ) MC  ( ) AMEX  ( ) DISCOVER                |
  219.   |                                                                      |
  220.   +----------------------------------------------------------------------+
  221.   |                                                                      |
  222.   | For Credit Card FAX or EMail Orders only:                            |
  223.   |                                                                      |
  224.   |   Card #______________________________________ Exp. Date:__________  |
  225.   |                                                                      |
  226.   |   Cardholder name:_________________________________________________  |
  227.   |                                                                      |
  228.   |   Signature:_______________________________________________________  |
  229.   |                                                                      |
  230.   |                                                                      |
  231.   | Prices are subject to change without notice. Call to confirm.        |
  232.   |                                                                      |
  233.   +----------------------------------------------------------------------+
  234.                                                                          
  235.  
  236.                                                   Table of Contents   vi
  237.  
  238.  
  239.   Table of Contents
  240.   ─────────────────
  241.  
  242.   I-1. Ordering Information..........................................iii
  243.   I-2. Acknowledgements.............................................viii
  244.   I-3. Introduction...................................................ix
  245.   I-4. Features........................................................x
  246.   I-5. Hardware and Software Requirements.............................xi
  247.   I-6. Installation..................................................xii
  248.   I-7. The Documentation............................................xiii
  249.  
  250.   1-1. Getting Started.................................................1
  251.  
  252.   2-1. Windows.........................................................2
  253.   2-2. Learning to use the Windows.....................................3
  254.   2-3. Panning the Screen..............................................6
  255.   2-4. Window Styles...................................................6
  256.   2-4. Window Styles...................................................6
  257.   2-5. Video Modes.....................................................7
  258.   2-6. Prompts.........................................................7
  259.  
  260.   3-1. Using the Menus................................................10
  261.  
  262.   4-1. The Status Line................................................12
  263.  
  264.   5-1. Creating and Loading Files.....................................13
  265.   5-2. Saving and Discarding Files....................................15
  266.   5-3. Other File Commands............................................18
  267.  
  268.   6-1. Finding Your Way Around........................................20
  269.   6-2. Scrolling......................................................25
  270.   6-3. Modifying Text.................................................26
  271.   6-4. Undo and Redo..................................................31
  272.  
  273.   7-1. OS Commands....................................................32
  274.  
  275.   8-1. Using Marked Blocks............................................34
  276.  
  277.   9-1. The Clipboard..................................................40
  278.  
  279.   10-1. Folding Text..................................................42
  280.  
  281.   11-1. Search and Replace............................................44
  282.  
  283.   12-1. Printing......................................................50
  284.  
  285.   13-1. Window Settings...............................................52
  286.   13-2. Global Settings...............................................55
  287.                                                  Table of Contents   vii
  288.  
  289.  
  290.   14-1. Key Macros....................................................59
  291.  
  292.   15-1. Other Commands................................................61
  293.   15-2. Miscellaneous Library Functions...............................62
  294.  
  295.   16-1. The File Manager..............................................66
  296.   16-2. Creating a File Manager Window................................67
  297.   16-3. Changing the Directory Listing in a File Manager Window.......68
  298.   16-4. File Manager Commands.........................................68
  299.   16-5. Marking Files in the File Manager.............................71
  300.   16-6. File Manager Sorting..........................................73
  301.  
  302.   17-1. Configuration.................................................73
  303.   17-2. Configuration - Video.........................................73
  304.   17-3. Configuration - Mouse.........................................74
  305.   17-4. Configuration - Word Processing...............................75
  306.   17-5. Configuration - Default File Extensions.......................76
  307.   17-6. Configuration - Open Options..................................77
  308.   17-7. Configuration - Save Options..................................79
  309.   17-8. Configuration - Editing Preferences...........................79
  310.   17-9. Configuration - Window Preferences............................86
  311.   17-10. Configuration - Print Settings...............................87
  312.   17-11. Configuration - Desktop Options..............................90
  313.   17-12. Configuration - Memory Options...............................91
  314.   17-13. Configuration - Other Options................................92
  315.   17-14. Configuration - Character Sets...............................92
  316.   17-15. Configuration - Confirmations................................93
  317.   17-16. Configuration - Colors.......................................93
  318.   17-17. Configuration - Borders......................................94
  319.  
  320.   18-1. Redefining the Keyboard.......................................96
  321.   18-2. Key Function Names............................................97
  322.   18-3. Defining Compound Keys........................................99
  323.   18-4. Mouse Function Names.........................................100
  324.   18-5. Defining Menus...............................................100
  325.   18-6. The Tool Bar.................................................102
  326.  
  327.   A-1. Command Line Options..........................................105
  328.  
  329.   B-2. Performance Tips..............................................106
  330.  
  331.                                                  Acknowledgements   viii
  332.  
  333.  
  334.   I-2  Acknowledgements
  335.   ─────────────────────
  336.  
  337.   The Aurora Editor has taken several years and thousands of hours to
  338.   develop. Many have contributed to this effort, but two people deserve
  339.   special thanks:
  340.  
  341.   Stu Russell, for his endless patience and words of encouragement over
  342.   the years.
  343.  
  344.   Guy Rouillier, for his valuable support, suggestions, and advice.
  345.  
  346.                                                        Introduction   ix
  347.  
  348.  
  349.   I-3  Introduction
  350.   ─────────────────
  351.  
  352.   The Aurora Editor is a powerful and beautiful general-purpose text
  353.   editor for IBMPC and compatible computers. Although The Aurora Editor
  354.   is primarily oriented toward editing text files, program source, and
  355.   binary files, it can also be easily used for Word Processing and File
  356.   Management tasks. The unregistered version of The Aurora Editor is
  357.   fully functional.
  358.  
  359.   Many people who use computers spend a large portion of their time in a
  360.   text editor. A text editor should be an attractive and fun place to
  361.   be. It should be fast, flexible, and intuitive, with the power to
  362.   provide almost any editing function needed. Limits should seldom be a
  363.   concern. It should "feel good" to be there. The Aurora Editor was
  364.   designed with all these goals in mind.
  365.  
  366.   The Aurora Editor is programmed in it's own macro language - "The
  367.   Aurora Macro Language". The Aurora Macro Language is an object
  368.   oriented, event-driven language that is very simple in syntax, yet
  369.   powerful in function. Both the macro language compiler and interpreter
  370.   are available as functions within the macro language itself. The
  371.   Aurora Macro Language can provide great flexibility in configuring the
  372.   editor to suit your needs.
  373.  
  374.   In its current form, The Aurora Editor is a very powerful and
  375.   sophisticated product. But it doesn't end there. The Aurora Editor is
  376.   an ongoing project and will continue to be enhanced in many important
  377.   and exciting new ways. Registering now ensures that you will receive
  378.   discounts and priority access to any new version or update, even if
  379.   later versions are no longer shareware.
  380.  
  381.  
  382.   I-4  Features
  383.   ─────────────
  384.  
  385.   These are just some of the outstanding features of The Aurora Editor:
  386.  
  387.   - High Performance! The screen, windows, file loading and saving, and
  388.     searching are all very fast.
  389.  
  390.   - Superb text mode windowing! Fast, beautiful, and seamless. Combines
  391.     the usability of graphical user interfaces with the speed of text
  392.     mode. Many different window styles. Edit any number of files. Edit
  393.     the same file in multiple windows, or different files in the same
  394.     window. Includes a 64k x 64k Virtual Screen!
  395.  
  396.   - Edits multiple files of virtually any size. A very fast, huge ONE
  397.     GIGABYTE paged virtual memory will satisfy even the most power
  398.     hungry user. Automatically uses XMS and EMS memory for even faster
  399.     editing of large files.
  400.                                                             Features   x
  401.  
  402.  
  403.   - A built-in sophisticated object-oriented macro language, "The Aurora
  404.     Macro Language", allows unparalleled flexibility in extending and
  405.     configuring the editor to your own preferences.
  406.  
  407.   - "The Aurora Editor/386", an even faster (and smaller) 386 version of
  408.     The Aurora Editor, is provided for users with 386 or greater
  409.     processors.
  410.  
  411.   - Full mouse support for moving and resizing windows, working with
  412.     menus and dialog boxes, scrolling, marking text, etc.
  413.  
  414.   - Includes an integrated multi-instance programmable File Manager. You
  415.     can perform most file management tasks without ever leaving the
  416.     editor.
  417.  
  418.   - Unlimited multi-level Undo/Redo of almost all editing operations.
  419.  
  420.   - Nested Text Folding, a rare and useful feature.
  421.  
  422.   - Maximum line length of 16000.
  423.  
  424.   - Supports binary viewing and editing using any line length up to
  425.     16000.
  426.  
  427.   - Supports any 1 or 2 character line delimiters (CR, CRLF, LF, and
  428.     more).
  429.  
  430.   - Executes DOS commands and programs from within the editor. The
  431.     editor shrinks down to only 1.2K.
  432.  
  433.   - User-definable menus, tool bar, keyboard, window appearances, and
  434.     editing preferences.
  435.  
  436.   - Tailored prompts. Includes Dialog boxes for first-time users, and
  437.     single-line command prompts for experienced users.
  438.  
  439.   - Grep-type file scan
  440.  
  441.   - Unlimited Bookmarks
  442.  
  443.   - Compiler support for Microsoft C, Borland C, and Turbo Pascal. Jump
  444.     instantly to compiler errors in your source code.
  445.  
  446.   - Prompt History
  447.  
  448.   - Automatically remembers previous windows positions, cursor positions,
  449.     and desktop on exit. A real time saver.
  450.  
  451.   - A full set of Block commands
  452.  
  453.   - Unlimited number of Clipboards
  454.                                                        Requirements   xi
  455.  
  456.  
  457.   - Formatted Printing with Headers, Footers, Page Numbers and Line
  458.     Numbers.
  459.  
  460.   - Online Help
  461.  
  462.   - Keyboard Macros
  463.  
  464.   - Word wrap, AutoIndent, and Paragraph Text Reflow
  465.  
  466.   - Multiple default file extensions
  467.  
  468.   - Many other features: multiple video modes, line-drawing, ascii
  469.     chart, and much more!
  470.  
  471.  
  472.   I-5  Hardware and Software Requirements
  473.   ───────────────────────────────────────
  474.  
  475.   To use The Aurora Editor you will need an IBMPC or compatible computer
  476.   with at least the following:
  477.  
  478.     - 512 kilobytes of memory
  479.     - at least 600 kilobytes of hard disk space
  480.     - a diskette drive
  481.     - A color or monochrome monitor
  482.     - DOS 3.1 or greater
  483.     - The Aurora Editor v1.11
  484.  
  485.   A 286 or above processor is recommended.
  486.  
  487.  
  488.  
  489.   I-6  Installation
  490.   ─────────────────
  491.  
  492.   Before using or installing The Aurora Editor, it is very important
  493.   that you take a moment to backup all of the distributed files. If you
  494.   do not backup, there will be no way to restore the original
  495.   configuration files if you modify them.
  496.  
  497.   To install The Aurora Editor, just copy the files from the
  498.   distribution diskette(s) to the drive and directory of your choice,
  499.   and uncompress them if they are compressed. Add this directory to your
  500.   DOS 'PATH' for easier access to The Aurora Editor.
  501.  
  502.                                                       Installation   xii
  503.  
  504.  
  505.   The following files are distributed with The Aurora Editor:
  506.  
  507.     Executable Files:
  508.       A.EXE     - The Aurora Editor (Macro Language Interpreter/Compiler)
  509.       A3.EXE    - The Aurora Editor/386 (Macro Language Interpreter/Compiler)
  510.       A.X       - compiled macro code for The Aurora Editor
  511.  
  512.     Macro Source and Libraries:
  513.       A.A       - the main macro source file for The Aurora Editor
  514.       ACFG.A    - configuration settings (included by A.A)
  515.       AKBD.A    - keyboard and mouse definitions (included by A.A)
  516.       AMEN.A    - menu definitions (included by A.A)
  517.       ALIB.X    - compiled macro library code (included by A.A)
  518.  
  519.     Documentation:
  520.       A.DOC     - The Aurora Editor Users Guide (this document)
  521.       AML.DOC   - The Aurora Macro Language Guide
  522.       AREF.DOC  - The Aurora Editor Quick Reference
  523.       READ.ME   - New features and other information
  524.  
  525.  
  526.   I-7  The Documentation
  527.   ──────────────────────
  528.  
  529.   This is "The Aurora Editor Users Guide". It provides basic information
  530.   on how to install, configure, and use The Aurora Editor. For complete
  531.   documentation on The Aurora Macro Language, see "The Aurora Macro
  532.   Language Guide" (AML.DOC).
  533.  
  534.   If you are viewing this document with The Aurora Editor, you can use
  535.   the "Help" pull-down menu <F1> to jump quickly to any topic in the
  536.   document. You can print this document using the DOS "print" command.
  537.  
  538.   The Aurora Editor is a highly configurable editor. Please note that
  539.   most key and mouse definitions, menu definitions, and configuration
  540.   settings used in this documentation are installation defaults. You can
  541.   customize most of these definitions and settings to according to your
  542.   own preferences.
  543.  
  544.   The File ALIB.X contains many compiled editor commands written in The
  545.   Aurora Macro Language. These editor commands are referred to as
  546.   "library functions", and can be used in the Keyboard Definitions file
  547.   AKBD.A, the Menu Definitions file AMEN.A, and the Macro Command
  548.   prompt. All library functions are generally available for use within
  549.   The Aurora Macro Language. This documentation explains each of these
  550.   library functions as "editor commands".
  551.                                                     Documentation   xiii
  552.  
  553.  
  554.   Editor commands are generally listed in the following format
  555.   throughout the User's Guide:
  556.  
  557.     - command  "Menu Description"  <key definition>
  558.  
  559.   For example, the command to display the "open" prompt is listed as:
  560.  
  561.     - askopen  "Open.."  <Alt-E>
  562.  
  563.   In some cases, command parameters may be included as part of the
  564.   command. Some commands do not have default key assignments at
  565.   installation time. For these commands, the "<key definition>" is
  566.   omitted. Also, some commands are not (by default) on the menus. For
  567.   these commands the "Menu Description" is omitted.
  568.  
  569.   Note that only "library" functions (editor commands) are documented
  570.   here in The Aurora Editor User's Guide. Library functions are built up
  571.   from lower-level macros and native functions in the Aurora Macro
  572.   Language and are usually all that is required for most editing tasks.
  573.   For documentation on macro language native functions, see "The Aurora
  574.   Macro Language Guide".
  575.                                                      Getting Started   1
  576.  
  577.  
  578.   1-1  Getting Started
  579.   ────────────────────
  580.  
  581.   To start The Aurora Editor, just type "A" at the DOS command prompt.
  582.   If you have computer with a 386 or greater processor, you can start
  583.   The Aurora Editor/386 by typing "A3" at the DOS command prompt.
  584.  
  585.     Note: If you prefer to start The Aurora Editor or The Aurora
  586.     Editor/386 by other names, you can rename the files A.EXE and A3.EXE
  587.     to whatever you wish (such as "E.EXE"). Make sure you keep the
  588.     ".EXE" extension. Do not rename any other files distributed with The
  589.     Aurora Editor. All distributed files must be in the same directory.
  590.  
  591.   If this is the first time you are using The Aurora Editor, a File
  592.   Manager window will be displayed showing all files in the current
  593.   directory. To edit a file, just use the cursor keys to position the
  594.   highlighted bar over a file and then press <Enter>. An Edit window
  595.   will be displayed showing the contents of the file.
  596.  
  597.   You can bypass the File Manager by entering a filename after the "A"
  598.   or "A3" command at the DOS prompt. For example:
  599.  
  600.     C>a newfile.txt
  601.  
  602.   When the Edit window is displayed, you are ready to begin editing. You
  603.   can now use the cursor movement keys, the <PgUp>, <PgDn>, <Home>, and
  604.   <End> keys, and the mouse (if available) to move through the text. You
  605.   can press <Esc> to activate the pull-down menu system and explore the
  606.   features of The Aurora Editor.
  607.  
  608.   If you need on-line help at any time, just press <F1> to display the
  609.   "Help" pull-down menu.
  610.  
  611.  
  612.   Exiting The Aurora Editor
  613.   ─────────────────────────
  614.  
  615.   To exit The Aurora Editor, keep pressing <Alt-Q> to close each window
  616.   you have opened. You can also close each window by clicking the left
  617.   mouse button on the "close" icon (≡) in the upper left corner of the
  618.   window, or by selecting "Close" from the "File" pull-down menu. If you
  619.   have not saved any changes, you will be prompted to save them.
  620.  
  621.   A quicker way to exit is to press <Alt-X>, or select "Close All" from
  622.   the File pull-down menu. This will automatically close all windows.
  623.   Again, you may be prompted to save any changes.
  624.                                                              Windows   2
  625.  
  626.  
  627.   2-1  Windows
  628.   ────────────
  629.  
  630.   The Aurora Editor provides a beautiful, intuitive windowing
  631.   environment that works well for both first-time and experienced users.
  632.   Windows are used to edit files, operate the File Manager, and display
  633.   prompts and dialog boxes. All windowing functions can be operated by
  634.   using the menus, the mouse, or user-defined function keys.
  635.  
  636.   A window in The Aurora Editor looks and behaves much like an
  637.   application window in Microsoft Windows, which allows for quick and
  638.   easy operation by most first-time users. When you become more familiar
  639.   with The Aurora Editor, you can even configure the window layout to
  640.   your own preferences (see "Window Styles" 2-4). Each window has a
  641.   "client area" (the main display area), and optional title bars, menus,
  642.   tool bars, scroll bars, and borders. The following is a sample Edit
  643.   window:
  644.  
  645.  
  646.     Close Icon       North Title Bar        Status Line      Tool Bar ─┐
  647.        │                   │                   │                       │
  648.        │    North Title    │      Menu Bar     │ Min/Max/Restore Icons │
  649.        │        │          │        │          │            │          │
  650.     ▒▒▒│▒▒░░░░░░│░░░░░░░░░░│░░░░░░░░│░░░░░░░░░░│░░░░░░░░░░░░│▒▒▒▒▒     │
  651.     ▒▒ ≡ C:\DOC\NEWDOC.TXT ┴  * [20]│ C 12  L 153  of 321  └  ▒▒     │
  652.     ▒▒ File  Window  Block  Search  Fold  Edit  Clip  Print  Set▒▒     │
  653.     ░░ <≡>  <?>  <*>  </>  <->  <|>  <o>  <s>  <F>  <f>  <r> ──────────┘
  654.     ░░                                                         ░░
  655.     ░░ This is the Edit window client area                     ▒───┐
  656.     ░░                                                         ■░░ │
  657.     ░░                                                         ▒░░ │
  658.     ░░                                                         ░░ │
  659.     ▒▒▒▒▒■▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ │
  660.     ▒▒                           ┬          │   ┌─ Aurora v1.11 ▒▒ │
  661.     ▒▒▒▒▒▒░░░░░░░░░░░░░░░░░░░░░░░│░░░░░░░░░░│░░░│░░░░░░░░░░░▒▒▒▒▒▒ │
  662.       │             │            │          │   │                  │
  663.     Corner          │     South Title Bar   │  South Title         │
  664.                     │                       │                      │
  665.                   Border              Horz Scroll Bar    Vert Scroll Bar
  666.  
  667.  
  668.   For Edit windows, the file you are editing is displayed in the client
  669.   area. File Manager windows are similar in appearance to Edit windows,
  670.   but the client area displays a listing of files and directories (see
  671.   "The File Manager" 16-1).
  672.  
  673.   The Aurora Editor will allow any number of overlapping Edit windows
  674.   and File Manager windows to be arranged on top of each other in a
  675.   "messy desk" style on your screen.
  676.                                                               Windows  3
  677.  
  678.  
  679.   2-2  Learning to use the Windows
  680.   ────────────────────────────────
  681.  
  682.   Editor windows are easy to control with the mouse or the keyboard. You
  683.   can also execute most window commands from the "Window" pull-down on
  684.   the menu bar. The following are some important window commands:
  685.  
  686.   - to "activate" a window with the mouse:
  687.  
  688.     Using the mouse, you can click the left mouse button on any visible
  689.     portion of a window to bring the window to the top and make it the
  690.     current or "active" window.
  691.  
  692.   - wlis  "List.."  <Alt-W>
  693.  
  694.     This command displays a menu which lists all the Edit and File
  695.     Manager windows in your current session. To bring one of the
  696.     displayed windows to the top and make it the current window, use the
  697.     cursor keys to position the highlighted bar over the window name and
  698.     press <Enter>. You can also select the window from the list using
  699.     the left mouse button.
  700.  
  701.     Note: the window list can also be displayed by double-clicking the
  702.     left mouse button on the screen background.
  703.  
  704.   - quit %p  "Close"  <Alt-Q>
  705.  
  706.     This command closes the current window and removes it from the
  707.     screen. If you are closing an Edit window and you have made changes
  708.     which have not been saved, The Aurora Editor will prompt you to save
  709.     them. You can also close a window by clicking the left mouse button
  710.     on the "close" icon (≡) in the upper left corner of the window.
  711.  
  712.     If there is another window underneath the window you just closed,
  713.     that window will become the "current" window, otherwise you will
  714.     exit the editor.
  715.  
  716.   - wnex  "Next"  <Ctrl-A>
  717.  
  718.     This command cycles through the windows in a forward direction. The
  719.     bottom-most window is placed on top of the current window and
  720.     becomes the current window.
  721.  
  722.   - wpre  "Prev"
  723.  
  724.     This command cycles through the windows in a reverse direction. The
  725.     window underneath the current window becomes the current window, and
  726.     the current window is moved underneath all other windows on the
  727.     screen.
  728.                                                              Windows   4
  729.  
  730.  
  731.   Several commands can be used to move and resize windows:
  732.  
  733.   - to move or resize a window with the mouse:
  734.  
  735.     To move the window, position the mouse over the window's north or
  736.     south title bar and press the left mouse button. Then drag the
  737.     window to the new location and release the left mouse button.
  738.  
  739.     To resize the window, position the mouse over one of the window
  740.     borders or corners and press the left mouse button. Then drag the
  741.     border or corner to the new location and release the left mouse
  742.     button.
  743.  
  744.   - wkey  "Move/Size"  <Ctrl-F5>
  745.  
  746.     This command allows you to move and resize the current window using
  747.     the cursor keys. When this command is entered, the editor is placed
  748.     in "move/resize" mode, and the border of the current window is
  749.     highlighted to indicate that it is being moved or resized.
  750.  
  751.     To move the window, just press the cursor keys until the window has
  752.     moved to the desired position, and then press <Enter> or <Esc> to
  753.     stop.
  754.  
  755.     To resize the window, press the cursor keys while the <Shift> key is
  756.     pressed down. You can resize the left and bottom borders of the
  757.     window. Press <Enter> or <Esc> to stop.
  758.  
  759.   - wmax  "Maximize"  <Ctrl-Z>
  760.  
  761.     This command "maximizes" or resizes the current window to make it
  762.     fill the entire screen so that the borders are not visible. You can
  763.     also maximize a window with the mouse by clicking the left mouse
  764.     button on the "maximize" icon () in the upper right corner of the
  765.     window, or by double clicking on the north or south title bar.
  766.  
  767.   - wmin  "Minimize"
  768.  
  769.     This command "minimizes" or resizes the current window so that only
  770.     the title bar displaying the file or directory name is visible.
  771.     Using the mouse, you can minimize a window by clicking the left
  772.     mouse button on the "minimize" icon () in the upper right corner of
  773.     the window.
  774.                                                              Windows   5
  775.  
  776.  
  777.   - wres  "Restore"
  778.  
  779.     This command restores the size of a previously minimized or
  780.     maximized window. Using the mouse, you can restore the window by
  781.     clicking the left mouse button on the "restore" icon () in the
  782.     upper right corner of the window, or by double clicking on the north
  783.     or south title bar.
  784.  
  785.  
  786.   Several commands are available for arranging windows on the screen.
  787.   These commands operate on all non-minimized windows in the current
  788.   edit session.
  789.  
  790.   - wcasc  "Cascade"  <Shift-F5>
  791.  
  792.     This command will cascade all the windows on the screen.
  793.  
  794.   - wtileh  "Tile Horz"  <Shift-F4>
  795.  
  796.     This command will horizontally tile all the windows on the screen.
  797.     The "TileNum" configuration setting affects the way windows are
  798.     tiled (see "Configuration - Window Preferences" 17-9).
  799.  
  800.   - wtilev  "Tile Vert"  <Shift-F3>
  801.  
  802.     This command will vertically tile all the windows on the screen. The
  803.     "TileNum" configuration setting affects the way windows are tiled
  804.     (see "Configuration - Window Preferences" 17-9).
  805.  
  806.   There are three commands that allow you to edit the same file in more
  807.   than one window. These commands work only in Edit windows:
  808.  
  809.   - wcopy  "Copy"  <Ctrl-C>
  810.  
  811.     This command copies the current Edit window and cascades it with the
  812.     original. The new window will edit the same file in memory as the
  813.     original window, and have the same size and cursor position.
  814.  
  815.   - wspl %h  "Split Horz"  <Alt-H>
  816.  
  817.     This command splits the current Edit window horizontally. The new
  818.     window will edit the same file in memory as the original window.
  819.  
  820.   - wspl %v  "Split Vert"  <Alt-V>
  821.  
  822.     This command splits the current Edit window vertically. The new
  823.     window will edit the same file in memory as the original window.
  824.  
  825.   - wquit %p  <Ctrl-K-Q>
  826.  
  827.     This command closes the current window. If the window is an Edit
  828.     window and the "OneWindow" configuration setting is OFF, this
  829.     command also closes the file in the window (see "Configuration -
  830.     Editing Preferences" 17-8).
  831.                                                              Panning   6
  832.  
  833.  
  834.   2-3  Panning the Screen
  835.   ───────────────────────
  836.  
  837.   The physical screen that you see when you use The Aurora Editor is
  838.   only a small window into the "virtual" screen actually used by the
  839.   editor, in the same way that an Edit window can be a small window into
  840.   a much larger file. To The Aurora Editor, the actual screen size is
  841.   64k x 64k characters!
  842.  
  843.   When the editor is initially loaded, the physical screen is located at
  844.   column 16000 and row 16000 of the virtual screen. You can adjust this
  845.   mapping of the physical screen to the virtual screen by using the
  846.   video "panning" commands:
  847.  
  848.   - to "pan" using the mouse:
  849.  
  850.     To pan the screen, position the mouse over the screen background and
  851.     press the left mouse button. Then just drag the entire screen to the
  852.     new location and release the left mouse button.
  853.  
  854.   - wkey %p  "Pan"  <Ctrl-F6>
  855.  
  856.     This command places the editor in "pan" mode, and allows you to pan
  857.     through the virtual screen using the cursor keys, When you have
  858.     panned to desired location, press <Enter> or <Esc> to stop.
  859.  
  860.  
  861.   2-4  Window Styles
  862.   ──────────────────
  863.  
  864.   You can easily configure the appearance of Edit windows and File
  865.   Manager windows to suit your own preferences (see the configuration
  866.   settings for "Window Preferences" 17-9). You can control whether or
  867.   not windows will have permanent Menu Bars, Tool Bars, Scroll Bars, and
  868.   Title Bars. You can also configure the location of the window Title,
  869.   Status Line, and Control Icons.
  870.  
  871.   The following command on the "Windows" pulldown menu can be used to
  872.   change Edit window styles within an edit session:
  873.  
  874.   - winsty  "Style Toggle"  <Ctrl-F7>
  875.  
  876.     This command toggles through about 13 "common" Edit window styles.
  877.     When this command is entered, the styles of all open Edit windows
  878.     are changed immediately. You can use the "setsav" command to save
  879.     the current Edit window style ("Save Current Settings" on the "Set"
  880.     pull-down menu).
  881.  
  882.     Note: this command only changes the style of Edit windows, not File
  883.     Manager windows.
  884.                                                          Video Modes   7
  885.  
  886.  
  887.   2-5  Video Modes
  888.   ────────────────
  889.  
  890.   The video mode used by The Aurora Editor can be changed during an
  891.   editing session from the "Set" pulldown menu under the "Video Mode"
  892.   submenu. You can choose from the following video modes:
  893.  
  894.     - 80 cols x 14 rows  (vga only)
  895.     - 80 cols x 21 rows  (vga only)
  896.     - 80 cols x 25 rows
  897.     - 80 cols x 28 rows  (vga only)
  898.     - 80 cols x 43 rows  (ega & vga only)
  899.     - 80 cols x 50 rows  (vga only)
  900.  
  901.     - 40 cols x 25 rows
  902.  
  903.  
  904.   You can also use the following commands to change the video mode:
  905.  
  906.   - vfont %t  "Video Toggle"  <Ctrl-F1>
  907.  
  908.     This command toggles back and forth between the 80 x 25 video mode
  909.     and the 80 x 50 video mode.
  910.  
  911.   - vfont  [columns]  [rows]
  912.  
  913.     This command sets the number of columns and rows displayed on the
  914.     video screen. Acceptable values for [columns] are 40 and 80.
  915.     Acceptable values for rows are: 12, 14, 21, 25, 28, 43, and 50.
  916.  
  917.  
  918.   Using the "VidCols" and "VidRows" configuration settings, you can set
  919.   the default video mode to use when the editor is initially loaded (see
  920.   "Configuration - Video" 17-2).
  921.  
  922.   Note: The Aurora Editor will also work in other "special" video modes
  923.   supported by your video card (such as 132 x 43). To use these modes,
  924.   You must set "VidCols" and "VidRows" to zero, and then set the video
  925.   mode before starting the editor (see the documentation for your video
  926.   card). A special mouse driver may also be required to use the mouse
  927.   properly in some of these modes.
  928.  
  929.  
  930.   2-6  Prompts
  931.   ────────────
  932.  
  933.   A Prompt is a special type of window through which you can enter
  934.   information requested by The Aurora Editor. Individual prompts can be
  935.                                                              Prompts   8
  936.  
  937.  
  938.   tailored by the user to appear as dialog boxes, one-line boxes, or
  939.   command line prompts. By default, all prompts are tailored to appear
  940.   as one-line boxes at installation. More experienced users may prefer
  941.   to tailor some or all editor prompts as command lines for their small
  942.   size, and less experienced users may prefer dialog boxes (see the
  943.   "Prompts" configuration setting in "Configuration - Editing
  944.   Preferences" 17-8).
  945.  
  946.   The follow section describes the available prompt types:
  947.  
  948.  
  949.   Dialog boxes:
  950.  
  951.     If a prompt window is tailored to appear as a dialog box, the window
  952.     client area may contain edit fields, buttons, and check boxes. You
  953.     can use the mouse or the <Tab> and <Shift-Tab> keys to move back and
  954.     forth between the edit fields, buttons, and check boxes. Like Edit
  955.     windows and File Manager windows, dialog boxes can be moved anywhere
  956.     on the screen by using the mouse or keyboard.
  957.  
  958.   One-line boxes:
  959.  
  960.     If the prompt window is tailored to appear as a one-line box, it
  961.     will occupy 3 lines on the screen (2 border lines and 1 command
  962.     line), and will appear immediately above or below the current cursor
  963.     position. You can use the mouse or the keyboard to move the one-line
  964.     box anywhere on the screen. Pressing <Esc> or clicking the left
  965.     mouse button on the prompt description will close the one-line box.
  966.  
  967.   Command lines:
  968.  
  969.     If the prompt window is tailored to appear as a command line, it
  970.     will occupy only one line on the screen. It will be displayed
  971.     immediately below (or above) the title bar displaying the file or
  972.     directory name. The entire area within the window will be visible.
  973.     Pressing <Esc> or clicking the left mouse button on the prompt
  974.     description will close the command line prompt.
  975.  
  976.  
  977.   The following command on the Edit window "Window" pull-down menu can
  978.   be used to globally change the prompt type from within the editor:
  979.  
  980.   - wppt  "Prompt Toggle"
  981.  
  982.     This command toggles the prompt type (for all prompts) between
  983.     Dialog boxes, One-line boxes, and Command lines. The change is
  984.     effective immediately. Note that this command changes all prompts.
  985.     To tailor individual prompts, see the "Prompts" configuration
  986.     setting ("Configuration - Editing Preferences" 17-8).
  987.                                                              Prompts   9
  988.  
  989.  
  990.   Prompt history is available in some prompts. The following commands
  991.   can be used to retrieve prompt history in any type of prompt:
  992.  
  993.   - wrtv %p  <cursorup>
  994.  
  995.     This command retrieves the previous item in the prompt history.
  996.  
  997.   - wrtv %n  <cursordown>
  998.  
  999.     This command retrieves the next item in the prompt history.
  1000.  
  1001.  
  1002.   You can also retrieve prompt history by clicking the left and right
  1003.   mouse buttons on the history tab () at the far right of the prompt.
  1004.  
  1005.   If the "SaveHis" configuration setting is ON, the prompt history for
  1006.   all prompts is saved in the file A.HIS when you exit the editor and
  1007.   restored when you re-enter (see "Configuration - Desktop Options"
  1008.   17-11).
  1009.  
  1010.   Prompt history is available in following prompts:
  1011.  
  1012.     - File prompts (Open, Open and Insert, Open Binary, Rename, Save As,
  1013.         Block Save, Load Key Macros, Save Key Macros, Run Macro, Include
  1014.         Macro, Compile Macro)
  1015.  
  1016.     - Search Prompts (Find, Replace, Scan, Place Bookmark, Go to
  1017.         Bookmark)
  1018.  
  1019.     - OS Command and Capture prompts
  1020.  
  1021.     - Macro Command prompt
  1022.                                                     Using the Menus   10
  1023.  
  1024.  
  1025.   3-1  Using the Menus
  1026.   ────────────────────
  1027.  
  1028.   Both Edit windows and File Manager windows have an easy-to-use menu
  1029.   bar with "pull-down" menus. The pull-down menus allow easy access to
  1030.   many of The Aurora Editor's commands, and also show the key
  1031.   definitions for most editor commands. They can be especially helpful when
  1032.   exploring or learning to use the editor.
  1033.  
  1034.   This diagram illustrates the menu bar and a pull-down menu:
  1035.  
  1036.   ┌────────────────────────────────────────────────────────────────────────┐
  1037.   │ File  Window  Block  Search  Fold  Edit  Clip  Print  Set  Macro  Help │
  1038.   └────────────────┬──┼───────────────────────────┬────────────────────────┤
  1039.                    │  │                           │ Print           Ctrl-P │
  1040.        Menu Bar ───┘  │      Pull Down Menu ──────┤ Print Block      Alt-P │
  1041.        Menu Bar Item ─┘      Menu Item ───────────┼─Print Formfeed         │
  1042.                                                   │ Print Settings..       │
  1043.                                                   └────────────────────────┘
  1044.  
  1045.  
  1046.   The following commands allow you to access the menu bar and pull-down
  1047.   menus:
  1048.  
  1049.   - using the mouse:
  1050.  
  1051.     Click the left mouse button on a menu bar item to display it's
  1052.     pull-down menu. If you have configured the menu bar to be invisible
  1053.     (see the "EditStyle" and "FmgrStyle" configuration variables 17-9),
  1054.     you can click the right mouse button in the window client area to
  1055.     make the menu bar visible and display the most recently used
  1056.     pull-down menu.
  1057.  
  1058.     Once the pull-down menu is displayed, click the left mouse button on
  1059.     the desired menu item to remove the pull-down menu and execute the
  1060.     editor command for that item.
  1061.  
  1062.   - menb  <Esc>, <F10>
  1063.  
  1064.     This command highlights the most recently selected menu bar item.
  1065.     You can then use the cursor left and right keys to change the
  1066.     highlighted item. Once you are on the menu bar, you can display any
  1067.     pull-down menu by typing in the menu bar item's highlighted
  1068.     character. When the desired menu bar item is highlighted, press
  1069.     <Enter> to display the pull-down menu. Pressing <Esc> will exit the
  1070.     menu bar.
  1071.  
  1072.                                                     Using the Menus   11
  1073.  
  1074.  
  1075.   - men  <Alt-F10>
  1076.  
  1077.     This command displays the most recently used pull-down menu. You can
  1078.     then use the cursor left and right keys to display the previous and
  1079.     next pull-down menu on the menu bar. Use the cursor up and down keys
  1080.     to move the highlight bar on the pull-down menu to the desired menu
  1081.     command and press <Enter> to execute it. You can also execute the
  1082.     menu command by typing in the highlighted character of the menu
  1083.     item, or by entering the function key (if any) associated with the
  1084.     menu item. Pressing <Esc> from the pull-down menu will return you to
  1085.     the menu bar.
  1086.  
  1087.     Four additional keys can be used within pull-down menus:
  1088.  
  1089.     - <Home> and <PgUp> move the cursor to the first menu item.
  1090.     - <End> and <PgDn> move the cursor to the last menu item.
  1091.  
  1092.   - men2  <Alt-T>, (and <Tab> on File Manager windows)
  1093.  
  1094.     This command highlights the first tool bar control on the Edit
  1095.     window tool bar (if present) or the first drive on the File Manager
  1096.     window drive menu bar. After this command is entered, you can use
  1097.     the <Tab>, <Shift-Tab>, <cursorleft>, and <cursorright> keys to move
  1098.     to other tool bar controls or drives. Pressing the <Enter> key will
  1099.     execute the tool bar control (or display the drive contents).
  1100.     Pressing <Esc> will remove the highlight and return the focus back
  1101.     to the Edit window or File Manager window.
  1102.  
  1103.   - menh  <F1>
  1104.  
  1105.     This command displays the help menu.
  1106.  
  1107.  
  1108.   If you wish, you can customize the whole menu system according to your
  1109.   own preferences by changing existing pull-downs, adding new pull-
  1110.   downs, etc (see "Defining the Menus" 18-5). You can also customize the
  1111.   tool bar to execute your most often-used commands (see "The Tool Bar"
  1112.   18-6).
  1113.  
  1114.   You can configure The Aurora Editor so that the menu bar is normally
  1115.   invisible and only displayed when the "menb" <Esc>,<F10> or "men"
  1116.   <Alt-F10> commands are entered, or when the right mouse button is
  1117.   pressed in the window client area. This will free up an extra line in
  1118.   the window for editing while still allowing you to use the menu system
  1119.   (see the "EditStyle" and "FmgrStyle" configuration settings 17-9).
  1120.  
  1121.   When you become more experienced with The Aurora Editor, you may
  1122.   prefer to use function keys to execute commands instead of selecting
  1123.   them from the menus. If you define your own functions keys, you will
  1124.   probably also want to change the menu pull-down definitions to show
  1125.   the new key assignments (see "Defining the Menus" 18-5).
  1126.                                                     The Status Line   12
  1127.  
  1128.  
  1129.   4-1  The Edit Window Status Line
  1130.   ────────────────────────────────
  1131.  
  1132.   By default, the Edit window status line is displayed in the north
  1133.   title bar at the upper right corner of the Edit window. Note that the
  1134.   location of the status line can be configured to be on the north or
  1135.   south title bar and can be right justified, left justified, or
  1136.   centered within the title bar (see the "EditStatus" configuration
  1137.   setting 17-9).
  1138.  
  1139.   The status line displays information about the file in an Edit window.
  1140.   The following is a sample status line:
  1141.  
  1142.   ┌──────────────────────────────────────┐
  1143.   │ SVWAMBDIR* [20]  C 12  L 153  of 321 │
  1144.   └─┬┬┬┬┬┬┬┬┬┬──┬──────┬──────┬───────┬──┘
  1145.     ││││││││││  │      │      │       │
  1146.     ││││││││││  │      │      │       └─>  total lines in the file
  1147.     ││││││││││  │      │      └───────>  line number of the cursor
  1148.     ││││││││││  │      └────────────>  column number of the cursor
  1149.     ││││││││││  └─────────────────>  hex value of the char at the cursor
  1150.     │││││││││└──────────────────>  '*' indicates file is modified
  1151.     ││││││││└─────────────────>  'R' indicates Record Mode is ON
  1152.     │││││││└────────────────>  'I' indicates Insert Mode is ON
  1153.     ││││││└───────────────>  'D' indicates Line Draw is ON
  1154.     │││││└──────────────>  'B' indicates Backup is ON
  1155.     ││││└─────────────>  'M' indicates Match Character is ON
  1156.     │││└────────────>  'A' indicates AutoIndent is ON
  1157.     ││└───────────>  'W' indicates Word Wrap is ON
  1158.     │└──────────>  'V' indicates Variable Tabs is ON
  1159.     └─────────>  'S' indicates Smart Tabs is ON
  1160.  
  1161.  
  1162.   (For more information on Record Mode, Insert Mode, DrawMode, Backup,
  1163.   Match Character, AutoIndent, WordWrap, Variable Tabs, and Smart Tabs,
  1164.   see "Window Settings" 13-1).
  1165.                                          Creating and Loading Files   13
  1166.  
  1167.  
  1168.   5-1  Creating and Loading Files
  1169.   ───────────────────────────────
  1170.  
  1171.   The Aurora Editor can simultaneously edit almost any number of files,
  1172.   each of virtually any size (the virtual memory size of The Aurora
  1173.   Editor is 1 gigabyte). Each file can be displayed and edited in one or
  1174.   more windows.
  1175.  
  1176.   There are several commands to edit new or existing files:
  1177.  
  1178.   - from the command line:
  1179.  
  1180.     After entering "A" or "A3" on the DOS command line, enter any number
  1181.     of new or existing files. For example:
  1182.  
  1183.       C>a  myfile.c new.doc *.h  <Enter>
  1184.  
  1185.     For each file specified, an Edit window will be created. If the file
  1186.     exists, it will be loaded into the Edit window. If the specified
  1187.     name contains wildcards (* or ?), or specifies a drive or directory,
  1188.     then a File Manager window will be created which lists all files and
  1189.     directories that match the file specification.
  1190.  
  1191.   - from a File Manager window:
  1192.  
  1193.     You can select files to edit from the directory listing in a File
  1194.     Manager window. The File Manager also has other commands which allow
  1195.     you manipulate files on disk (see "The File Manager" 16-1).
  1196.  
  1197.   - newf  "New"  <Ctrl-N>
  1198.  
  1199.     This command creates a new Edit window with the filename "NEW.TXT".
  1200.     The new Edit window will contain one blank line.
  1201.  
  1202.   - askopen  "Open.."  <Alt-E>
  1203.  
  1204.     This command prompts you for a filename to open. You may enter a new
  1205.     or existing filename to create an Edit window for the filename, or
  1206.     you may enter a directory name or a wildcard specification to create
  1207.     a File Manager Window. If you press <Enter> at the prompt without
  1208.     entering anything, a File Manager window will be created for the
  1209.     current directory.
  1210.  
  1211.     You can specify "open options" after the filename or directory name
  1212.     by entering a "/" character and any of the following options:
  1213.                                          Creating and Loading Files   14
  1214.  
  1215.  
  1216.       i - include the file or directory listing after the cursor in the
  1217.           current window
  1218.       b - load the file in "binary" mode (see the "askopenb" command
  1219.           below). This option is ignored when entering a directory or
  1220.           wildcard specification.
  1221.       z - maximize the new window
  1222.       n - minimize the new window
  1223.       c - new windows are the same size as the topmost window and are
  1224.           cascaded to bottom and left of the topmost window.
  1225.       e - load the file into the current edit window without discarding
  1226.           the existing file in the edit window. This option is added
  1227.           automatically if the "OneWindow" configuration setting is ON
  1228.           (see "Configuration - Editing Preferences" 17-8).
  1229.       l - enter a line number after the "l" option to position the
  1230.           cursor at the specified line number
  1231.  
  1232.     For example, entering "c:\doc\test.dat/zb" at the "askopen" prompt
  1233.     will the open the file "c:\doc\test.dat" in binary mode and display
  1234.     it in a maximized window. Entering "c:\doc\test.dat/l689" opens
  1235.     "c:\doc\test.dat" and places the cursor on line 689.
  1236.  
  1237.     Note that prompt history is available at this prompt (see "Prompts"
  1238.     2-6).
  1239.  
  1240.   - askopenb  "Open Binary.."
  1241.  
  1242.     This command works like askopen, except that if a file is specified,
  1243.     it is opened in "binary" mode. When a file is opened in binary mode,
  1244.     no characters in the file are interpreted as end-of-line delimiters.
  1245.     The entire file is loaded "as is" into an Edit window. The length of
  1246.     each line is the same (except for the last line), and is determined
  1247.     by the "BinaryLength" configuration setting (see "Configuration -
  1248.     Open Options" 17-6).
  1249.  
  1250.     "Open options" can be specified in this prompt (see "askopen"
  1251.     above).
  1252.  
  1253.     Prompt history is available at this prompt (see "Prompts" 2-6).
  1254.  
  1255.   - openlast  "Open Last"  <Alt-Z>
  1256.  
  1257.     This command re-opens the last Edit window or File Manager window
  1258.     that you closed.
  1259.  
  1260.   - open  [filename or directory]  [open options]
  1261.  
  1262.     This command opens the filename or directory with the
  1263.     specified open options (see the "askopen" command above for a description
  1264.     of open options). No Prompts are displayed. For example:
  1265.  
  1266.       open "c:\config.sys" %bc.
  1267.  
  1268.     The command above loads the file "c:\config.sys" in binary mode in a
  1269.     cascaded window.
  1270.                                          Creating and Loading Files   15
  1271.  
  1272.  
  1273.   - opena  [filename]
  1274.  
  1275.     This command opens the specified configuration file for The Aurora
  1276.     Editor (ACFG.A, AKBD.A, AMEN.A) without prompting. There is no need
  1277.     to specify a path or extension. For example:
  1278.  
  1279.       opena "akbd".
  1280.  
  1281.     The command above loads The Aurora Editor keyboard definition file.
  1282.  
  1283.  
  1284.   You can press the <Ctrl-Break> key to interrupt any of the above open
  1285.   commands in progress.
  1286.  
  1287.   Note that any files not loaded in binary mode will use the value of
  1288.   the "LineDlm" configuration setting as the line delimiter string. The
  1289.   default LineDlm setting is "0D0Ah" (carriage return and linefeed).
  1290.  
  1291.   If the "SaveWin" configuration setting is ON and the file you are
  1292.   opening was previously closed, The Aurora Editor will automatically
  1293.   restore the window size, position, settings, and cursor position
  1294.   exactly as they were before you closed the window (see "Configuration
  1295.   - Desktop Options" 17-11).
  1296.  
  1297.  
  1298.   5-2  Saving and Discarding Files
  1299.   ────────────────────────────────
  1300.  
  1301.   Several commands are available for discarding files and saving files
  1302.   to disk:
  1303.  
  1304.   - save  "Save"  <F3>
  1305.  
  1306.     This command saves the file in the current Edit window to disk. If
  1307.     the file was loaded or created as a "binary" file, it will be saved
  1308.     "as is" with no line delimiter characters, otherwise each line will
  1309.     be appended with the value of the "LineDlm" configuration setting
  1310.     (see "Configuration - Open Options" 17-6).
  1311.  
  1312.     If the "Backup" setting is ON, any existing files with the same name
  1313.     on disk will be backed-up (see "Window Settings" 13-1).
  1314.  
  1315.   - asksaveas  "Save As.."
  1316.  
  1317.     This command prompts you for a filename, and then saves the file in
  1318.     the current Edit window under that filename (just like the "save"
  1319.     command above).
  1320.  
  1321.     Prompt history is available at this prompt (see "Prompts" 2-6).
  1322.                                         Saving and Discarding Files   16
  1323.  
  1324.  
  1325.   - save  [filename]
  1326.  
  1327.     This command saves the file in the current Edit window under the
  1328.     specified filename, without prompting.
  1329.  
  1330.   - quit %p
  1331.  
  1332.     This command closes the current window and removes it from the
  1333.     screen. The file displayed in the window is also closed. If changes
  1334.     were made without saving, you will be prompted to save them.
  1335.  
  1336.     If the "SaveWin" configuration setting is ON, The Aurora Editor will
  1337.     save the window size, position, settings, and cursor position. When
  1338.     the file is edited again, the editor will automatically restore the
  1339.     window size, position, settings, and cursor position exactly as they
  1340.     were before you closed the window.
  1341.  
  1342.   - gquit %p  "Close All"  <Alt-X>
  1343.  
  1344.     This command closes all windows and files in the current edit
  1345.     session and exits the editor. If changes were made to any file
  1346.     without saving, you will be prompted to save them.
  1347.  
  1348.     If the "SaveHis" configuration setting is ON and the "BootOpt"
  1349.     configuration setting is "d" (desktop), The Aurora Editor will save
  1350.     the window size, position, settings, and cursor position for the
  1351.     windows in current edit session (i.e. the "desktop"). If you then
  1352.     re-enter the editor without specifying a filename after the "A" or
  1353.     "A3" command at the DOS prompt, the desktop will automatically be
  1354.     restored, with all windows present as they were when you left the
  1355.     editor.
  1356.  
  1357.   - quit %f
  1358.  
  1359.     This command saves the file in the current Edit window (like the
  1360.     "save" command above), and then closes the file and the window.
  1361.  
  1362.   - gquit %f  "Save and Close All"
  1363.  
  1364.     This command saves the files in all open Edit windows and exits the
  1365.     editor.
  1366.  
  1367.  
  1368.   The effects of the following commands depend on the value of the
  1369.   "OneWindow" configuration setting (see "Configuration - Editing
  1370.   Preferences 17-8).
  1371.  
  1372.   - wquit %p  <Ctrl-K-Q>
  1373.  
  1374.     If the configuration setting "OneWindow" is OFF, this command closes
  1375.     both the current window and the file displayed in the window
  1376.     (identical to the "quit %p" command above).
  1377.  
  1378.     If "OneWindow" is ON, this command closes the current window without
  1379.     closing the file displayed in the window.
  1380.                                         Saving and Discarding Files   17
  1381.  
  1382.  
  1383.   - fquit %p  "Close"  <Alt-Q>
  1384.  
  1385.     If the configuration setting "OneWindow" is OFF, this command closes
  1386.     both the current window and the file displayed in the window
  1387.     (identical to the "quit %p" command above).
  1388.  
  1389.     If "OneWindow" is ON, this command closes the file in an Edit window
  1390.     without closing the Edit window. The previous open file is displayed
  1391.     in the Edit window.
  1392.  
  1393.   - fquit %f  "Save and Close"  <Ctrl-X>
  1394.  
  1395.     If the configuration setting "OneWindow" is OFF, this command saves
  1396.     the file in the current Edit window, and then closes the file and
  1397.     the window (identical to the "quit %f" command above).
  1398.  
  1399.     If "OneWindow" is ON, this command saves and closes the file in an
  1400.     Edit window without closing the Edit window. The previous open file
  1401.     is displayed in the Edit window.
  1402.  
  1403.  
  1404.   The following commands allow you edit more than one file per window:
  1405.  
  1406.   - fnex "Next"  <Ctrl-Del>
  1407.  
  1408.     This command cycles through all open files in a forward direction
  1409.     and displays them in the current Edit window.
  1410.  
  1411.   - fpre "Prev"  <Ctrl-Ins>
  1412.  
  1413.     This command cycles through all open files in a reverse direction
  1414.     and displays them in the current Edit window.
  1415.  
  1416.   - flis "List.."  <Alt-Hyphen>
  1417.  
  1418.     This command displays a menu which lists all the open files in your
  1419.     current edit session. To select a file for editing, use the cursor
  1420.     keys to position the highlighted bar over the window name and press
  1421.     <Enter>. You can also select a file from the list using the left
  1422.     mouse button.
  1423.  
  1424.     If you select a file from the list, the selected file replaces the
  1425.     existing file in the Edit window (without closing the existing
  1426.     file).
  1427.                                                 Other File Commands   18
  1428.  
  1429.  
  1430.   5-3  Other File Commands
  1431.   ────────────────────────
  1432.  
  1433.   Other useful "File" commands are also available:
  1434.  
  1435.  
  1436.   - askopenins  "Open and Insert.."  <Alt-I>
  1437.  
  1438.     This command prompts you for a filename, and then inserts the file
  1439.     after the cursor in the current Edit window. You can also specify a
  1440.     directory name or a name with wildcards (*, ?) to insert a directory
  1441.     listing after the cursor.
  1442.  
  1443.     "Open options" can be specified in this prompt (see the "askopen"
  1444.     command 5-1).
  1445.  
  1446.     Prompt history is available at this prompt (see "Prompts" 2-6).
  1447.  
  1448.   - wrdlod CSetB  <Ctrl-]>
  1449.  
  1450.     This command opens the filename at the cursor. "CSetB" is the
  1451.     character set used to define a filename for this command (see
  1452.     "Configuration - Character Sets" 17-14).
  1453.  
  1454.   - refresh
  1455.  
  1456.     This command refreshes the contents of the current window from disk.
  1457.  
  1458.   - askname  "Rename"  <Alt-N>
  1459.  
  1460.     This command prompts you for a filename, and then changes the name
  1461.     of the current Edit window to the filename you entered. Note that
  1462.     this command only renames the Edit window, not the file on disk (the
  1463.     File Manager can rename a file or directory on disk, see "The File
  1464.     Manager" 16-1).
  1465.  
  1466.     Prompt history is available at this prompt (see "Prompts" 2-6).
  1467.  
  1468.   - name  [filename]
  1469.  
  1470.     This command changes the name of the current Edit window to the
  1471.     specified filename, without prompting you for the filename.
  1472.  
  1473.   - fmgr  "File Manager.."  <F4>
  1474.  
  1475.     This command displays a File Manager window for the current
  1476.     directory.
  1477.  
  1478.   - about  "About.."
  1479.  
  1480.     This command displays a dialog box showing the current version
  1481.     number of The Aurora Editor, and the current date and time.
  1482.                                                 Other File Commands   19
  1483.  
  1484.  
  1485.   - hlp  [major]  [minor]
  1486.  
  1487.     This command displays The Aurora Editor User's Guide (this
  1488.     document), and positions the cursor at the section "[major] -
  1489.     [minor]". For example, "hlp 5 3" displays help on this section
  1490.     (see "Other File Commands").
  1491.  
  1492.   - qref  <Shift-F1>
  1493.  
  1494.     This command displays The Aurora Editor Quick Reference (AREF.DOC)
  1495.                                             Finding Your Way Around   20
  1496.  
  1497.  
  1498.   6-1  Finding Your Way Around
  1499.   ────────────────────────────
  1500.  
  1501.   Simple commands allow you to move the cursor in both Edit windows and
  1502.   File Manager windows:
  1503.  
  1504.   - left   <cursorleft>
  1505.   - right  <cursorright>
  1506.   - up     <cursorup>
  1507.   - down   <cursordown>
  1508.  
  1509.     Use the cursor commands (left, right, up, down) to move the cursor
  1510.     one line or one column at a time. If you attempt to move the cursor
  1511.     outside the window, the window will automatically scroll to display
  1512.     the new line or column.
  1513.  
  1514.     You can also move the cursor by clicking the left mouse button at
  1515.     new cursor location.
  1516.  
  1517.   - cptop  <Ctrl-Home>
  1518.  
  1519.     This command moves the cursor to the line at the top of the window
  1520.     without scrolling or changing the cursor column.
  1521.  
  1522.   - cpbot  <Ctrl-End>
  1523.  
  1524.     This command moves the cursor to the line at the bottom of the window
  1525.     without scrolling or changing the cursor column.
  1526.  
  1527.   - cgoto @ 1  <Ctrl-PgUp>
  1528.  
  1529.     This command moves the cursor to line 1 of the file or directory
  1530.     listing without changing the column (scrolling if necessary).
  1531.  
  1532.   - cgoto @ (qtexend)  <Ctrl-PgDn>
  1533.  
  1534.     This command moves the cursor to the last line of the file or
  1535.     directory listing without changing the column (scrolling if
  1536.     necessary).
  1537.                                             Finding Your Way Around   21
  1538.  
  1539.  
  1540.   - cgoto  [x]  [y]  [options]
  1541.  
  1542.     This command moves the cursor to the location specified by [x], [y]
  1543.     in the current window. The following [options] many be specified:
  1544.  
  1545.       a - [x] and [y] specify absolute column and line positions
  1546.       r - [x] and [y] are relative to the current cursor position
  1547.  
  1548.     If no [options] are specified, the default is "a".
  1549.  
  1550.   - clast  <Ctrl-Hyphen>
  1551.  
  1552.     This command moves the cursor to the previous cursor position,
  1553.     scrolling if necessary. This command can be useful for moving back
  1554.     and forth over large distances in an Edit window or File Manager
  1555.     window.
  1556.  
  1557.   - ladj @ -1  <Keypad-5>
  1558.  
  1559.     This command scrolls the text up or down so that the cursor is
  1560.     placed at the center of the window, without moving the cursor from
  1561.     the current line.
  1562.  
  1563.   - ladj @  1              <Ctrl-F9>
  1564.   - ladj @ (qwinp @ %y1d)  <Ctrl-F10>
  1565.  
  1566.     These commands scroll the text so that the cursor is placed at the
  1567.     top or bottom line of the window, without moving the cursor from the
  1568.     current line.
  1569.  
  1570.  
  1571.  
  1572.   The following commands move the cursor only in Edit windows:
  1573.  
  1574.   - chome  <Home>
  1575.  
  1576.     This command moves the cursor to column one of the current line.
  1577.  
  1578.   - ceol  <End>
  1579.  
  1580.     This command moves the cursor one column after the last non-blank
  1581.     character of the current line.
  1582.  
  1583.   - cwrd %r CSet  <Ctrl-Left>
  1584.   - cwrd  @ CSet  <Ctrl-Right>
  1585.  
  1586.     These commands move the cursor to the first character of the
  1587.     previous or next word. The configuration setting "CSet" is the
  1588.     character set used to define a word for these commands (see
  1589.     "Configuration - Character Sets" 17-14).
  1590.                                             Finding Your Way Around   22
  1591.  
  1592.  
  1593.   - askbset  "Place Bookmark.."
  1594.  
  1595.     This command allows you to place a location marker or "bookmark" at
  1596.     the cursor position in the current Edit window. You can return to
  1597.     the bookmark later using the "askbget" or "bget" commands (see
  1598.     below). Bookmarks are automatically destroyed when the Edit window
  1599.     (and all of it's copies) containing the bookmark are closed.
  1600.  
  1601.     This command will prompt you to enter the name of the bookmark. Note
  1602.     that bookmark names are global to all windows. The current cursor
  1603.     position, window size and placement, and cursor insert mode are
  1604.     saved with the bookmark. They are restored when you return to the
  1605.     bookmark using the "askbget" or "bget" commands.
  1606.  
  1607.     Prompt history is available at this prompt (see "Prompts" 2-6).
  1608.  
  1609.   - bset  "Quick Bookmark"  <Ctrl-2>
  1610.  
  1611.     This command places a bookmark in the same way as the "askbset"
  1612.     command above, except that you will not prompted to enter a bookmark
  1613.     name. A bookmark name with the prefix "BOOK" is automatically
  1614.     generated by the editor.
  1615.  
  1616.   - bset  [bookmark name]
  1617.  
  1618.     This command will place a bookmark at the cursor position using the
  1619.     specified bookmark name, without prompting.
  1620.  
  1621.   - askbget  "Go to Bookmark.."
  1622.  
  1623.     This command prompts you to enter the name of a "bookmark" you have
  1624.     previously placed using the "askbset" or "bset" commands. The cursor
  1625.     will be moved to the "bookmark" cursor position, and the Edit window
  1626.     will be sized and placed as it was when the "askbset" or "bset"
  1627.     command was entered. If the bookmark is located in another Edit
  1628.     window, that window will become the current window before returning
  1629.     to the bookmark.
  1630.  
  1631.     Prompt history is available at this prompt (see "Prompts" 2-6).
  1632.  
  1633.   - bget  "Prev Bookmark"  <Ctrl-6>
  1634.  
  1635.     This command goes to the previous bookmark without prompting.
  1636.     Entering this command repeatedly will cycle through all existing
  1637.     bookmarks in all windows.
  1638.  
  1639.   - bget  [bookmark name]
  1640.  
  1641.     This command will go to the specified bookmark, without prompting.
  1642.                                             Finding Your Way Around   23
  1643.  
  1644.  
  1645.   - askglin  "Go to Line.."  <Ctrl-J>
  1646.  
  1647.     This command will prompt you for a line number, and then move the
  1648.     cursor directly to the line you specified, scrolling if necessary.
  1649.     The column position of the cursor is not changed.
  1650.  
  1651.   - glin  [line number]
  1652.  
  1653.     This command will move the cursor to the specified line number,
  1654.     without prompting.
  1655.  
  1656.   - askgcol  "Go to Column.."
  1657.  
  1658.     This command will prompt you for a column number, and then move the
  1659.     cursor directly to the column you specified, scrolling if necessary.
  1660.     The cursor line is not changed.
  1661.  
  1662.   - gcol  [column number]
  1663.  
  1664.     This command will move the cursor to the specified column number,
  1665.     without prompting.
  1666.  
  1667.   - mloc @ %t  "Go to Block Start"  <Ctrl-B>
  1668.   - mloc @ %b  "Go to Block End"
  1669.  
  1670.     These commands move the cursor to the top or bottom of the current
  1671.     marked block. If the marked block is in another Edit window, that
  1672.     window will be made the "current" window before executing these
  1673.     commands.
  1674.  
  1675.   - cfld     "Go to Next Fold"  <Alt-7>
  1676.   - cfld %r  "Go to Prev Fold"
  1677.  
  1678.     These commands move the cursor to the next or previous "top-level"
  1679.     text fold in the current Edit window (see "Folding Text" 10-1).
  1680.  
  1681.   - ctab     <Tab>
  1682.   - ctab %l  <Shift-Tab>
  1683.  
  1684.     These commands move the cursor to the next or previous tab stop. The
  1685.     tab stop can be one of 3 types, depending on which Window Settings
  1686.     are currently set ON, and the current cursor position (see "Window
  1687.     Settings" 13-1):
  1688.                                             Finding Your Way Around   24
  1689.  
  1690.  
  1691.     - Interval Tabs
  1692.  
  1693.       Interval Tabs are the default when the "Variable Tabs" and "Smart
  1694.       Tabs" settings are turned OFF. The location of the tab stops are
  1695.       defined by the "TabWidth" configuration setting. For example,
  1696.       setting TabWidth to 8 will set tab stops at every 8th column
  1697.       position (1, 9, 17, 25, etc).
  1698.  
  1699.     - Variable Tabs
  1700.  
  1701.       Variable Tabs are used when the "Variable Tabs" setting is ON and
  1702.       the "Smart Tabs" setting is OFF. If Variable Tabs are set ON, the
  1703.       cursor will move to the next preset tab position you have
  1704.       specified in the "Tabs" configuration setting (see "Configuration
  1705.       - Word Processing" 17-4).
  1706.  
  1707.     - Smart Tabs
  1708.  
  1709.       If the "SmartTabs" configuration setting is set ON, the cursor is
  1710.       moved to the beginning of the next or previous word on the first
  1711.       non-blank line before the current line. This can be useful for
  1712.       aligning data with columns on the previous line.
  1713.  
  1714.  
  1715.   - finm  "Find Matching Char"  <Alt-F3>
  1716.  
  1717.     This command moves the cursor to the matching parenthesis (), brace
  1718.     {}, square bracket [], or angled bracket <> for the character at the
  1719.     cursor. If the character at the cursor is not one of these
  1720.     characters, then the cursor is moved to the next parenthesis, brace,
  1721.     or bracket, if one exists.
  1722.  
  1723.     This command can be very useful for balancing expressions in
  1724.     programming languages.
  1725.  
  1726.   - finc  "Go to Compiler Error"  <Alt-F7>
  1727.  
  1728.     This command can be used together with the "askoscap" <Alt-F8>
  1729.     command ("OS Capture.." on the "Macro" pulldown menu) to aid in
  1730.     running external compilers and locating compiler errors from within
  1731.     The Aurora Editor.
  1732.  
  1733.     Use the "askoscap" <Alt-F8> command ("OS Capture" on the "Macro"
  1734.     pull-down menu) to enter the command you use to compile or build
  1735.     your program. The "askoscap" command will run your compiler and
  1736.     return the compiler output in an Edit window.
  1737.                                             Finding Your Way Around   25
  1738.  
  1739.  
  1740.     You can then use the "finc" <Alt-F7> command to locate compiler
  1741.     errors. Just move cursor to the line containing the error
  1742.     description in the compiler output, and enter the "finc" <Alt-F7>
  1743.     command. The editor will automatically open the source file
  1744.     containing the error, and place the cursor on the line where the
  1745.     compiler error occurred.
  1746.  
  1747.     Note: the only Microsoft C, Borland C, and Turbo Pascal compilers
  1748.     are currently supported.
  1749.  
  1750.  
  1751.   6-2  Scrolling
  1752.   ──────────────
  1753.  
  1754.   The following commands can be used to scroll through both Edit windows
  1755.   and File Manager windows:
  1756.  
  1757.   - using the mouse:
  1758.  
  1759.     Use the vertical scroll bar for scrolling up or down, and the
  1760.     horizontal scroll bar for scrolling left or right. To scroll by one
  1761.     page, click the left mouse button on the portion of the scroll bar
  1762.     between the scroll bar thumb and the scroll bar arrows. To scroll by
  1763.     one line or column, click the left mouse button on the scroll bar
  1764.     arrows.
  1765.  
  1766.     Scrolling will repeat until you release the left mouse button (see
  1767.     the "MouHold" and "MouDelay" configuration settings 17-3). You can
  1768.     also scroll by pressing the left mouse button on the scroll bar
  1769.     thumb, dragging it to the desired position, and then releasing the
  1770.     left mouse button.
  1771.  
  1772.   - scry (- (ypagsiz))  <PgUp>
  1773.   - scry (ypagsiz)      <PgDn>
  1774.  
  1775.     These commands scroll the current window up or down by one page
  1776.     minus one line.
  1777.  
  1778.   - scry (- (/ (ypagsiz) 2))
  1779.   - scry (/ (ypagsiz) 2)
  1780.  
  1781.     These commands scroll the current window up or down by one-half
  1782.     page.
  1783.  
  1784.   - scry -1  <Ctrl-Up>
  1785.   - scry  1  <Ctrl-Down>
  1786.  
  1787.     These commands scroll the current window up or down by one line.
  1788.                                                           Scrolling   26
  1789.  
  1790.   - scrx (- (xpagsiz))  <F7>
  1791.   - scrx (xpagsiz))     <F8>
  1792.  
  1793.     These commands scroll the current window left or right by one page
  1794.     minus one column.
  1795.  
  1796.  
  1797.   6-3  Modifying Text
  1798.   ───────────────────
  1799.  
  1800.   The Aurora Editor provides many easy-to-use commands for modifying the
  1801.   text in an Edit window:
  1802.  
  1803.   - cmtog  <Ins>
  1804.  
  1805.     This command toggles the "insert mode" for the current Edit window.
  1806.     The insert mode is local to each Edit window. If the insert mode is
  1807.     ON, any characters entered will be inserted into the current line at
  1808.     the cursor. If insert mode is OFF, any characters entered will
  1809.     replace existing characters at cursor.
  1810.  
  1811.     Note that the insert mode can affect the operation of other
  1812.     commands, depending on the current configuration settings. See the
  1813.     section "Configuration - Editing Preferences" (17-8) and the
  1814.     configuration settings "EnterIns", "EnterOvl", "TabShift", and
  1815.     "BakOvl".
  1816.  
  1817.   - delch  <Del>
  1818.  
  1819.     This command will delete the character at the cursor. The characters
  1820.     to the right of the cursor will be shifted left by one column.
  1821.  
  1822.     If the configuration setting "DelJoin" is ON and the cursor is
  1823.     beyond the end of the line, the next line will be joined to the
  1824.     current line at the cursor.
  1825.  
  1826.   - baksp  <Backspace>
  1827.  
  1828.     This command moves the cursor left one column and deletes the
  1829.     character at the new cursor position. The characters to the right of
  1830.     the cursor are shifted left by one column.
  1831.  
  1832.     If the configuration setting "BakOvl" is set ON and the insert mode
  1833.     for the current window is OFF, the characters to the right of the
  1834.     cursor position will not be shifted.
  1835.  
  1836.     If the configuration setting "BakJoin" is set ON and the cursor is
  1837.     at column 1, then the current line will be joined to the end the
  1838.     previous line when executing this command.
  1839.                                                      Modifying Text   27
  1840.  
  1841.  
  1842.   - leol %l  <Alt-F6>
  1843.   - leol     "Erase to End"  <F6>
  1844.  
  1845.     These commands delete the characters from the current cursor
  1846.     position to the beginning or to the end of the line.
  1847.  
  1848.   - wrddel CSet  "Delete Right Word"  <Ctrl-T>
  1849.  
  1850.     This command deletes all characters from the cursor to the end of
  1851.     the word at the cursor. The configuration setting "CSet" is the
  1852.     character set used to define a word for this command (see
  1853.     "Configuration - Character Sets" 17-14).
  1854.  
  1855.     If the configuration setting "DelJoin" is ON and the cursor is at
  1856.     the end of the line, the next line will be joined to the current
  1857.     line at the cursor.
  1858.  
  1859.   - wrdcas  [options]  [char set].
  1860.  
  1861.     This command changes the case of the word at the cursor. The
  1862.     following [options] may be specified:
  1863.  
  1864.       l - change the word to lower case
  1865.       u - change the word to upper case
  1866.  
  1867.     Specifying both options "l" and "u" will toggle the case of each
  1868.     character in the word. If no [options] are specified, the default is
  1869.     "u".
  1870.  
  1871.     [char set] specifies the character set used to define a word for
  1872.     this command (see "Configuration - Character Sets" 17-14). If not
  1873.     specified, the default is "CSet".
  1874.  
  1875.   - lins %a  "Insert Line"  <Ctrl-Enter>
  1876.  
  1877.     This command inserts a new line after the line at the cursor.
  1878.  
  1879.     If "AutoIndent" is ON, the cursor is moved to the first non-blank
  1880.     column of the previous line. If the previous line is blank, then the
  1881.     cursor is moved to the first non-blank column of the next line. If
  1882.     the next line is also blank, the cursor column does not change.
  1883.  
  1884.     If the "AutoIndent" is OFF, the cursor is moved to column one.
  1885.  
  1886.   - lins %c
  1887.  
  1888.     This command is similar to the "lins %a" command above, except that
  1889.     the cursor column position is not changed.
  1890.                                                      Modifying Text   28
  1891.  
  1892.  
  1893.   - ldel  "Delete Line"  <Ctrl-Backspace>
  1894.  
  1895.     This command deletes the line at the cursor. The text below the
  1896.     cursor is shifted up by one line.
  1897.  
  1898.     Note: entering the "mdel" <Alt-D> command will also delete the line
  1899.     at the cursor if no marked block currently exists and the "DelLine"
  1900.     configuration setting is ON (see "Using Marked Blocks" 8-1).
  1901.  
  1902.   - lspl  "Split Line"  <Alt-S>
  1903.  
  1904.     This command splits the line at the cursor. The text from the cursor
  1905.     to the end of the line will be moved to a new line inserted after
  1906.     the cursor. If "AutoIndent" is ON, the beginning of the new line
  1907.     will be aligned with the beginning of the original line, otherwise
  1908.     the new line is moved to column one.
  1909.  
  1910.   - ljoin  "Join Line"  <Alt-J>
  1911.  
  1912.     This command appends the line below the cursor to the line at the
  1913.     cursor. If the cursor is positioned on or before the end of the
  1914.     line, the line below the cursor is joined to the end of the current
  1915.     line. If the cursor is positioned after the end of the line, the
  1916.     line below the cursor is joined at the cursor position.
  1917.  
  1918.   - ldup  "Duplicate Line"  <Alt-4>
  1919.  
  1920.     This command duplicates the line at the cursor.
  1921.  
  1922.     Note: entering the "mcpy" <Alt-C> command will also duplicate the
  1923.     line at the cursor if no marked block currently exists and the
  1924.     "CopyLine" configuration setting is ON (see "Using Marked Blocks"
  1925.     8-1).
  1926.  
  1927.   - lswp  "Swap Lines"  <Alt-5>
  1928.  
  1929.     This command swaps the line at the cursor with the following line.
  1930.  
  1931.   - lcen  "Center Line"  <Alt-6>
  1932.  
  1933.     This command centers the line at the cursor between the Left and
  1934.     Right margins.
  1935.  
  1936.   - lcom  "Comment Line"  <Alt-F1>
  1937.  
  1938.     This command "comments out" the line at the cursor by prefixing it
  1939.     with the string "//". If the line is already commented-out, then it
  1940.     is "un-commented" by removing the string "//". The cursor is moved
  1941.     to the next line without changing the column position.
  1942.                                                      Modifying Text   29
  1943.  
  1944.  
  1945.   - lcom  [string1]  [string2].
  1946.  
  1947.     This command "comments out" the line at the cursor by enclosing it
  1948.     between the strings [string1] and [string2]. If the line is already
  1949.     commented-out, then it is "un-commented" by removing the enclosing
  1950.     strings [string1] and [string2]. The cursor is moved to the next
  1951.     line without changing the column position.
  1952.  
  1953.   - enteredit  <Enter>
  1954.  
  1955.     The action taken when this command is entered depends on the insert
  1956.     mode for the current Edit window and the configuration settings
  1957.     "EnterOvl" and "EnterIns".
  1958.  
  1959.     "EnterOvl" defines the action to take when this command is entered
  1960.     and the cursor is in overlay mode. "EnterIns" defines the action to
  1961.     take when this command is entered and the cursor is in insert mode.
  1962.     You can choose one of the following values for both EnterOvl and
  1963.     EnterIns:
  1964.  
  1965.       i - inserts a new line
  1966.       s - splits the line at the cursor and moves the cursor to the
  1967.           beginning of the next line
  1968.       null - moves the cursor to the beginning of the next line
  1969.  
  1970.   - lit  "Enter Literal.."  <Ctrl-[>
  1971.  
  1972.     This command prompts you to enter a character "literally" into an
  1973.     Edit window. Any key entered is interpreted as a "type-able" key,
  1974.     not a function key.
  1975.  
  1976.     You can use this command to enter any ascii character into a file.
  1977.     At the literal prompt, hold down the <Alt> key, enter the ascii
  1978.     value of the character with the keypad keys, and then release the
  1979.     <Alt> key. Binary zeros can be entered by pressing <Shift-F1> at the
  1980.     literal prompt.
  1981.  
  1982.   - wasc  "Ascii Chart.."  <Alt-=>
  1983.  
  1984.     This command displays a menu which lists all 256 ascii characters
  1985.     and their decimal and hex values. You can select an ascii character
  1986.     from the menu and enter it into the current Edit window by pressing
  1987.     the <Enter> key over the character or by selecting it with the left
  1988.     mouse button. Pressing <Esc> cancels the ascii chart.
  1989.  
  1990.     Note: The ascii chart can also be used within an editor prompt.
  1991.                                                      Modifying Text   30
  1992.  
  1993.  
  1994.   - txt  [string]
  1995.  
  1996.     This command enters the string [string] at the cursor as if it had
  1997.     been typed in. If the cursor is in insert mode, the string is
  1998.     inserted into the text at the cursor, otherwise the string will
  1999.     overlay the text at the cursor.
  2000.  
  2001.   - stamp  "Date/Time Stamp"  <Ctrl-K-T>
  2002.  
  2003.     This command enters the current date and time at the cursor as if it
  2004.     had been typed in. If the cursor is in insert mode, the date and
  2005.     time are inserted into the text at the cursor, otherwise the date and
  2006.     time will overlay the text at the cursor. The date and time are
  2007.     entered in the following format:  MM/DD/YY HH:MMmm. For example,
  2008.     "08/30/93 01:01am".
  2009.  
  2010.   - exptab  "Expand Tabs"  <Ctrl-K-X>
  2011.  
  2012.     This command expands all the tab characters in the current Edit
  2013.     window. The tab width using during the expansion is determined by
  2014.     the "Tab Width" setting (see "Global Settings" 13-2). Acceptable
  2015.     values of "TabWidth" for this command are 2, 4 and 8.
  2016.                                                       Undo and Redo   31
  2017.  
  2018.  
  2019.   6-4  Undo and Redo
  2020.   ──────────────────
  2021.  
  2022.   The undo and redo commands are a very advanced feature of The Aurora
  2023.   Editor. They allow you to backtrack and retrace modifications you made
  2024.   to the text in an Edit window. This can be an extremely valuable
  2025.   safeguard against accidental changes, or simply a convenient way for
  2026.   you to review your recent text changes.
  2027.  
  2028.   In general, all text changes, text folding, and block marking can be
  2029.   undone. Cursor movements and scrolling are also undone, but only when
  2030.   they are associated with text changes, text folding, and marking. Any
  2031.   change to the text in an Edit window can be undone, including block
  2032.   commands. Commands which can not be un-done are file saving commands,
  2033.   and commands which make changes directly to files via the File
  2034.   Manager.
  2035.  
  2036.   The following commands let you undo and redo changes to text:
  2037.  
  2038.   - undo  "Undo"  <Ctrl-U>
  2039.  
  2040.     This command will undo the last change you made to the text in the
  2041.     current Edit window. The text will be restored to its original state
  2042.     and the window and cursor will be positioned as they were before the
  2043.     change was made.
  2044.  
  2045.     Entering this command repeatedly will continue to undo text changes
  2046.     in the reverse order you made them. The configuration setting
  2047.     "UndoSize" determines the maximum number of changes which can be
  2048.     undone (see "Configuration - Editing Preferences" 17-8).
  2049.  
  2050.   - undo %r  "Redo"  <Ctrl-Y>
  2051.  
  2052.     This command will redo the last change that you have undone with the
  2053.     undo command in the current Edit window. Entering this command
  2054.     repeatedly will redo your text changes in the order you made them.
  2055.     Changes made with this command can also be undone with undo command.
  2056.  
  2057.  
  2058.   Note that both the undo and redo commands are "local" to the text in
  2059.   an Edit window. Entering either of these commands in one Edit window
  2060.   will only modify the text in another Edit window if the other Edit
  2061.   window is a copy of the original window.
  2062.                                                         OS Commands   32
  2063.  
  2064.  
  2065.   7-1  OS Commands
  2066.   ────────────────
  2067.  
  2068.   The Aurora Editor has three commands which allow you execute almost
  2069.   any DOS command or program from with the editor and then return you to
  2070.   your editing session. They are available from the "Macro" pulldown
  2071.   menu.
  2072.  
  2073.   In order to leave the maximum amount of memory available for DOS
  2074.   programs, The Aurora Editor will shrink down to 1.2K by swapping
  2075.   itself out to XMS or EMS memory (if available), or to disk.
  2076.  
  2077.   The OS commands are:
  2078.  
  2079.   - osshell  "OS Shell"  <F9>
  2080.  
  2081.     This command passes control to the DOS program "COMMAND.COM", and
  2082.     allows you to enter commands just as if you were in a normal DOS
  2083.     session. When you are in the DOS session, enter the "EXIT" command
  2084.     to return to the editor where you left it.
  2085.  
  2086.   - askoscmd %ck  "OS Command"  <Alt-F9>
  2087.  
  2088.     This command will prompt you to enter a DOS command, execute it, and
  2089.     then return you to the editor where you left it (there is no need to
  2090.     type "EXIT").
  2091.  
  2092.     Prompt history is available at this prompt (see "Prompts" 2-6).
  2093.  
  2094.   - askoscap  "OS Capture"  <Alt-F8>
  2095.  
  2096.     This command will prompt you to enter a DOS command, execute the
  2097.     command, and capture the output in a file. You will then be returned
  2098.     to the editor and the captured output will be displayed in an Edit
  2099.     window (there is no need to type "EXIT").
  2100.  
  2101.     This command is especially helpful when used with the "finc"
  2102.     <Alt-F7> command ("Go to Compiler Error" on the "Search" pull-down
  2103.     menu). You can use the "askoscap" command to capture the output from
  2104.     a compiler, and then use the "finc" <Alt-F7> command to locate
  2105.     compiler errors in your source code (see the "finc" command 6-1).
  2106.  
  2107.     Prompt history is available at this prompt (see "Prompts" 2-6).
  2108.                                                         OS Commands   33
  2109.  
  2110.   - os  [DOS command]  [options]
  2111.  
  2112.     This command executes the specified DOS command without prompting
  2113.     you for the command. You can specify any of the following options:
  2114.  
  2115.       c - clear the screen before executing the command
  2116.       k - display the prompt "Press any key to return" when done
  2117.  
  2118.     For example:
  2119.  
  2120.       os %dir %kc
  2121.  
  2122.     The command above clears the screen, executes the DOS "dir" command,
  2123.     and then prompts you to return to the editor.
  2124.  
  2125.   - oscap  [DOS command]  [options]
  2126.  
  2127.     This command executes the specified DOS command without prompting
  2128.     you for the command, and directs the output to a file. You can
  2129.     specify the "k" option (see the "os" command above).
  2130.  
  2131.  
  2132.   Note: You should not execute any DOS "terminate and stay resident"
  2133.   programs (such as the DOS "print" command) from within any of the above
  2134.   commands. "Terminate and stay resident" programs should be started
  2135.   before the editor is started.
  2136.                                                 Using Marked Blocks   34
  2137.  
  2138.  
  2139.   8-1  Using Marked Blocks
  2140.   ────────────────────────
  2141.  
  2142.   Marking blocks of text and executing block commands are essential
  2143.   features of many text editors. A block mark is an area of text in an
  2144.   Edit window which has been designated for a specific block command.
  2145.   Unlike the clipboard commands (see "The Clipboard" 9-1), block
  2146.   commands directly manipulate Edit window text.
  2147.  
  2148.   The Aurora Editor provides commands to define block marks by lines,
  2149.   columns, and characters (streams), and also provides a large set of
  2150.   block commands. There are block commands for copying, moving,
  2151.   deleting, overlaying, reflowing text, and more.
  2152.  
  2153.   Before you can use a block command, you must first create a block
  2154.   mark. The Aurora Editor has several different commands for creating
  2155.   block marks:
  2156.  
  2157.  
  2158.   - mset %l  "Mark Line"  <Alt-L>
  2159.  
  2160.     This command creates a new "line" mark or adjusts the size of an
  2161.     existing line mark. A line mark designates a group of one or more
  2162.     complete lines without specifying any column information. To mark a
  2163.     group of lines, just move the cursor to one end of the group of
  2164.     lines to be marked and enter this command, then move the cursor to
  2165.     the other end and enter this command again. The new line mark will
  2166.     be highlighted.
  2167.  
  2168.     To create a line mark using the mouse, double-click the left mouse
  2169.     button on one end of the group of lines to be marked, and with left
  2170.     mouse button still down, drag the mouse to the other end of the
  2171.     group of lines and then release the left mouse button.
  2172.  
  2173.   - mset %r  "Mark Column"  <Alt-B>
  2174.  
  2175.     This command creates a new rectangular or "column" mark. It can also
  2176.     adjust the size of an existing column mark. A column mark designates
  2177.     rectangular area of text which spans one or more lines and one or
  2178.     more columns. To create a column mark, move the cursor to one corner
  2179.     of the desired rectangle and enter this command, then move the
  2180.     cursor to the opposite corner of the rectangle and enter this
  2181.     command again. The new column mark will be highlighted.
  2182.  
  2183.     To create a column mark using the mouse, press the left mouse button
  2184.     down at one end of the rectangle to be marked, and with left mouse
  2185.     button still down, drag the mouse to the opposite corner of the
  2186.     rectangle and release the left mouse button.
  2187.                                                 Using Marked Blocks   35
  2188.  
  2189.  
  2190.   - mset %s  "Mark Character"  <Alt-A>
  2191.  
  2192.     This command creates a new stream or "character" mark. It can also
  2193.     adjust the size of an existing character mark. A character mark
  2194.     designates a continuous segment or "stream" of characters in the
  2195.     file. To create a character mark, move the cursor to the beginning
  2196.     of the character stream and enter this command, then move the cursor
  2197.     to the end of the character stream and enter this command again. The
  2198.     new character mark will be highlighted.
  2199.  
  2200.   - mdes  "Unmark"  <Alt-U>
  2201.  
  2202.     This command will unmark the current marked block.
  2203.  
  2204.  
  2205.   Note: the "MouMrkS" and "MouMrkD" configuration settings (see
  2206.   "Configuration - Mouse" 17-3) determine the default type of block
  2207.   marks created by single-clicking and double-clicking the left mouse
  2208.   button and dragging the mouse. No matter what "MouMrkS" and "MouMrkD"
  2209.   are set to, you can still always create the desired line, column, or
  2210.   character mark by holding down the appropriate "shift" key when
  2211.   single-clicking or double-clicking the left mouse button and dragging
  2212.   the mouse:
  2213.  
  2214.     <Alt>   - forces line marks
  2215.     <Ctrl>  - forces column marks
  2216.     <Shift> - forces character (stream) marks
  2217.  
  2218.  
  2219.   There are some "short-cut" block marking commands for defining
  2220.   commonly used line and column marks, which can save you time:
  2221.  
  2222.   - mpgh %tb  "Mark Paragraph"  <Alt-3>
  2223.  
  2224.     This command creates a line mark which spans the "paragraph" in
  2225.     which the cursor is located. A paragraph is defined as a contiguous
  2226.     series of non-blank lines.
  2227.  
  2228.   - wrdmrk CSet  "Mark Word"  <Alt-1>
  2229.  
  2230.     This command creates a column mark which spans the "word" in which
  2231.     the cursor is located. The configuration setting "CSet" is the
  2232.     character set used to define a word for this command (see
  2233.     "Configuration - Character Sets" 17-14).
  2234.  
  2235.   - meol  "Mark to EOL"  <Alt-2>
  2236.  
  2237.     This command creates a column mark which spans the text from the
  2238.     current cursor position to the end of the line.
  2239.                                                 Using Marked Blocks   36
  2240.  
  2241.  
  2242.   The following block commands can be used with all marked blocks
  2243.   created by the methods described above. Note that the effects of all
  2244.   these commands can be reversed with the "undo" <Ctrl-U> command.
  2245.  
  2246.   - mcpy  "Copy"  <Alt-C>
  2247.  
  2248.     This commands inserts a copy of the text in the current marked block
  2249.     after the cursor. The original marked block remains unchanged. You can
  2250.     copy a marked block within the same Edit window, or between different
  2251.     Edit windows.
  2252.  
  2253.     The configuration setting "MoveMark" determines whether or not the
  2254.     block mark highlight is moved to the location where the text was
  2255.     copied (see "Configuration Settings - Editing Preferences" 17-8).
  2256.  
  2257.     Note: this command can also be used to duplicate the line at the
  2258.     cursor if no marked block currently exists and the "CopyLine"
  2259.     configuration setting is ON.
  2260.  
  2261.   - mcpyp  <Alt-C>
  2262.  
  2263.     This command is for use within an editor prompt. It copies the text
  2264.     in the current marked block to the cursor location within the
  2265.     prompt. Only column marks (or the first line of a stream mark) are
  2266.     copied. Line marks are ignored.
  2267.  
  2268.   - mmov  "Move"  <Alt-M>
  2269.  
  2270.     This command moves the text in the current marked block (and the
  2271.     marked block itself) after the cursor. The marked block may be in
  2272.     the current Edit window or in another Edit window.
  2273.  
  2274.   - mdel  "Delete"  <Alt-D>
  2275.  
  2276.     This command deletes the text in the current marked block, and the
  2277.     marked block itself. The marked block may be in the current Edit
  2278.     window, or in a another Edit window. Note that you can restore the
  2279.     marked block again with the "undo" <Ctrl-U> command.
  2280.  
  2281.     Note: this command can also be used to delete the line at the cursor
  2282.     if no marked block currently exists and the "DelLine" configuration
  2283.     setting is ON.
  2284.  
  2285.   - askmfill  "Fill"  <Ctrl-K-F>
  2286.  
  2287.     This command prompts you to enter a character, and then fills the
  2288.     marked block with the character you specified. If the marked block
  2289.     is a line mark, only the area between the left and right margins
  2290.     is filled.
  2291.                                                 Using Marked Blocks   37
  2292.  
  2293.  
  2294.   - msave  "Save.."  <Ctrl-K-S>
  2295.   - msave %a
  2296.  
  2297.     These commands prompt you for a filename, and then save the current
  2298.     marked block in the file you specified. If option "a" is specified,
  2299.     the block is appended to the file, otherwise the block replaces the
  2300.     file.
  2301.  
  2302.     If the file containing the marked block is a binary file, then no
  2303.     line delimiter is used when saving, otherwise each saved line in the
  2304.     block is appended with the current value of the line delimiter
  2305.     "LineDlm" configuration setting.
  2306.  
  2307.     Note: you cannot use the "undo" <Ctrl-U> command to reverse the
  2308.     effects of this command.
  2309.  
  2310.   - mcase %l  "Lowercase"
  2311.   - mcase %u  "Uppercase"  <Ctrl-K-U>
  2312.  
  2313.     These commands will convert all characters in the current marked
  2314.     block to lower case or upper case.
  2315.  
  2316.   - mcase %ul
  2317.  
  2318.     This command will "flip" or toggle the case of all characters in the
  2319.     current marked block.
  2320.  
  2321.  
  2322.   The following block commands work only on line and column blocks:
  2323.  
  2324.   - mmov %o  "Overlay"  <Alt-O>
  2325.  
  2326.     This command overlays the text at the cursor with the text in the
  2327.     current marked block. The original marked block remains unchanged
  2328.     (if it does not overlap the destination). You can overlay a marked
  2329.     block within the same Edit window, or between different Edit
  2330.     windows.
  2331.  
  2332.     The configuration setting "MoveMark" determines whether or not the
  2333.     block mark highlight is moved to the location where the text was
  2334.     overlaid (see "Configuration Settings - Editing Preferences" 17-8).
  2335.  
  2336.   - mmov %of  "Move Over"  <Ctrl-M>
  2337.  
  2338.     This command moves the text in the current marked block over the
  2339.     text at the cursor. The original marked block is blanked-out (or
  2340.     partially blanked-out if it overlaps with new block at the cursor).
  2341.     You can use this command inside the same Edit window, or between
  2342.     different Edit windows.
  2343.  
  2344.   - mshf  1    "Indent"    <Shift-F8>
  2345.   - mshf -1    "Unindent"  <Shift-F7>
  2346.  
  2347.     These commands shift the text in the current marked block left or
  2348.     right one column. They are useful for indenting or unindenting areas
  2349.     of text.
  2350.                                                 Using Marked Blocks   38
  2351.  
  2352.  
  2353.   - mjust %l  "Left Justify"
  2354.   - mjust %c  "Center"        <Ctrl-K-C>
  2355.   - mjust %r  "Right Justify"
  2356.  
  2357.     These commands left justify, center, and right justify the text in
  2358.     the current marked block. For line blocks, the current Left and
  2359.     Right margins are used. For column marks, the left and right edges
  2360.     of the mark are used as left and right margins. The centering
  2361.     command is useful for creating centered document titles.
  2362.  
  2363.   - mrfl %b  "Reflow"  <Alt-R>
  2364.  
  2365.     This useful command will "reflow" the text within the current marked
  2366.     block. If the marked block is a line mark, the marked text will be
  2367.     reflowed to fit between the Left and Right Margins. The reflowed
  2368.     text will always be left justified.
  2369.  
  2370.     If the marked block is a column mark, all the lines spanned by the
  2371.     column mark will still be reflowed as with line marks, but the left
  2372.     and right edges of the mark will be used as Left and Right margins.
  2373.  
  2374.     If the "AutoMark" configuration setting is set to "ptb" (paragraph),
  2375.     you can the reflow a paragraph by simply placing the cursor within
  2376.     the paragraph and entering this command (see "Configuration -
  2377.     Editing Preferences" 17-8). In this case, the cursor position is
  2378.     used as the left margin, and the Right Margin setting is used as the
  2379.     right margin.
  2380.  
  2381.   - mrfl %br  "Reflow RJust"  <Alt-Y>
  2382.  
  2383.     This command will reflow text in the same way as the "mrfl %b"
  2384.     command above, but the reflowed text will be both left AND right
  2385.     justified. The editor may insert spaces between some words in the
  2386.     text to pad the line out to the right margin.
  2387.  
  2388.   - msrt  "Sort"  <Ctrl-K-O>
  2389.  
  2390.     This command sorts the all the lines spanned by the current marked
  2391.     block. For line marks, the entire line is used as the sort key. For
  2392.     column marks, the area between the left and right edges of the mark
  2393.     is used as the sort key. Note that for column marks, all the lines
  2394.     spanned by the mark will still be sorted, not just the area within
  2395.     the mark.
  2396.  
  2397.     If the <Shift> key is held down when this command is executed, the
  2398.     sort is in descending order, otherwise the sort is in ascending
  2399.     order.
  2400.                                                 Using Marked Blocks   39
  2401.  
  2402.  
  2403.   - print %m  "Print Block"  <Alt-P>
  2404.  
  2405.     This command prints the text within the current marked block using
  2406.     the current printer settings (see "Configuration - Print Settings"
  2407.     17-10).
  2408.                                                       The Clipboard   40
  2409.  
  2410.  
  2411.   9-1  The Clipboard
  2412.   ──────────────────
  2413.  
  2414.   Edit window text can be indirectly manipulated by using the clipboard
  2415.   commands. These commands allow you to move or copy the text within the
  2416.   current marked block into a temporary buffer known as a "clipboard",
  2417.   and then copy or overlay the clipboard text to a new location in the
  2418.   same Edit window, or even to a new location in a different Edit
  2419.   window. As with the block commands, you can use the "undo" <Ctrl-U>
  2420.   command to reverse the effects of clipboard commands.
  2421.  
  2422.   You can have any number of clipboards in an edit session. Each
  2423.   clipboard is identified by a unique name and is available to any Edit
  2424.   window. The default clipboard is named "clipboard", and is the
  2425.   "current" clipboard when The Aurora Editor is initially started.
  2426.  
  2427.   Note that if the "AutoMark" configuration setting (see "Configuration
  2428.   - Editing Preferences" 17-8) is set to "ptb" (paragraph), you can
  2429.   "Cut" or "Copy" a paragraph by simply placing the cursor within the
  2430.   paragraph and entering one of the "clpcpy" commands described below.
  2431.  
  2432.   The following clipboard commands operate on the "current" clipboard:
  2433.  
  2434.   - clpcpy %d  "Cut"  <Grey->
  2435.  
  2436.     This command erases the contents of the current clipboard and then
  2437.     moves the text within the current marked block to the clipboard. The
  2438.     current marked block is destroyed.
  2439.  
  2440.   - clpcpy %ad  "Cut Append"  <Ctrl-Grey->
  2441.  
  2442.     This command moves the text within the current marked block to the
  2443.     end of the current clipboard without erasing the contents of the
  2444.     clipboard. The current marked block is destroyed.
  2445.  
  2446.     This command is useful for gathering separate blocks of text and
  2447.     grouping them together in the clipboard.
  2448.  
  2449.   - clpcpy  "Copy"  <Grey+>
  2450.  
  2451.     This command erases the contents of the current clipboard and then
  2452.     copies the text within the current marked block into the clipboard.
  2453.     The current marked block and its contents are unchanged.
  2454.                                                       The Clipboard   41
  2455.  
  2456.  
  2457.   - clpcpy %a  "Copy Append"  <Ctrl-Grey+>
  2458.  
  2459.     This command copies the text within the current marked block to the
  2460.     end of the current clipboard without erasing the contents of the
  2461.     clipboard. The current marked block and its contents are unchanged.
  2462.  
  2463.     This command is useful for copying separate blocks of text and
  2464.     grouping them together in the clipboard.
  2465.  
  2466.   - clppst  "Paste"  <Grey*>
  2467.  
  2468.     This command inserts the text from the current clipboard at the
  2469.     cursor position in the current Edit window. The contents of the
  2470.     clipboard are unchanged.
  2471.  
  2472.   - clppst %o  "Paste Over"  <Ctrl-Grey*>
  2473.  
  2474.     This command overlays the text from the current clipboard at the
  2475.     cursor position in the current Edit window. The contents of the
  2476.     clipboard are unchanged.
  2477.  
  2478.   - clpclr  "Clear"  <Ctrl-Grey/>
  2479.  
  2480.     This command erases the contents of the current clipboard.
  2481.  
  2482.  
  2483.   The following command changes the "current" clipboard:
  2484.  
  2485.   - askclp  "Clipboard.."
  2486.  
  2487.     This command prompts you for a unique clipboard name and changes the
  2488.     "current" clipboard to the name you enter. The clipboard will be
  2489.     created if it does not exist. Entering any of the above clipboard
  2490.     commands will now refer to the new clipboard.
  2491.  
  2492.     At installation, the default clipboard name is "clipboard".
  2493.                                                        Folding Text   42
  2494.  
  2495.  
  2496.   10-1  Folding Text
  2497.   ──────────────────
  2498.  
  2499.   The Aurora Editor allows you to "fold" multiple lines of text in an
  2500.   Edit window and make them appear as one line. This feature is useful
  2501.   for hiding lines of text that you do not wish to view, and may help to
  2502.   reduce unnecessary scrolling. If you wish to redisplay the folded
  2503.   text, it can be "unfolded" at any time. You can create any number of
  2504.   text folds of any size.
  2505.  
  2506.   A text fold is displayed in an Edit window as a single highlighted
  2507.   line indicating the number of lines in the fold. For example:
  2508.  
  2509.     ── 215 lines not displayed ─────────────────────────────────────
  2510.  
  2511.   In the example above, 215 lines of text appear as one folded line.
  2512.  
  2513.   Text folds can be "nested" by folding a group of lines which already
  2514.   contain other folds. Later when the outer fold is unfolded, the inner
  2515.   folds are redisplayed. This feature allows you to create a "hierarchy
  2516.   of folds". Fold hierarchies of any size can be created.
  2517.  
  2518.   Note that any lines contained within a text fold will be excluded from
  2519.   the search and replace commands (see "Search and Replace" 11-1).
  2520.  
  2521.   Several commands are available for folding and unfolding text. The
  2522.   effects of each of these commands can be reversed with the "undo"
  2523.   <Ctrl-U> and "undo %r" <Ctrl-Y> commands:
  2524.  
  2525.   - lfld %b  "Fold Next Line"  <Alt-8>
  2526.   - lfld %t  "Fold Prev Line"
  2527.  
  2528.     These commands extend the fold at the cursor to the next or previous
  2529.     line. If there is no fold at the cursor, then a new "one-line" fold
  2530.     is created at the cursor.
  2531.  
  2532.   - mfld %f  "Fold Block"  <Alt-F>
  2533.  
  2534.     This command creates a new fold consisting of all the lines in the
  2535.     current marked block. Any "sub-folds" will be preserved.
  2536.  
  2537.     If the "AutoMark" configuration setting is set to "ptb" (paragraph),
  2538.     you can fold a paragraph by simply placing the cursor within the
  2539.     paragraph and entering this command (see "Configuration - Editing
  2540.     Preferences" 17-8).
  2541.                                                        Folding Text   43
  2542.  
  2543.  
  2544.   - mfld %uaf  "Fold Block Flat"
  2545.  
  2546.     This command is identical the "mfld %f" command above, except that
  2547.     all existing folds within the marked block are removed before the
  2548.     new fold is created. The new fold will not have any "sub-folds".
  2549.  
  2550.   - lfld %u  "Unfold Line"  <Alt-G>
  2551.  
  2552.     This command removes the fold at the cursor.
  2553.  
  2554.   - lfld %ua  "Unfold Line Flat"
  2555.  
  2556.     This command removes the fold at the cursor, and also removes any
  2557.     "sub-folds" within the fold.
  2558.  
  2559.   - lfld %bs  "Unfold Next Line"  <Alt-9>
  2560.   - lfld %ts  "Unfold Prev Line"
  2561.  
  2562.     These commands shrink the fold at the cursor so that the bottom or
  2563.     top line in the fold is displayed.
  2564.  
  2565.   - mfld %u  "Unfold Block"
  2566.  
  2567.     This command removes any "top-level" folds contained within the
  2568.     current marked block. Folds contained within the top-level folds are
  2569.     preserved.
  2570.  
  2571.   - mfld %ua  "Unfold Block Flat"
  2572.  
  2573.     This command removes all folds contained within the current marked
  2574.     block. All existing fold hierarchies within the marked block are
  2575.     removed.
  2576.  
  2577.   - mflda %ua  "Unfold All"  <Alt-0>
  2578.  
  2579.     This command removes all folds in the current Edit window. All
  2580.     existing fold hierarchies are removed.
  2581.                                                  Search and Replace   44
  2582.  
  2583.  
  2584.   11-1  Search and Replace
  2585.   ────────────────────────
  2586.  
  2587.   The Aurora Editor provides commands for locating character strings
  2588.   within the current Edit window, or within files on disk:
  2589.  
  2590.   - askfind  "Find.."  <F5>, <Ctrl-F>
  2591.  
  2592.     This command prompts you for a character string to search for in
  2593.     the current Edit window. "Search options" can also be specified at
  2594.     the prompt. The following search options are available:
  2595.  
  2596.     i - Ignore case when searching for the string. For example, the
  2597.         search string "aurora" would find "Aurora" or "AURORA".
  2598.  
  2599.     w - Search for "whole words only". For example, the search string
  2600.         "at" would find " at " and "(at)", but not "ate" or "that". This
  2601.         option can be useful for locating variables in program source
  2602.         code.
  2603.  
  2604.     r - Reverse search. This option forces the search to proceed toward
  2605.         the top of the Edit window. If this option is not specified, the
  2606.         search proceeds toward the bottom of the Edit window.
  2607.  
  2608.     b - Marked block only. This option limits the search to the current
  2609.         marked block. The block may be a line mark or a column mark.
  2610.  
  2611.     g - Search globally starting from the beginning of the file (or the
  2612.         end of the file if used with the reverse search option). If this
  2613.         option is not selected, the search begins from the current
  2614.         cursor position. This option is ignored if the "Marked block
  2615.         only" option (b) is specified.
  2616.  
  2617.     If you have tailored the find prompt to appear as a dialog box, you
  2618.     can select these options from the "search options" group box. You
  2619.     can also configure which options default to "selected" when the
  2620.     dialog box is displayed (see the "SearchOpt" configuration setting
  2621.     17-8).
  2622.  
  2623.     If you have tailored the find prompt to appear as a command line or
  2624.     one-line box, enter the search string at the prompt and press the
  2625.     <Enter> key. For example, to find the string "Aurora":
  2626.  
  2627.       (string/iwrbg) Find> Aurora  <Enter>
  2628.                                                  Search and Replace   45
  2629.  
  2630.  
  2631.     If you are entering search options, enter the slash character (/)
  2632.     after the search string and then enter the desired search options:
  2633.  
  2634.       (string/iwrbg) Find> Aurora/iwrb  <Enter>
  2635.  
  2636.     After the <Enter> key pressed in the example above, the editor will
  2637.     search for the string "Aurora". The search will ignore case and will
  2638.     be restricted to the current marked block, starting at the bottom of
  2639.     the marked block and searching toward the top.
  2640.  
  2641.     If you need to include the slash character (/) in the search string,
  2642.     enter it twice. For example:
  2643.  
  2644.       (string/iwrbg) Find> Au//r//ora/iwrb  <Enter>
  2645.  
  2646.     In the example above, the search string is now "Au/r/ora". Note that
  2647.     double slashes are only required in one-line boxes or command line
  2648.     prompts, not in dialog boxes.
  2649.  
  2650.     If you have tailored the find prompt to appear as a command line or
  2651.     one-line box, default search options will be added by the editor if
  2652.     you have not specified any search options in the prompt (see the
  2653.     "SearchOpt" configuration setting 17-8). To prevent default search
  2654.     options from being added, either specify your own options or just
  2655.     add a "/" to the end of the search string.
  2656.  
  2657.     Prompt history is available at the find prompt (see "Prompts" 2-6).
  2658.     Note that the Find, Replace, and Scan prompts all share the same
  2659.     prompt history.
  2660.  
  2661.  
  2662.   - askrpl  "Replace.."  <Ctrl-G>
  2663.  
  2664.     This command prompts you for a character string to search for in the
  2665.     current Edit window, and a character string to replace it with.
  2666.     "Search options" can also be specified. The search options are the
  2667.     same as the search options specified for the "askfind" command (see
  2668.     above).
  2669.  
  2670.     The following "replace option" may also be specified:
  2671.  
  2672.       a - Replaces all occurrences of the search string that are found.
  2673.           A message will tell you how many replacements were made.
  2674.  
  2675.     If the replace option "a" is not specified, then you will be
  2676.     prompted to verify each replacement. Each time the search string is
  2677.     found, the following prompt will appear on the window title bar:
  2678.  
  2679.       Replace (Yes/No/All/One/Reverse/Quit)?
  2680.                                                  Search and Replace   46
  2681.  
  2682.  
  2683.     You can select one of the replace/verify options by entering the
  2684.     first character of the desired option:
  2685.  
  2686.       - y (Yes)      Replace and continue searching
  2687.       - n (No)       Do not replace and continue searching
  2688.       - a (All)      Replace all remaining occurrences without prompting
  2689.       - o (One)      Replace and do not continue searching
  2690.       - r (Reverse)  Do not replace and change the search direction
  2691.       - q (Quit)     Cancel the search
  2692.  
  2693.     Entering any other character or function key will cancel the search.
  2694.  
  2695.  
  2696.     Note that any string replacements made with this command can be
  2697.     reversed with the "undo" <Ctrl-U> and "undo %r" <Ctrl-Y> commands.
  2698.  
  2699.     If you have tailored the replace prompt to appear as a dialog box,
  2700.     you can select these options from the "replace options" group box.
  2701.     You can also configure which options default to "selected" when the
  2702.     dialog box is displayed (see the configuration settings "SearchOpt"
  2703.     and "ReplaceOpt" 17-8).
  2704.  
  2705.     If you have tailored the replace prompt to appear as a command line
  2706.     or one-line box, enter the search string at the prompt followed by
  2707.     the slash character (/), replace string, and another slash
  2708.     character. Then press the <Enter> key. For example:
  2709.  
  2710.       (string/repl/iwrbga) Repl> editor/Aurora/  <Enter>
  2711.  
  2712.     In the example above the editor will replace the first occurrence of
  2713.     the string "editor" with the string "Aurora". Note that the
  2714.     terminating slash is required.
  2715.  
  2716.     Search and replace options can be entered after the last slash (/)
  2717.     character. For example:
  2718.  
  2719.       (string/repl/iwrbga) Repl> editor/Aurora/irga  <Enter>
  2720.  
  2721.     In the example above, the editor will replace all occurrences of the
  2722.     string "editor" (ignoring case) with the string "Aurora". The search
  2723.     will proceed from the bottom of the file to the top of the file and
  2724.     you will not be prompted for any replacement.
  2725.  
  2726.     If you need to include the slash character (/) in the search string
  2727.     or replace string, enter it twice. For example:
  2728.  
  2729.       (string/repl/iwrbga) Repl> edi//tor/Aur//ora/  <Enter>
  2730.                                                  Search and Replace   47
  2731.  
  2732.  
  2733.     In the example above, the search string is "edi/tor" and the replace
  2734.     string is "Aur/ora". Note that double slashes are only required in
  2735.     one-line boxes or command line prompts, not in dialog boxes.
  2736.  
  2737.     If you would like to replace the search string with a "null" replace
  2738.     string, specify the "z" replace option without specifying a replace
  2739.     string. For example:
  2740.  
  2741.       (string/repl/iwrbga) Repl> xyz/za  <Enter>
  2742.  
  2743.     In the example above, the editor will delete all occurrences of the
  2744.     string "xyz" from the cursor position to the end of the file.
  2745.  
  2746.     If you have tailored the replace prompt to appear as a command line
  2747.     or one-line box, and you have not specified any search or replace
  2748.     options, then the default search and replace options will be added
  2749.     by the editor (see the "SearchOpt" configuration setting 17-8). To
  2750.     prevent default options from being added, either specify your own
  2751.     options, or specify the "n" option ("no default").
  2752.  
  2753.     If you have tailored the Find prompt to appear as a command-line or
  2754.     one-line box prompt, you can also enter any replace command in the
  2755.     Find prompt. This allows you to enter both Find and Replace commands
  2756.     from only one prompt.
  2757.  
  2758.     Prompt history is available at the replace prompt (see "Prompts"
  2759.     2-6). Note that the Find, Replace, and Scan prompts all share the
  2760.     same prompt history.
  2761.  
  2762.   - finl  "Repeat Last Find/Repl"  <Ctrl-L>
  2763.  
  2764.     This command will repeat the last find or replace command you
  2765.     entered, without prompting you for search or replace strings.
  2766.  
  2767.   - search  [search string]  [options]
  2768.  
  2769.     This command is used to perform the search and replace commands
  2770.     without prompting. The search string must be specified in the same
  2771.     way as it would be specified for the search and replace command line
  2772.     or one-line box prompts (see above). Specifying the "r" option adds
  2773.     the search string to the search prompt history. For example:
  2774.  
  2775.       search "abc/i" %r.
  2776.  
  2777.     The above command searches for the string "abc" (ignoring case) in
  2778.     the current Edit window, and adds the search string to the search
  2779.     prompt history.
  2780.                                                  Search and Replace   48
  2781.  
  2782.  
  2783.   - askscan  "Scan Files.."  <Ctrl-S>
  2784.  
  2785.     This command allows you to scan a directory (or a group of files
  2786.     designated by a "wildcards") for a character string. You will be
  2787.     prompted for the directory or wildcard file specification, and for a
  2788.     search string and search options. The "Ignore Case" (i) and "Whole
  2789.     Words" (w) search options can be used with this command (see the
  2790.     "askfind" command above for a description of these search options).
  2791.  
  2792.     After the scan has completed, a File Manager window will be
  2793.     displayed showing all the files in which the search string was
  2794.     found. Position the cursor to the file you wish to edit and press
  2795.     <Enter> or double-click the left mouse button if you are using the
  2796.     mouse. The file will be loaded into an Edit window and the cursor
  2797.     will be positioned at the first occurrence of the matched search
  2798.     string. You can use the "finl" <Ctrl-L> command ("Repeat Last
  2799.     Find/Repl" - see above) to find other occurrences.
  2800.  
  2801.     If you have tailored the scan prompt to appear as a dialog box, you
  2802.     can select scan search options from the "search options" group box.
  2803.     You can also configure which search options default to "selected"
  2804.     when the dialog box is displayed (see the configuration setting
  2805.     "SearchOpt" 17-8).
  2806.  
  2807.     If you have tailored the scan prompt to appear as a command line or
  2808.     one-line box, enter search string at the scan prompt:
  2809.  
  2810.       (string/files/iw) Scan> Aurora  <Enter>
  2811.  
  2812.     In the above example, the editor will search all files in the
  2813.     current directory for the string "Aurora". Consider the following
  2814.     example:
  2815.  
  2816.       (string/files/iw) Scan> Aurora/c:\doc\*.txt  <Enter>
  2817.  
  2818.     In this example, the editor will search all files with the extension
  2819.     ".txt" in the directory "c:\doc" for the string "Aurora". Now
  2820.     consider the following example:
  2821.  
  2822.       (string/files/iw) Scan> Aurora/*.doc/i  <Enter>
  2823.  
  2824.     In this example, the editor will search all files in the current
  2825.     directory with the extension .DOC for the string "Aurora",
  2826.     ignoring case during the search.
  2827.  
  2828.     As with the "askfind" command above, if you need to include the
  2829.     slash character (/) in the search string, enter it twice. Note that
  2830.     double slashes are only required in one-line boxes or command line
  2831.     versions of the scan prompt, not in dialog boxes.
  2832.                                                  Search and Replace   49
  2833.  
  2834.  
  2835.     If you have tailored the scan prompt to appear as a command line or
  2836.     one-line box, default search options will be added by the editor if
  2837.     you have not specified any search options (see the "SearchOpt"
  2838.     configuration setting 17-8)
  2839.  
  2840.     Note that you can use the <Ctrl-Break> key to interrupt the
  2841.     execution of the "askscan" <Ctrl-S> command.
  2842.  
  2843.     Prompt history is available at the Scan prompt (see "Prompts" 2-6).
  2844.     Note that the Find, Replace, and Scan prompts all share the same
  2845.     prompt history.
  2846.                                                            Printing   50
  2847.  
  2848.  
  2849.   12-1  Printing
  2850.   ──────────────
  2851.  
  2852.   The Aurora Editor provides commands for printing the contents of the
  2853.   current window, or printing a marked block of text within an Edit
  2854.   window. Using the File Manager, you can mark groups of files for
  2855.   printing and print directory listings (see "The File Manager" 16-1).
  2856.  
  2857.   Print commands will use the current printer settings to format output
  2858.   to the printer (see "Configuration - Print Settings" 17-11). The
  2859.   following print commands are available:
  2860.  
  2861.   - print     "Print" <Ctrl-P>  (Edit window)
  2862.   - print %d  "Print" <Ctrl-P>  (File Manager window)
  2863.  
  2864.     These commands print the entire contents of an Edit window or File
  2865.     Manager window using the current printer settings. Printing can be
  2866.     aborted by pressing <Ctrl-Break>.
  2867.  
  2868.   - print %m  "Print Block"  <Alt-P>
  2869.  
  2870.     This command prints the current marked block using the current
  2871.     printer settings. The marked block need not reside in the current
  2872.     window. Printing can be aborted by pressing <Ctrl-Break>.
  2873.  
  2874.   - prtstr (byte 12)  "Print Formfeed"
  2875.  
  2876.     This command ejects a page by sending a formfeed character (ascii
  2877.     12) to the printer defined in the current printer settings. The
  2878.     "prtstr" command can be used to send any control character sequence
  2879.     to the printer. For example:
  2880.  
  2881.       prtstr (byte 13 10)
  2882.  
  2883.     The above command sends a carriage return (ascii 13) and linefeed
  2884.     (ascii 10) to the printer.
  2885.  
  2886.   - prtfil  [filename]
  2887.  
  2888.     This command prints the contents of the specified filename, using
  2889.     the current printer settings. Printing can be aborted by pressing
  2890.     <Ctrl-Break>.
  2891.                                                            Printing   51
  2892.  
  2893.  
  2894.   - askprtset  "Print Settings.."
  2895.  
  2896.     This command displays a dialog box which allows you to change the
  2897.     current printer settings. You can change any of the following
  2898.     settings:
  2899.  
  2900.     - printer options, including header, footer, page numbers, line
  2901.         numbers, eject when done
  2902.     - printer output device or file
  2903.     - lines per page
  2904.     - line spacing
  2905.     - number of copies
  2906.     - printer initialization string
  2907.     - top, bottom, left, and right margins
  2908.  
  2909.     For more information on printer settings, see "Configuration -
  2910.     Print Settings" (17-10).
  2911.                                                     Window Settings   52
  2912.  
  2913.  
  2914.   13-1  Window Settings
  2915.   ─────────────────────
  2916.  
  2917.   For each Edit window in The Aurora Editor there are settings such as
  2918.   "Word Wrap" and "Line Draw" which can be switched ON or OFF during an
  2919.   edit session. You can switch these settings ON or OFF from the
  2920.   "Settings" pull-down menu, or you can define keys which toggle the
  2921.   settings.
  2922.  
  2923.   Each Edit window has it's own copy of these settings, so that changing
  2924.   a setting in one Edit window does not affect the settings of another
  2925.   Edit window. This feature can very convenient when you switch back and
  2926.   forth often between two or more Edit windows and you don't want to
  2927.   keep changing the settings every time you switch windows (for example,
  2928.   editing program source code in one window with "Word Wrap" OFF, and
  2929.   documentation in another window with "Word Wrap" ON).
  2930.  
  2931.   If the configuration setting "SaveWin" is ON, then window settings for
  2932.   each file you edit are "remembered" across edit sessions (see
  2933.   "Configuration - Desktop Options" 17-11). When you close an Edit
  2934.   window, these settings are saved along with the window sizes and
  2935.   cursor positions. The window settings are restored the next time the
  2936.   file is edited.
  2937.  
  2938.   The following section describes the settings associated with each Edit
  2939.   window. Each setting is listed in the following format:
  2940.  
  2941.     togglecommand  "menu item"  <key>
  2942.  
  2943.   The "togglecommand" is the command used to toggle the ON/OFF state of
  2944.   the setting. The "menu item" is the description of the setting as it
  2945.   appears on the "Set" pull-down menu. <key> is the default key used to
  2946.   toggle the setting (if any).
  2947.  
  2948.  
  2949.   - wmwrap  "Word Wrap"  <Ctrl-W>
  2950.  
  2951.     This setting is useful for word processing. It allows you to type
  2952.     freely without having to press <Enter> at the end of each line.
  2953.  
  2954.     If this setting is ON, and you are typing beyond the Right Margin, a
  2955.     new line is inserted after the current line, and the word you are
  2956.     currently typing (and any characters following it) are moved to the
  2957.     next line. If the "AutoIndent" Window Setting is ON, the beginning
  2958.     of the new line is aligned with the first non-blank character of the
  2959.     previous line, otherwise the new line begins at column 1. The cursor
  2960.     is placed in the same relative position in the word as it was on the
  2961.     previous line.
  2962.                                                     Window Settings   53
  2963.  
  2964.  
  2965.   - wmautoi  "AutoIndent"
  2966.  
  2967.     This setting is useful for word processing and general editing. It
  2968.     aligns the beginning of newly inserted lines with the previous line
  2969.     or next line, thus saving you keystrokes.
  2970.  
  2971.     If this setting is ON and a new line is inserted, the cursor is
  2972.     moved to the first non-blank column of the previous line. If the
  2973.     previous line is blank, then the cursor is moved to the first
  2974.     non-blank column of the next line. If the next line is also blank,
  2975.     the cursor column does not change.
  2976.  
  2977.     The AutoIndent setting can affect the following commands when a new
  2978.     line is inserted:
  2979.  
  2980.     - lins      "Insert Line"  <Ctrl-Enter>
  2981.     - lspl      "Split Line"   <Alt-S>
  2982.     - enteredit                <Enter>
  2983.     - entering characters when "Word Wrap" is ON
  2984.  
  2985.   - wmvtab  "Variable Tabs"
  2986.  
  2987.     This setting allows you use the preset tab positions specified in
  2988.     the "Tabs" configuration setting (see "Configuration - Word
  2989.     Processing" 17-4).
  2990.  
  2991.     If this setting is ON, and the "ctab" <Tab> command is entered, the
  2992.     cursor will move to the next column position specified in the "Tabs"
  2993.     configuration setting. Entering the "ctab %l" <Shift-Tab> command
  2994.     will do the same in reverse.
  2995.  
  2996.     If set ON, Variable Tabs will override regular "Interval" Tabs, but
  2997.     Variable Tabs can in turn be overridden by "Smart Tabs" (see below).
  2998.  
  2999.   - wmsmtab  "Smart Tabs"
  3000.  
  3001.     Setting Smart Tabs ON can save you time when entering data in
  3002.     columns.
  3003.  
  3004.     If this setting is ON, and the "ctab" <Tab> command is entered, the
  3005.     cursor will move to the column of the next word on the nearest
  3006.     previous non-blank line. Entering the "ctab %l" <Shift-Tab> command
  3007.     will do the same in reverse.
  3008.  
  3009.     If set ON, "Smart Tabs" will override Variable Tabs and Interval
  3010.     Tabs.
  3011.                                                     Window Settings   54
  3012.  
  3013.  
  3014.   - wmmat  "Match Character"
  3015.  
  3016.     This setting can be useful for entering expressions in program
  3017.     source code. If this setting is ON and the characters (, [, or " are
  3018.     entered, The Aurora Editor will automatically enter the matching
  3019.     character ), ], or ".
  3020.  
  3021.   - wmbak  "Backup"
  3022.  
  3023.     If this setting ON and the current file is saved with The Aurora
  3024.     Editor, the previous version of the file on disk will be saved in
  3025.     a backup file. The new backup file will replace any existing backup
  3026.     file.
  3027.  
  3028.     If a backup directory is defined with the configuration setting
  3029.     "BakDir" (see "Configuration - Save Options" 17-7), then the backup
  3030.     file will be saved in the specified backup directory, otherwise it
  3031.     will be saved with the extension defined with the "BakExt"
  3032.     configuration setting (the default is ".BAK") in the same directory
  3033.     as the file.
  3034.  
  3035.   - wmdraw  "Line Draw"  <Ctrl-D>
  3036.  
  3037.     This setting can be useful for creating boxes, charts, and other
  3038.     text mode drawings. When Line Draw is ON, the cursor keys can be
  3039.     used to draw lines using the text mode graphics characters.
  3040.  
  3041.   - sdraws [0/1/2/3/4]  "Line Style"
  3042.  
  3043.     This setting is the line style used to draw lines with the cursor
  3044.     keys when Line Draw is ON. You can choose any of the following
  3045.     values:
  3046.  
  3047.       0 - Single
  3048.       1 - Double Horizontal
  3049.       2 - Double Vertical
  3050.       3 - Double
  3051.       4 - Eraser
  3052.                                                     Global Settings   55
  3053.  
  3054.  
  3055.   13-2  Global Settings
  3056.   ─────────────────────
  3057.  
  3058.   There are many settings which are global to all windows. These
  3059.   settings are macro language variables located in the configuration
  3060.   file ACFG.A, and can be modified as configuration settings (see
  3061.   "Configuration" 17-1).
  3062.  
  3063.   However, some of these global settings can also be modified during an
  3064.   edit session from the "Set" pull-down menu. If you wish, you can also
  3065.   define keys which display the current values of these settings and
  3066.   prompt you to enter new values.
  3067.  
  3068.   The following section describes global settings which can be changed
  3069.   during an edit session from the "Set" pull-down menu. Each setting is
  3070.   listed in the following format:
  3071.  
  3072.     promptcommand  "menu item"  <key>
  3073.  
  3074.   The "promptcommand" is the command which displays the current value of
  3075.   the setting and prompts you to enter a new value. The "menu item" is
  3076.   the description of the setting as it appears on the "Set" pull-down
  3077.   menu. <key> is the default key used to display the prompt (if any):
  3078.  
  3079.   - asktabw  "Tab Width.."
  3080.  
  3081.     The Tab Width specifies the distance between tab stops for "Interval
  3082.     Tabs". For example, a value of 8 would place tab stops at columns 1,
  3083.     9, 17, 25, etc. The cursor can be moved to the tab stops by using the
  3084.     "ctab" <Tab> and "ctab %l" <Shift-Tab> commands when the "Variable
  3085.     Tabs" and "Smart Tabs" settings are OFF.
  3086.  
  3087.     The "TabWidth" setting is also used as the tab width for the
  3088.     "exptab" <Ctrl-K-X> command ("Expand Tabs" on the "Edit" pull-down
  3089.     menu).
  3090.  
  3091.     The default value of the Tab Width is determined by the
  3092.     configuration setting "TabWidth". The installation default is 8.
  3093.  
  3094.   - asktabv  "Variable Tab Stops.."
  3095.  
  3096.     This setting is a string of explicitly specified tab stops which you
  3097.     can use to override the Interval Tabs specified by the "TabWith"
  3098.     setting above, when the "Variable Tabs" setting is ON (and the
  3099.     "Smart Tabs" setting is OFF). Unlike the tab stops specified with
  3100.     the "Tab Width" setting, Variable Tab Stops need not occur at
  3101.     regular intervals.
  3102.                                                     Global Settings   56
  3103.  
  3104.  
  3105.     The default value of "Variable Tab Stops" is determined by the
  3106.     configuration setting "Tabs". The installation default is "4 8 16 24
  3107.     50 72".
  3108.  
  3109.   - asklmrg  "Left Margin.."
  3110.  
  3111.     The Left Margin setting is used as the default left margin for the
  3112.     following commands on the "Block" pull-down menus, when used with
  3113.     line marks:
  3114.  
  3115.     - lcen      "Center Line"
  3116.     - mjust     "Left Justify", "Right Justify", "Center"
  3117.     - askmfill  "Fill"
  3118.     - mmov %of  "Move Over"
  3119.     - mrfl      "Reflow", "Reflow RJust"
  3120.  
  3121.     The default value of the Left Margin is determined by the
  3122.     configuration setting "LMargin". The installation default is 3.
  3123.  
  3124.   - askrmrg  "Right Margin.."
  3125.  
  3126.     The Right Margin setting is used as the right margin for the "Word
  3127.     Wrap" Window Setting, and for the same block commands used with line
  3128.     marks described above in the Left Margin setting (see above).
  3129.  
  3130.     The default value of the Right Margin is determined by the
  3131.     configuration setting "RMargin". The installation default is 72.
  3132.  
  3133.   - askind  "Paragraph Indent.."
  3134.  
  3135.     This setting determines the number of columns to indent a paragraph
  3136.     when using the "mrfl %b" commands ("Reflow" and "Reflow RJust" on
  3137.     the "Block" pull-down menu).
  3138.  
  3139.     The default value of Paragraph Indent is determined by the
  3140.     configuration setting "Indent". The installation default is 0.
  3141.  
  3142.   - askdefx  "Default File Extensions.."
  3143.  
  3144.     This setting is a list of default file extensions to try when you
  3145.     attempt to open a file without specifying a file extension.
  3146.  
  3147.     The default value of "Default File Extensions" is determined by the
  3148.     configuration setting "DefExt" (see "Configuration - Default File
  3149.     Extensions 17-5). The installation default is "c h cpp doc txt a asm
  3150.     pas inc bat".
  3151.                                                     Global Settings   57
  3152.  
  3153.  
  3154.   - askbin  "Binary Line Length.."
  3155.  
  3156.     This setting is used to determine the length of each line in the
  3157.     file when the file is loaded in Binary Mode.
  3158.  
  3159.     The default value of the Binary Line Length is determined by the
  3160.     configuration setting "BinaryLength". The installation default is
  3161.     64.
  3162.  
  3163.   - askdlm  "Line Delimiter.."
  3164.  
  3165.     This setting is the end-of-line delimiter to be used when loading
  3166.     and saving files in non-binary mode. The Line Delimiter can be one
  3167.   or two bytes long. If the line delimiter is two bytes long, only the
  3168.     last byte is actually used as the line delimiter during file loading
  3169.     (however, if the first byte is found immediately before the second
  3170.     byte, it will be "blanked-out" along with the second byte during the
  3171.     loading process).
  3172.  
  3173.     The default value of the Line Delimiter is determined by the
  3174.     configuration setting "LineDlm". The installation default is "0D0Ah"
  3175.     (carriage return & linefeed).
  3176.  
  3177.  
  3178.   You can save and restore all the current global settings with the
  3179.   following commands:
  3180.  
  3181.   - setres   "Restore Settings"  <Alt-F2>
  3182.  
  3183.     Use the "setres" <Alt-F2> command whenever you wish to restore the
  3184.     default settings, or when you need to change the files containing
  3185.     the configuration settings (ACFG.A), keyboard and mouse definitions
  3186.     (AKBD.A), or menu and tool bar definitions (AMEN.A).
  3187.  
  3188.     This command actually re-compiles the macro language source file
  3189.     A.A, and re-generates the file A.X. The source file A.A includes the
  3190.     files ACFG.A, AMEN.A, ALIB.X, and AKBD.A. The resulting compiled
  3191.     file A.X is interpreted by A.EXE and A3.EXE and contains all the
  3192.     compiled macro language code for The Aurora Editor.
  3193.  
  3194.     Note that if you have previously used the "setsav" command (see
  3195.     below) to save global settings, those settings will revert back to
  3196.     the defaults defined in ACFG.A after this command is entered.
  3197.                                                     Global Settings   58
  3198.  
  3199.  
  3200.   - setsav   "Save Current Settings"
  3201.  
  3202.     This command saves all the current settings, including the settings
  3203.     described above, printer settings, the current window style, prompt
  3204.     style, and the current video mode.
  3205.  
  3206.     Note: This command works the same as the setres <Alt-F2> command
  3207.     (see above), except that configuration settings are taken from the
  3208.     current edit session. The file ACFG.A is not included.
  3209.                                                          Key Macros   59
  3210.  
  3211.  
  3212.   14-1  Key Macros
  3213.   ────────────────
  3214.  
  3215.   A Key Macro is a "recorded" sequence of keystrokes which can be played
  3216.   back on demand. This feature can be very useful for situations where
  3217.   the same sequence of keystrokes are entered over and over again.
  3218.  
  3219.   The Aurora Editor will allow you to record and play key macros of
  3220.   virtually any length. Once they are recorded, you can assign them to a
  3221.   key of your choice, or just keep them in a temporary "scrap" area. You
  3222.   can save and load key macros that you have previously recorded. Also,
  3223.   The Aurora Editor can be configured to automatically load and save all
  3224.   your key macros when you enter and exit the editor (see the "SaveMac"
  3225.   configuration setting 17-11).
  3226.  
  3227.   The key macro commands are:
  3228.  
  3229.   - krec  "Record Toggle"  <Ctrl-R>
  3230.  
  3231.     This command will toggle the record mode ON and OFF. When the record
  3232.     mode is ON, all keystrokes you enter will be recorded until the
  3233.     record mode is turned OFF. After a key macro has been recorded, it
  3234.     resides in a temporary "scrap" buffer until it is assigned to a key
  3235.     or erased.
  3236.  
  3237.     If the record mode is turned ON and there is already a key macro in
  3238.     the scrap buffer, any new recorded keystrokes will be appended to
  3239.     the end of the macro in the scrap buffer. To record a completely new
  3240.     key macro, you should first delete any key macro in the scrap buffer
  3241.     with the "kdel" <Ctrl-I> command (see below).
  3242.  
  3243.   - kplay  "Play"  <Ctrl-E>
  3244.  
  3245.     This command will "play" the key macro in the scrap buffer.
  3246.  
  3247.   - kdel  "Erase"  <Ctrl-I>
  3248.  
  3249.     This command will erase the key macro in the scrap buffer.
  3250.  
  3251.   - kdel %a  "Erase All"
  3252.  
  3253.     This command will erase ALL current key macros. This includes any
  3254.     key macros that were assigned to keys and the key macro in the
  3255.     scrap buffer.
  3256.                                                          Key Macros   60
  3257.  
  3258.  
  3259.   - askkopen  "Open.."
  3260.  
  3261.     This command will prompt you for a key macro file created by the
  3262.     "askksav" command, and then load the key macro file. If there are
  3263.     any conflicts between key assignments in the macro file and current
  3264.     key macro assignments, the key macros in the file will replace the
  3265.     current key macros.
  3266.  
  3267.     Prompt history is available at this prompt (see "Prompts" 2-6).
  3268.  
  3269.   - kopen [filename]
  3270.  
  3271.     This command opens the key macros in the specified filename, without
  3272.     prompting you for the filename.
  3273.  
  3274.   - askksav  "Save.."
  3275.  
  3276.     This command will prompt you for a filename, and then saves all the
  3277.     current key macros in the filename you entered. All macros will be
  3278.     saved, including any key macros that were assigned to keys and the
  3279.     key macro in the scrap buffer.
  3280.  
  3281.     Prompt history is available at this prompt (see "Prompts" 2-6).
  3282.  
  3283.   - ksav  [filename]
  3284.  
  3285.     This command saves all the current key macros in the specified
  3286.     filename, without prompting.
  3287.  
  3288.   - kcat  "Assign to Key.."
  3289.  
  3290.     This command allows you to assign the key macro in the "scrap"
  3291.     buffer to the function key of your choice. You will be prompted to
  3292.     enter the function key. Note that you cannot assign a key macro to a
  3293.     "compound" function key, such as "<F1> <F2>".
  3294.  
  3295.     When the key macro in the scrap buffer has been assigned to a
  3296.     function key, it is removed from the scrap buffer.
  3297.                                                     Other Commands   61
  3298.  
  3299.  
  3300.   15-1  Other Commands
  3301.   ────────────────────
  3302.  
  3303.   Other macro commands are available from the "Macro" pull-down menu:
  3304.  
  3305.   - opena %acfg  "Configuration.."
  3306.  
  3307.     This command opens the file ACFG.A which contains all the
  3308.     configuration settings for The Aurora Editor.
  3309.  
  3310.   - opena %akbd  "Keys.."
  3311.  
  3312.     This command opens the file AKBD.A which contains the current
  3313.     keyboard and mouse definitions for The Aurora Editor.
  3314.  
  3315.   - opena %amen  "Menus.."
  3316.  
  3317.     This command opens the file AMEN.A which contains the current menu
  3318.     and tool bar definitions for The Aurora Editor.
  3319.  
  3320.  
  3321.   - askmcmd  "Macro Command.."  <Ctrl-V>
  3322.  
  3323.     This command prompts you for a macro language expression, and then
  3324.     evaluates it. For complete documentation on The Aurora Macro
  3325.     Language, see "The Aurora Macro Language Guide" (AML.DOC).
  3326.  
  3327.     Prompt history is available at this prompt (see "Prompts" 2-6).
  3328.  
  3329.   - askmrun  "Run Macro.."
  3330.  
  3331.     This command prompts you for the name of a macro language file, and
  3332.     then executes it. The macro language file may be a source file
  3333.     (extension ".A"), or a compiled file (extension ".X"). If no file
  3334.     extension is specified, then ".X" is tried first, followed by ".A".
  3335.     When the macro file is finished executing, all the macro code loaded
  3336.     from the file is discarded.
  3337.  
  3338.     Prompt history is available at this prompt (see "Prompts" 2-6).
  3339.  
  3340.   - askminc  "Include Macro.."
  3341.  
  3342.     This command is identical to the "askmrun" command above, except
  3343.     that when the macro file is finished executing, all the loaded macro
  3344.     code remains present in the editor.
  3345.  
  3346.     Prompt history is available at this prompt (see "Prompts" 2-6).
  3347.                                                     Other Commands   62
  3348.  
  3349.  
  3350.   - askmcom  "Compile Macro.."
  3351.  
  3352.     This command prompts you for the name of a macro language source
  3353.     file, and then compiles it. If no file extension is specified, then
  3354.     ".A" is assumed. The compiled file is placed in the same directory
  3355.     as the source file, but has the extension ".X".
  3356.  
  3357.     Prompt history is available at this prompt (see "Prompts" 2-6).
  3358.  
  3359.  
  3360.   Other macro commands not available from the "Macro" pull-down are:
  3361.  
  3362.   - mcmd  [macro expression]
  3363.  
  3364.     This command evaluates the specified macro expression, without
  3365.     prompting.
  3366.  
  3367.   - mrun  [macro source or compiled filename]
  3368.  
  3369.     This command evaluates the specified macro source or compiled file,
  3370.     without prompting. When done, the macros are discarded.
  3371.  
  3372.   - minc  [macro source or compiled filename]
  3373.  
  3374.     This command evaluates the specified macro source or compiled file,
  3375.     without prompting. When done, the macro code remains in the editor.
  3376.  
  3377.   - mcom  [macro source filename]
  3378.  
  3379.     This command compiles the specified macro source file, without
  3380.     prompting you for the filename.
  3381.  
  3382.  
  3383.   15-2  Miscellaneous Library Functions
  3384.   ─────────────────────────────────────
  3385.  
  3386.   The following commands are some additional library functions contained
  3387.   in ALIB.X for use with The Aurora Macro Language (see "The Aurora
  3388.   Macro Language Guide").
  3389.  
  3390.   - say  [message]  [options].
  3391.  
  3392.     Displays the string [message] on the window title bar. The following
  3393.     options may be specified:
  3394.  
  3395.       b - a short beep is sounded
  3396.       k - the user is prompted to enter a character. The character
  3397.           entered is returned.
  3398.                                                     Other Commands   63
  3399.  
  3400.  
  3401.   - mbox  [title]  [message]  [options].
  3402.  
  3403.     Displays the message [message] in a dialog box with an "Ok" button.
  3404.     The dialog box will have the window title [title]. If the option
  3405.     "b" is specified, a short beep is sounded.
  3406.  
  3407.   - ask  [prompt]  [title]  [width].
  3408.  
  3409.     Prompts the user for a string using the prompt description [prompt].
  3410.     This function returns the string entered at the prompt, or null if
  3411.     the prompt was cancelled.
  3412.  
  3413.     If user-defined prompts are configured to appear as dialog boxes
  3414.     (see "Configuration - Editing Preferences" 17-8), then [title] and
  3415.     [width] specify the dialog box title and width. If the width is not
  3416.     specified, the default width is 44.
  3417.  
  3418.   - askbox  [title]  [options]  [item 1]  [item 2]  [item 3] ...
  3419.  
  3420.     Displays a menu box with the title [title]. One of the following
  3421.     [options] can be specified:
  3422.  
  3423.       o - displays an "Ok/Cancel" menu box
  3424.       y - displays a "Yes/No/Cancel" menu box
  3425.       i - displays a menu box with the lines [item 1], [item 2], etc.
  3426.           To highlight a character in a menu item, prefix it with an
  3427.           ampersand (&) character.
  3428.  
  3429.     If no options are specified, the default is "i".
  3430.  
  3431.     This function returns the menu item selected (without the first
  3432.     character - the first character is usually blank), or null if the
  3433.     menu box was cancelled by pressing <Esc> or clicking on the menu box
  3434.     "close" (≡) icon.
  3435.  
  3436.   - keyx  [key prefix].
  3437.  
  3438.     Creates a new compound key prefix. Compound key prefixes can greatly
  3439.     increase the number of available function keys (see "Defining
  3440.     Compound Keys" 18-3).
  3441.  
  3442.   - moubegmrk  [x]  [y]  [options].
  3443.  
  3444.     This command allows you to create a marked block from within a mouse
  3445.     event handler function. [x] and [y] are virtual x and y coordinates
  3446.     which specify the starting point of the marked block on the screen
  3447.     ([x] and [y] are passed to the mouse event handler function by the
  3448.     editor).
  3449.                                                     Other Commands   64
  3450.  
  3451.  
  3452.     [options] specifies the type of mark to be created and can be one of
  3453.     the following:
  3454.  
  3455.       l - line mark
  3456.       r - column mark
  3457.       s - stream mark
  3458.  
  3459.   - moumovmrk  [x]  [y].
  3460.  
  3461.     This command extends the marked block created with the "moubegmrk"
  3462.     command above to virtual coordinates [x] and [y]  ([x] and [y] are
  3463.     passed to the mouse event handler by the editor).
  3464.  
  3465.   - mouendmrk  [x]  [y].
  3466.  
  3467.     This command extends the marked block created with the "moubegmrk"
  3468.     command above to virtual coordinates [x] and [y], and completes the
  3469.     mouse marking process ([x] and [y] are passed to the mouse event
  3470.     handler by the editor).
  3471.  
  3472.   - dn.
  3473.  
  3474.     Returns the filename or directory name at the cursor in a File
  3475.     Manager window.
  3476.  
  3477.   - winsizt  [left]  [top]  [right]  [bottom]  [reps]  [options].
  3478.  
  3479.     Resizes the current window to coordinates [left], [top], [right],
  3480.     [bottom]. Unlike the native function "winsiz", this function adjusts
  3481.     the title bar controls (see "The Aurora Macro Language Guide"). The
  3482.     following [options] may be specified:
  3483.  
  3484.       r - coordinates are relative to the current size
  3485.       a - coordinates are absolute (relative the "origin" - see below)
  3486.       s - scrolls the window to keep the cursor visible, if necessary
  3487.  
  3488.     If option "a" is specified, the following options may also be
  3489.     specified:
  3490.  
  3491.       d - origin is at the top left corner of the screen
  3492.       z - origin is at the virtual coordinates 0, 0
  3493.  
  3494.     If option "r" is specified, [reps] specifies the number of sizing
  3495.     repetitions (the default is 1). If no options are specified, option
  3496.     "r" is assumed.
  3497.  
  3498.                                                     Other Commands   65
  3499.  
  3500.   - qwrd  [char set].
  3501.  
  3502.     Returns the word at the cursor. [char set] is the character set used
  3503.     to define a word (see "Configuration - Character Sets" 17-14).
  3504.  
  3505.   - qwinmin.
  3506.  
  3507.     Returns "1" if the current window is minimized, otherwise it returns
  3508.     null.
  3509.  
  3510.   - qwinmax.
  3511.  
  3512.     Returns "1" if the current window is maximized, otherwise it returns
  3513.     null.
  3514.  
  3515.   - qtimdat
  3516.  
  3517.     Returns a string consisting of the current date and time, in the
  3518.     following format: MM/DD/YY HH:MMmm. For example, "08/30/93
  3519.     01:01am".
  3520.                                                    The File Manager   66
  3521.  
  3522.  
  3523.   16-1  The File Manager
  3524.   ──────────────────────
  3525.  
  3526.   The File Manager is a very useful feature of The Aurora Editor. You
  3527.   can use it to display a list of files in a directory and select one
  3528.   for editing. You can also use it to select several files from a
  3529.   directory and perform file management functions with the selected
  3530.   files, such as Copy, Print, Run, and others - all without leaving the
  3531.   editor.
  3532.  
  3533.   Any number of File Manager windows can be open at one time. Each File
  3534.   Manager window is independent of any other windows. For example, you
  3535.   could have one File Manager window showing a directory on drive C and
  3536.   another File Manager window showing a different directory on drive D.
  3537.  
  3538.   File Manager windows look and behave much like Edit windows in many
  3539.   respects. They are similar in appearance to Edit windows except that
  3540.   they display a directory listing instead of file text. They also have
  3541.   a drive menu bar immediately below the main menu bar, where you can
  3542.   select disk drives (network disk drives are highlighted). Note that
  3543.   File Manager window borders, title bars, title bar controls, menus,
  3544.   and scroll bars all work the same as they do for Edit windows.
  3545.  
  3546.   The following is an example of a File Manager window:
  3547.  
  3548.  
  3549.     Close Icon       North Title Bar
  3550.        │                   │
  3551.        │    North Title    │      Menu Bar        Min/Max/Restore Icons
  3552.        │        │          │        │                       │
  3553.     ▒▒▒│▒▒░░░░░░│░░░░░░░░░░│░░░░░░░░│░░░░░░░░░░░░░░░░░░░░░░░│▒▒▒▒▒
  3554.     ▒▒ ≡ C:\DOC\*.*        ┴        │                      └  ▒▒
  3555.     ▒▒ File  Window  Mark  Command  Sort  Print  Macro  Help    ▒▒
  3556.     ░░ <>  <A>  <B>  <C>  <D>  <E>                             ░░
  3557.     ░░ ..\                                                     ░░
  3558.     ░░ SUBDIR2\                   92-11-02  11:54:06pm  A      ▒───┐
  3559.     ░░ DEMO1    .BAK       31092  93-03-01   4:11:14am  A      ■░░ │
  3560.     ░░ DEMO1    .C         31317  93-03-01   4:15:10am  A      ▒░░ │
  3561.     ░░ HELLO    .TXT        2030  93-01-25   7:33:54pm  A      ░░ │
  3562.     ▒▒■▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ │
  3563.     ▒▒ 2,114,732 bytes in 114 files    ┬    │   ┌─ Aurora v1.11 ▒▒ │
  3564.     ▒▒▒▒▒▒░░░░│░░░░░░░░░░░░░░░░░░░░░░░░│░░░░│░░░│░░░░░░░░░░░▒▒▒▒▒▒ │
  3565.       │       │        │               │    │   │                  │
  3566.     Corner    │        │  South Title Bar   │  South Title         │
  3567.               │        │                    │                      │
  3568.        South Title    Border          Horz Scroll Bar     Vert Scroll Bar
  3569.                                                    The File Manager   67
  3570.  
  3571.  
  3572.   For each file, the File Manager displays:
  3573.  
  3574.     - the filename and extension
  3575.     - the file size (in bytes or k)
  3576.     - the date and time the file was last modified (or created)
  3577.     - the file attributes (A=archive, H=hidden, R=readonly, S=system)
  3578.  
  3579.   The "south title" of the File Manager window also displays the total
  3580.   number of files in the listing, and the total size (in bytes or k) of
  3581.   all the files.
  3582.  
  3583.  
  3584.   16-2  Creating a File Manager Window
  3585.   ────────────────────────────────────
  3586.  
  3587.   There are several ways to create a new File Manager window:
  3588.  
  3589.   - After entering "A" or "A3" on the DOS command line, enter the
  3590.     name of a directory or a filename with "wildcard" characters (*, ?).
  3591.  
  3592.     Examples:
  3593.       a *.*  <Enter>          - displays a listing of the current directory
  3594.       a .  <Enter>            - displays a listing of the current directory
  3595.       a c:\sys  <Enter>       - displays a listing of the "c:\sys" directory
  3596.       a c:\sys\a*.*  <Enter>  - displays a listing of the "c:\sys" directory
  3597.                                  of all filenames beginning with 'a'
  3598.       a hello.txt .  <Enter>  - creates an Edit window for "hello.txt"
  3599.                                  and a File Manager window listing the
  3600.                                  current directory
  3601.  
  3602.   - Enter the "askopen" <Alt-E> command ("Open.." from the "File" menu)
  3603.     to bring up the Open prompt, and then enter the name of a directory,
  3604.     or a filename with "wildcard" characters (see previous examples). If
  3605.     you press <Enter> from the Open prompt without entering a name, The
  3606.     Aurora Editor will create a File Manager window for the current
  3607.     directory.
  3608.  
  3609.   - Enter the "fmgr" <F4> command ("File Manager.." from the "File"
  3610.     menu) in the current Edit window to create a File Manager window for
  3611.     the current directory.
  3612.  
  3613.   - From an Edit window, position the mouse on the title bar and press
  3614.     the right mouse button to create a File Manager window for the
  3615.     current directory.
  3616.                                                    The File Manager   68
  3617.  
  3618.  
  3619.   16-3  Changing the Directory Listing in a File Manager Window
  3620.   ─────────────────────────────────────────────────────────────
  3621.  
  3622.   It is not always necessary to create a new File Manager window for
  3623.   each directory you wish to display. You can use a single File Manager
  3624.   window to display any drive or directory on your computer.
  3625.  
  3626.   To change the drive displayed in a File Manager window using the
  3627.   mouse, click the left mouse button on the desired drive letter on the
  3628.   drive menu. Using the keyboard, press the <Tab> key repeatedly until
  3629.   the desired drive letter is highlighted and then press <Enter>, or
  3630.   press the <Tab> key and then enter the drive letter.
  3631.  
  3632.   To change the directory displayed in the File Manager window, position
  3633.   the cursor to the desired directory and press <Enter>. To display the
  3634.   directory using the mouse, position the mouse cursor to the directory
  3635.   and double-click the left mouse button.
  3636.  
  3637.   To display the parent directory using the keyboard:
  3638.  
  3639.   - enter the "fpar" <Ctrl-Backspace> command, or:
  3640.   - position the cursor to the "..\" directory and press <Enter>, or:
  3641.   - use the <Tab> key to select the "" icon on the drive menu and
  3642.     then press <Enter>
  3643.  
  3644.   To display the parent directory using the mouse:
  3645.  
  3646.   - click the left mouse button on the "" icon on the drive menu, or
  3647.   - double-click the left mouse button on the "..\" directory
  3648.  
  3649.  
  3650.   16-4  File Manager Commands
  3651.   ───────────────────────────
  3652.  
  3653.   The Aurora Editor allows many commands such as Open, Move, Copy, etc,
  3654.   to performed on files displayed in a File Manager window. You can
  3655.   execute these commands by selecting them from the File Manager
  3656.   "Command" pulldown menu, or by positioning the cursor next to the file
  3657.   or directory and typing in the one-character "command code" for the
  3658.   command you wish to enter. The "command code" is just the highlighted
  3659.   character for the command on the "Command" pulldown menu. If you have
  3660.   previously "marked" any files (see "Marking Files in the File Manager
  3661.   16-5" below), then the command you selected will be performed on all
  3662.   the marked files in the File Manager window.
  3663.  
  3664.   The following section lists the File Manager commands. The one
  3665.   character "command codes" are shown in angled brackets:
  3666.                                                    The File Manager   69
  3667.  
  3668.  
  3669.   - fopen  "Open"  <e>, <o>, <z>, <Enter>, <Ctrl-Enter>
  3670.  
  3671.     This command opens the file and displays it in an Edit window. You
  3672.     can also open the file by double clicking the left mouse button over
  3673.     the file. If you open the file by entering the "z" command code, the
  3674.     new Edit window will be maximized.
  3675.  
  3676.     Note that the <Enter> key will only open the file at the cursor,
  3677.     even if multiple files are marked (see "Marking Files in the File
  3678.     Manager" 16-5). This can be useful for viewing files while marking
  3679.     them.
  3680.  
  3681.     Pressing <Ctrl-Enter> will open the file AND close the File Manager
  3682.     window. The Aurora Editor can be configured so that the File Manager
  3683.     window is always closed whenever a file is opened from it (see the
  3684.     "FmgrQuit" setting in "Configuration - Open Options" 17-6).
  3685.  
  3686.     If the left or right <Shift> key is pressed down when a file is
  3687.     opened from the File Manager, the new Edit window will be tiled
  3688.     (vertically) with all existing windows.
  3689.  
  3690.     If multiple files are marked for opening, the "e" and "z" command
  3691.     codes will load them all into one window. The "o" command code will
  3692.     load each file into a separate window.
  3693.  
  3694.   - fopen %b  "Open Binary"  <b>, <y>
  3695.  
  3696.     This command opens the file in binary mode. The "Binary Line Length"
  3697.     setting is used as the line length (see "Global Settings" 13-2). The
  3698.     <y> command code will load all marked files into only one window,
  3699.     whereas <b> will create a separate window for each file.
  3700.  
  3701.   - fopenk  "Open Key Macro"  <k>
  3702.  
  3703.     This command opens a key macro file. The file must be a valid key
  3704.     macro file. If any conflict exists between old and new key macro
  3705.     assignments, the new key assignments will replace the old key
  3706.     assignments.
  3707.  
  3708.   - fmov  "Move.."  <m>
  3709.  
  3710.     This command moves the file to another filename, directory, or
  3711.     drive. You will be prompted for the new name. You can specify a
  3712.     fully qualified filename, or just a drive or directory.
  3713.     Directories cannot be moved in version 1.11.
  3714.  
  3715.   - fcpy  "Copy.."  <c>
  3716.  
  3717.     This command copies the file to another filename, directory, or
  3718.     drive. You will be prompted for the new name. You can specify a
  3719.     fully qualified filename, or just a drive or directory.
  3720.     Directories cannot be copied in version 1.11.
  3721.                                                    The File Manager   70
  3722.  
  3723.  
  3724.   - fdel  "Delete"  <d>, <Del>
  3725.  
  3726.     This command deletes the file. The Aurora Editor can be configured
  3727.     to delete files with or without user confirmation (see the "ConDel"
  3728.     setting in "Configuration - Confirmations" 17-15). Empty Directories
  3729.     can also be deleted. Directories containing files or other
  3730.     directories cannot be deleted in version 1.11.
  3731.  
  3732.   - fren  "Rename.."  <n>
  3733.  
  3734.     This command changes the name of the file. You will be prompted for
  3735.     the new name. This command can also be used to change directory
  3736.     names.
  3737.  
  3738.     Note: the "Rename" command will ignore any marked files and only
  3739.     works on the file or directory at the cursor (see "Marking Files in
  3740.     the File Manager" 16-5).
  3741.  
  3742.   - frun %c  "Run"  <r>
  3743.  
  3744.     This command executes the file. The file must have a .COM, .EXE,
  3745.     or .BAT extension.
  3746.  
  3747.   - fprt  "Print"  <p>
  3748.  
  3749.     This command prints the file using the current printer settings (see
  3750.     "Configuration - Print Settings" 17-10). The contents of a directory
  3751.     can also be printed with this command.
  3752.  
  3753.   - fatt  "Attributes.."  <a>
  3754.  
  3755.     This command prompts you to change the attributes of a file.
  3756.     Directory attributes can also be changed.
  3757.  
  3758.   - ftch  "Touch"  <t>
  3759.  
  3760.     This command changes the file's date and time to the current date
  3761.     and time. Directories cannot be "touched".
  3762.  
  3763.  
  3764.   Other functions available on the File Manager "Command" menu are:
  3765.  
  3766.   - fcred  "Create Directory.."
  3767.  
  3768.     This command prompts you for a directory name and creates a new
  3769.     directory.
  3770.                                                    The File Manager   71
  3771.  
  3772.  
  3773.   - askscan  "Scan.."  <Ctrl-S>
  3774.  
  3775.     This command allows you to scan a directory or a "wildcard" file
  3776.     specification for a character string (see "Search and Replace"
  3777.     11-1).
  3778.  
  3779.  
  3780.   16-5  Marking Files in the File Manager
  3781.   ───────────────────────────────────────
  3782.  
  3783.   Marking files is a convenient way to execute a single File Manager
  3784.   command on many files in a File Manager window. For example, you can
  3785.   mark a number of files and then copy them all to another directory
  3786.   with only one copy command, instead of copying each file individually.
  3787.  
  3788.   To execute a File Manager command on marked files, simply mark the
  3789.   files with any of the commands listed below and then enter the desired
  3790.   command. The File Manager will automatically detect the presence of
  3791.   marked files and execute the command on the marked files instead of
  3792.   the file at the cursor. Marked files are indicated by a "" character
  3793.   to the left of the filename.
  3794.  
  3795.   You can use the following commands to mark and unmark files:
  3796.  
  3797.   - fmtog  "Mark Toggle"  <Space Bar>
  3798.  
  3799.     This command will toggle the current "marked state" of the file or
  3800.     directory at the cursor. If the file is already marked, it will be
  3801.     unmarked, otherwise it will be marked.
  3802.  
  3803.     Holding the <Shift> key down while using the <cursorup> and
  3804.     <cursordown> keys will also toggle the marked state of the file or
  3805.     directory at the cursor. This can be useful for marking or unmarking
  3806.     a series of contiguous files or directories.
  3807.  
  3808.   - using the mouse
  3809.  
  3810.     Hold the <Shift> key down while clicking the left mouse button over
  3811.     the file or directory at the cursor. This will toggle the marked
  3812.     state of the file or directory. With the left mouse button and
  3813.     <Shift> keys still pressed down, drag the mouse to toggle the marked
  3814.     state of series of contiguous files or directories.
  3815.  
  3816.   - fmrk  "Mark All"  <Alt-M>
  3817.  
  3818.     This command will mark all the files in the current File Manager
  3819.     window. Directories will not be marked.
  3820.                                                    The File Manager   72
  3821.  
  3822.  
  3823.   - fumrk  "Unmark All"  <Alt-U>
  3824.  
  3825.     This command will unmark any marked files and directories in the
  3826.     current File Manager window.
  3827.  
  3828.  
  3829.   16-6  File Manager Sorting
  3830.   ──────────────────────────
  3831.  
  3832.   The order of the files listed in the File Manager can be changed by
  3833.   selecting the desired sort order from the File Manager "Sort"
  3834.   pull-down menu. The configuration setting "FmgrSrt" determines the
  3835.   default sort order when a File Manager window is created (see
  3836.   "Configuration - Open Options" 17-6).
  3837.  
  3838.   You can sort File Manager windows by entering the "fsrt" command with
  3839.   the appropriate parameter:
  3840.  
  3841.   - fsrt %n  "Name"  <Alt-N>
  3842.  
  3843.     This command sorts the File Manager window by filename.
  3844.  
  3845.   - fsrt %s  "Size"  <Alt-S>
  3846.  
  3847.     This command sorts the File Manager window by file size in
  3848.     descending order.
  3849.  
  3850.   - fsrt %d  "Date-Time"  <Alt-D>
  3851.  
  3852.     This command sorts the File Manager window by file date and time in
  3853.     descending order.
  3854.  
  3855.   - fsrt %o  "OS Default"  <Alt-O>
  3856.  
  3857.     This command lists the File Manager window contents in the DOS
  3858.     default order.
  3859.                                                       Configuration   73
  3860.  
  3861.  
  3862.   17-1  Configuration
  3863.   ───────────────────
  3864.  
  3865.   The Aurora Editor is a highly configurable editor. There are
  3866.   configuration settings for video, mouse, window appearances, editing
  3867.   preferences, printing, desktop, and much more.
  3868.  
  3869.   Configuration settings are stored in the file ACFG.A as macro language
  3870.   variables. You can quickly edit this file by entering the "opena
  3871.   %acfg" command or by selecting the "Configuration.." menu item from
  3872.   the "Macro" pulldown menu.
  3873.  
  3874.   To change the value of a specific configuration setting, just locate
  3875.   the configuration setting in the file ACFG.A and use The Aurora Editor
  3876.   to type in the new value. Then save it <F3>, and enter the "setres"
  3877.   <Alt-F2> command ("Restore Settings" on the "Set" pull-down menu). You
  3878.   must exit and re-enter the editor for the new configuration setting to
  3879.   take effect.
  3880.  
  3881.   The following sections describe each of the configuration settings.
  3882.   Acceptable values for each configuration setting are shown in
  3883.   parentheses after the variable. Multiple values are separated by a
  3884.   slash ('/'), and value ranges are indicated with a hyphen ('-'). For
  3885.   configuration settings where "y/n" (Yes or No) can be specified,
  3886.   specifying "null" (blank) is equivalent to specifying "n".
  3887.  
  3888.  
  3889.   17-2  Configuration - Video
  3890.   ───────────────────────────
  3891.  
  3892.   - VidCols (0/40/80)
  3893.  
  3894.     The number of video columns. If zero is specified, The Aurora Editor
  3895.     uses the current DOS default value. The installation default is 0.
  3896.  
  3897.   - VidRows (0/12/14/21/25/28/43/50)
  3898.  
  3899.     The number of video rows. If zero is specified, The Aurora Editor
  3900.     uses the current DOS default value. The installation default is 0.
  3901.  
  3902.   - VidStr
  3903.  
  3904.     Specifies the string used to fill the video background. The string
  3905.     may be 0-50 chars long. You can use this setting to create
  3906.     interesting background patterns. The installation default is "░".
  3907.  
  3908.     If "VidStr" is null or not specified, The Aurora Editor will not
  3909.     change the screen background. The background will be whatever is on
  3910.     the screen when the editor is started.
  3911.  
  3912.   - VidSav (y/n)
  3913.  
  3914.     Specifies whether or not the DOS screen should be captured and
  3915.     restored when entering and exiting the editor (registered version
  3916.     only). The installation default is "y"
  3917.                                                       Configuration   74
  3918.  
  3919.  
  3920.   17-3  Configuration - Mouse
  3921.   ───────────────────────────
  3922.  
  3923.   - Mouse (y/n)
  3924.  
  3925.     Enables or disables mouse support. A text mode mouse driver
  3926.     (MOUSE.COM, MOUSE.SYS, etc) must have been previously installed. A
  3927.     special mouse driver may be required to operate the editor in a
  3928.     video modes with 132 or more columns. The installation default is
  3929.     "y".
  3930.  
  3931.   - MouReverse (y/n)
  3932.  
  3933.     Reverses the left and right mouse buttons. This can be useful for
  3934.     left-handed mouse users. The installation default is "n".
  3935.  
  3936.   - MouSenX (0-64)
  3937.  
  3938.     Mouse sensitivity on the x-axis. The installation default is 5 (the
  3939.     mouse driver default is 8).
  3940.  
  3941.   - MouSenY (0-64)
  3942.  
  3943.     Mouse sensitivity on the y-axis. The installation default is 12 (the
  3944.     mouse driver default is 16).
  3945.  
  3946.   - MouDst (0-128)
  3947.  
  3948.     Mouse speed doubling threshold. The installation default is 50 (the
  3949.     mouse driver default is 64).
  3950.  
  3951.   - MouseDouble (0-1000)
  3952.  
  3953.     The double click sensitivity. This setting specifies a time interval
  3954.     in milliseconds below which two consecutive mouse button clicks are
  3955.     considered to be a "double-click". The installation default value is
  3956.     300.
  3957.  
  3958.   - MouHold (0-1000)
  3959.  
  3960.     Specifies the amount of time in milliseconds that a mouse button can
  3961.     be held down on a scroll bar before repeating the scrolling
  3962.     operation. The installation default is 300.
  3963.  
  3964.   - MouDelay (0-1000)
  3965.  
  3966.     Adjusts the scrolling speed when using the mouse. A value of zero is
  3967.     no delay, 1000 is a one second delay. Using a value of zero on
  3968.     faster computers may cause the mouse to scroll too fast (8, 16, 24,
  3969.     or 32 are recommended if zero is too fast). The installation default
  3970.     is zero.
  3971.                                                         Configuration 75
  3972.  
  3973.  
  3974.   - MouMrkS (l/r/s)
  3975.  
  3976.     Determines the default type of block mark created by single-clicking
  3977.     the left mouse button, dragging the mouse, and releasing the left
  3978.     mouse button. You can specify one of the following options:
  3979.  
  3980.       l - line marks
  3981.       r - column or rectangular marks
  3982.       s - character or "stream" marks
  3983.  
  3984.     Note: you can override the default mouse marking type by pressing
  3985.     the <Alt>, <Ctrl>, or <Shift> keys when marking with the mouse (see
  3986.     "Using Marked Blocks" 8-1).
  3987.  
  3988.   - MouMrkD (l/r/s)
  3989.  
  3990.     Determines the type of block mark created by double-clicking the
  3991.     left mouse button, dragging the mouse, and releasing the left mouse
  3992.     button. See "MouMrkS" above for a description of valid options.
  3993.  
  3994.  
  3995.   17-4  Configuration - Word Processing
  3996.   ─────────────────────────────────────
  3997.  
  3998.   - TabWidth (0-15999)
  3999.  
  4000.     Specifies the number of columns between tab stops for Interval Tabs.
  4001.     The installation default is "8" (for a description of the TabWidth
  4002.     setting see "Global Settings" 13-2).
  4003.  
  4004.   - Tabs
  4005.  
  4006.     Specifies the column positions to use for tabbing with the "ctab"
  4007.     <Tab>, <Shift-Tab> command when "Variable Tabs" is set ON (for a
  4008.     description of the Variable Tabs setting see "Window Settings"
  4009.     13-1).
  4010.  
  4011.     The installation default is "4 8 16 24 50 72".
  4012.  
  4013.   - VarTabs (y/n)
  4014.  
  4015.     Specifies whether or not the Variable Tabs setting should default to
  4016.     "ON" for new Edit windows. The installation default is "n" (for a
  4017.     description of the Variable Tabs setting, see "Window Settings"
  4018.     13-1).
  4019.  
  4020.     If "SaveWin" is ON, Edit windows will remember the Variable Tabs
  4021.     setting when they are closed and restore it when they are re-opened.
  4022.                                                       Configuration   76
  4023.  
  4024.  
  4025.   - SmartTabs (y/n)
  4026.  
  4027.     Specifies whether or not the Smart Tabs setting should default to
  4028.     "ON" for new Edit windows. The installation default is "n" (for a
  4029.     description of the Smart Tabs setting, see "Window Settings" 13-1).
  4030.  
  4031.     If "SaveWin" is ON, Edit windows will remember the Smart Tabs
  4032.     setting when they are closed and restore it when they are re-opened.
  4033.  
  4034.   - WordWrap (y/n)
  4035.  
  4036.     Specifies whether or not the Word Wrap setting should default to
  4037.     "ON" for new Edit windows. The installation default is "n" (for a
  4038.     description of the Word Wrap setting, see "Window Settings" 13-1).
  4039.  
  4040.     If "SaveWin" is ON, Edit windows will remember the Word Wrap setting
  4041.     when they are closed and restore it when they are re-opened.
  4042.  
  4043.   - LMargin (1-16000)
  4044.  
  4045.     Specifies the default left margin for Edit windows. The installation
  4046.     default is 3 (for a description of the Left Margin setting, see
  4047.     "Global Settings" 13-2).
  4048.  
  4049.   - RMargin (1-16000)
  4050.  
  4051.     Specifies the default right margin for Edit windows. The
  4052.     installation default is 72 (for a description of the Right Margin
  4053.     setting, see "Global Settings" 13-2).
  4054.  
  4055.   - Indent (0-15999)
  4056.  
  4057.     Specifies the amount of columns to indent a paragraph when reflowing
  4058.     a marked block. The installation default is zero (for a description
  4059.     of the Paragraph Indent setting, see "Global Settings" 13-2).
  4060.  
  4061.  
  4062.   17-5  Configuration - Default File Extensions
  4063.   ─────────────────────────────────────────────
  4064.  
  4065.   Default file extensions allow you to open a file at an Open prompt
  4066.   without specifying a file extension. For example, if you frequently
  4067.   edit the file "MYFILE.C" from a directory of all ".C" files, and ".C"
  4068.   is one of your default file extensions, you need only enter the string
  4069.   "MYFILE" at the Open prompt to open "MYFILE.C".
  4070.                                                       Configuration   77
  4071.  
  4072.  
  4073.   You can specify any number of default file extensions. Just set the
  4074.   configuration setting "DefExt" to a list of the default extensions you
  4075.   wish to use, separated by one or more spaces. The default extensions
  4076.   are "tried" in the order they are listed. For example:
  4077.  
  4078.     DefExt    @"c h txt"
  4079.  
  4080.   Using the above example: if you specify a name with no extension at an
  4081.   Open prompt, the editor will first try to open the file with the
  4082.   extension ".c", then the extension ".h", and finally the extension
  4083.   ".txt".
  4084.  
  4085.   The following are the default file extensions at installation: "c h
  4086.   cpp doc txt a asm pas inc bat".
  4087.  
  4088.  
  4089.   17-6  Configuration - Open Options
  4090.   ──────────────────────────────────
  4091.  
  4092.   - OpenOpt (z/f/c/n/e)
  4093.  
  4094.     Sets the default size and placement of Edit and File Manager windows
  4095.     on the screen (and whether or not new windows are created). You can
  4096.     use one of the following values:
  4097.  
  4098.       z - new windows are always maximized
  4099.       f - new windows are always "full screen" (like maximized, but the
  4100.           window borders are visible)
  4101.       c - new windows are the same size as the topmost window and are
  4102.           cascaded to bottom and left of the topmost window
  4103.       n - new windows are minimized
  4104.       e - a new window is not created when opening files. The file is
  4105.           loaded into the current Edit window. This option is added
  4106.           automatically if the "OneWindow" configuration setting is ON
  4107.           (see "Configuration - Editing Preferences" 17-8).
  4108.  
  4109.     The installation default is 'f'.
  4110.  
  4111.     Note: If The Aurora Editor is configured to remember previous window
  4112.     sizes and positions, "OpenOpt" applies only to new Edit and File
  4113.     Manager windows which are not "remembered" from previous sessions
  4114.     (see the "SaveWin" configuration setting 17-11).
  4115.  
  4116.   - LineDlm
  4117.  
  4118.     Specifies a line delimiter string of one or two bytes for opening
  4119.     files in non-binary mode. The line delimiter string can be set
  4120.     dynamically during an edit session (see the "Line Delimiter" setting
  4121.     13-2). The installation default is "0D0Ah" (carriage return and
  4122.     linefeed).
  4123.                                                       Configuration   78
  4124.  
  4125.  
  4126.   - BinaryLength (1-16000)
  4127.  
  4128.     Specifies the line length to use when opening files in binary mode.
  4129.     The binary line length can also be set dynamically during an edit
  4130.     session (see the "Binary Line Length" setting 13-2). The
  4131.     installation default is 64.
  4132.  
  4133.   - TruncLength (0-16000)
  4134.  
  4135.     The length at which lines are truncated when opening files. A value
  4136.     of zero indicates that the maximum line length (16000) should be
  4137.     used. The installation default is zero.
  4138.  
  4139.   - FmgrOpt (d/f/h/k)
  4140.  
  4141.     Specifies options for displaying File Manager windows. You can use
  4142.     any combination of the following values:
  4143.  
  4144.       d - display subdirectories
  4145.       f - display directories first when sorting by name
  4146.       h - show hidden and system files
  4147.       k - show file sizes and totals in 1K increments
  4148.  
  4149.     The installation default is "dhf".
  4150.  
  4151.   - FmgrSrt (n/s/d)
  4152.  
  4153.     Specifies the default sort order for File Manager windows. You can
  4154.     use one of the following values:
  4155.  
  4156.       n - sort by name in ascending order
  4157.       s - sort by size in descending order
  4158.       d - sort by date and time in descending order
  4159.       (null) - no sort (OS default order)
  4160.  
  4161.     The installation default is "n".
  4162.  
  4163.   - FmgrQuit (y/n)
  4164.  
  4165.     Specifies whether or not the File Manager window is to be
  4166.     automatically closed whenever a file is opened from it. The
  4167.     installation default is "n".
  4168.  
  4169.     Note: entering the "fopen %q" <Ctrl-Enter> command from a File
  4170.     Manager window will also open the file at cursor AND close the File
  4171.     Manger window.
  4172.                                                       Configuration   79
  4173.  
  4174.  
  4175.   17-7  Configuration - Save Options
  4176.   ──────────────────────────────────
  4177.  
  4178.   - Backup (y/n)
  4179.  
  4180.     Specifies whether or not a file should be backed-up when it is
  4181.     saved. The backup location is determined by the "BakDir" setting
  4182.     (see below). The installation default is "y".
  4183.  
  4184.   - BakDir
  4185.  
  4186.     Specifies the path where backup copies of a file are to be placed
  4187.     when saving the file (the "Backup" setting must be set to "y"). If
  4188.     "BakDir" is null, then the backup copy is placed in the same
  4189.     directory as the original file, but with the extension defined by
  4190.     the "BakExt" configuration setting (see below). The installation
  4191.     default for BakDir is null.
  4192.  
  4193.   - BakExt
  4194.  
  4195.     Specifies the backup file extension to use when the "BakDir"
  4196.     configuration setting is null (see above). The installation default
  4197.     is "BAK".
  4198.  
  4199.   - SaveEOF (y/n)
  4200.  
  4201.     Specifies whether or not a Ctrl-Z (end-of-file) character is to be
  4202.     appending to the end of the file when saving. The installation
  4203.     default is "n".
  4204.  
  4205.   - AutoSave (0-2147483)
  4206.  
  4207.     Specifies the number of seconds between automatic saves for the
  4208.     current Edit window. A value of zero disables Autosave. The
  4209.     installation default is zero.
  4210.  
  4211.     Note: Automatic saves will occur only if the file has been modified
  4212.     since the last save.
  4213.  
  4214.  
  4215.   17-8  Configuration - Editing Preferences
  4216.   ─────────────────────────────────────────
  4217.  
  4218.   - UndoSize (0-2147483647)
  4219.  
  4220.     Sets the limit on the number of editing changes that can be undone
  4221.     with the Undo and Redo commands. The installation default is 300.
  4222.                                                       Configuration   80
  4223.  
  4224.  
  4225.   - HistSize (0-1000)
  4226.  
  4227.     Sets the limit on the number of previously entered prompt strings or
  4228.     "history" which can be retrieved for each prompt (see "Prompts"
  4229.     2-6). The installation default is 50.
  4230.  
  4231.     If the configuration setting "SaveWin" is ON, the HistSize setting
  4232.     also determines the maximum number of Edit and File Manager windows
  4233.     that will remember their positions and sizes.
  4234.  
  4235.     Note: if the "SaveHis" configuration setting is ON, and HistSize is
  4236.     set to very large values, it can lengthen the initial time to load
  4237.     the editor and the time to exit the editor. Don't set HistSize much
  4238.     higher than you really need.
  4239.  
  4240.   - ClipName
  4241.  
  4242.     Specifies the default clipboard name. The installation default is
  4243.     "clipboard".
  4244.  
  4245.   - Insert (y/n)
  4246.  
  4247.     Specifies whether or not the cursor will default to insert or
  4248.     overlay mode for new Edit windows and prompts. The installation
  4249.     default is "n".
  4250.  
  4251.     If "SaveWin" is ON, Edit windows will remember the insert mode when
  4252.     they are closed and restore it when they are re-opened.
  4253.  
  4254.   - EnterIns (i/s/null)
  4255.  
  4256.     Specifies what action to take in an Edit window when insert mode is
  4257.     ON and the "enteredit" <Enter> command is entered. You can choose
  4258.     one of the following values:
  4259.  
  4260.       s - splits the current line at the cursor and moves the cursor to
  4261.           the beginning of the next line
  4262.       i - inserts a new line and moves the cursor to the beginning of
  4263.           the new line.
  4264.       null - moves the cursor the beginning of the next line
  4265.  
  4266.     The installation default is OFF.
  4267.  
  4268.   - EnterOvl (i/s/null)
  4269.  
  4270.     Specifies what action to take in an Edit window when insert mode is
  4271.     OFF and the <Enter> key is pressed (See "EnterIns" above for a
  4272.     description of the valid values for this setting). The installation
  4273.     default is OFF.
  4274.                                                       Configuration   81
  4275.  
  4276.  
  4277.   - TabShift (y/n)
  4278.  
  4279.     Specifies whether or not text is to be shifted left or right with
  4280.     the cursor when insert mode is ON and the "ctab" commands <Tab>,
  4281.     <Shift-Tab> are is entered. The installation default is "y".
  4282.  
  4283.   - AutoIndent (y/n)
  4284.  
  4285.     Specifies whether or not the AutoIndent setting should default to ON
  4286.     for new Edit windows (see the "AutoIndent Setting" 13-1). The
  4287.     installation default is "y".
  4288.  
  4289.     If "SaveWin" is ON, Edit windows will remember the autoindent
  4290.     setting when they are closed and restore it when they are re-opened.
  4291.  
  4292.   - CopyLine (y/n)
  4293.  
  4294.     Specifies whether or not the "mcpy" command <Alt-C> ("Copy" on the
  4295.     "Block" pull-down menu) should repeat the current line if no marked
  4296.     block exists. The installation default is "y".
  4297.  
  4298.   - DelLine (y/n)
  4299.  
  4300.     Specifies whether or not the "mdel" command <Alt-D> ("Delete" on the
  4301.     "Block" pull-down menu) should delete the current line if no marked
  4302.     block exists. The installation default is "n".
  4303.  
  4304.   - AutoMark (p/l)
  4305.  
  4306.     Specifies the default mark that some block commands should use when
  4307.     no marked block exists. This can be especially useful for block
  4308.     commands like "mrfl %b" <Alt-R> ("Reflow" on the "Block" pull-down
  4309.     menu). For example, if AutoMark is set to "ptb", you can reflow a
  4310.     paragraph simply by placing the cursor in the paragraph and pressing
  4311.     <Alt-R>, without marking and unmarking a block.
  4312.  
  4313.     You can choose any one of the following values for AutoMark:
  4314.  
  4315.       p - mark the paragraph at the cursor
  4316.       l - mark the line at the cursor
  4317.       null - disable AutoMark
  4318.  
  4319.     If "p" is specified, one or both of the following values must also
  4320.     be specified:
  4321.  
  4322.       t - extend the mark from the cursor to the top of the paragraph
  4323.       b - extend the mark from the cursor to the bottom of the paragraph
  4324.                                                       Configuration   82
  4325.  
  4326.  
  4327.     Commands that use the AutoMark setting are:
  4328.  
  4329.       - mshf       "Shift Left", "Shift Right"
  4330.       - askmfill   "Fill"
  4331.       - mrfl       "Reflow", "Reflow Rjust"
  4332.       - mcase      "Uppercase", "Lowercase", "Flipcase"
  4333.       - msrt       "Sort"
  4334.       - mjust      "Left Justify", "Right Justify", "Center"
  4335.       - mfld       "Fold Block", "Fold Block Flat"
  4336.       - clpcpy     clipboard "Cut", "Cut Append", "Copy", "Copy Append"
  4337.  
  4338.     The installation default for AutoMark is "ptb".
  4339.  
  4340.   - MoveMark (y/n)
  4341.  
  4342.     Specifies whether or not the marked block is to be relocated along
  4343.     with the text during a block copy or overlay. The installation
  4344.     default is "y".
  4345.  
  4346.   - DrawMark (y/n)
  4347.  
  4348.     Specifies whether or not a marked block can be resized with the
  4349.     cursor keys after the mark is created. DrawMark applies only to the
  4350.     "mset" command (Mark Character, Mark Column, and Mark Line), not to
  4351.     "wrdmrk" (Mark Word), "meol" (Mark to EOL), or "mpgh" (Mark
  4352.     Paragraph). The installation default is "y".
  4353.  
  4354.   - CurHigh (y/n)
  4355.  
  4356.     Specifies whether or not the Edit window cursor line should be
  4357.     highlighted. The installation default is "y".
  4358.  
  4359.   - RepEnd (y/n)
  4360.  
  4361.     Specifies whether or not consecutively entered "ceol" <End> and
  4362.     "chome" <Home> commands should be repeated on the next or previous
  4363.     line. The installation default is "n".
  4364.  
  4365.   - DelJoin (y/n)
  4366.  
  4367.     Specifies whether or not the "delch" <Del> and "wrddel" <Ctrl-T>
  4368.     commands should join lines when the cursor is at the end of a line.
  4369.     The installation default is "y".
  4370.  
  4371.   - BakJoin (y/n)
  4372.  
  4373.     Specifies whether or not the "baksp" <BackSpace> command should join
  4374.     the current line with the previous line when the cursor is at column
  4375.     one. The installation default is "y".
  4376.                                                       Configuration   83
  4377.  
  4378.  
  4379.   - BakOvl (y/n)
  4380.  
  4381.     Specifies whether or not the "baksp" <BackSpace> command should
  4382.     overlay columns with blank spaces when insert mode is ON, instead of
  4383.     shifting text to the left. The installation default is "n".
  4384.  
  4385.   - LineStyle (0/1/2/3/4)
  4386.  
  4387.     Specifies the default Line Style to be used when Line Draw is ON.
  4388.     You can choose one of the following values:
  4389.  
  4390.       0 - single line
  4391.       1 - double horizontal line
  4392.       2 - double vertical line
  4393.       3 - double line
  4394.       4 - erase
  4395.  
  4396.     The installation default is 0.
  4397.  
  4398.   - FastCursor (0-5)
  4399.  
  4400.     Specifies the amount of extra lines or columns to scroll when
  4401.     attempting to move the cursor beyond the edge of the screen. The
  4402.     installation default is 0.
  4403.  
  4404.   - MatchChar (y/n)
  4405.  
  4406.     Specifies whether or not the Match Character setting should default
  4407.     to ON for new Edit windows (see the "Match Character Setting" 12.1).
  4408.     The installation default is "n".
  4409.  
  4410.     If "SaveWin" is ON, Edit windows will remember the Match Character
  4411.     setting when they are closed and restore it when they are re-opened.
  4412.  
  4413.   - MultCopy (y/n)
  4414.  
  4415.     Specifies whether or not The Aurora Editor will allow you to edit
  4416.     more than one copy of the same file (or display more than one File
  4417.     Manager window with the same directory listing) at the same time.
  4418.     The installation default is "n".
  4419.  
  4420.   - OneWindow (y/n)
  4421.  
  4422.     Specifies whether or not some editor commands will favor a
  4423.     many-to-one "file to window" ratio over a one-to-one "file to
  4424.     window" ratio. If this option is "y", the editor will behave in the
  4425.     following ways:
  4426.  
  4427.       1. new files will be loaded into the current Edit window
  4428.       2. the "fquit" <Alt-Q> command closes the file, not the window
  4429.       3. the "wquit" <Ctrl-K-Q> command closes the window, not the file
  4430.  
  4431.     The installation default is "n" (see also "Saving and Discarding
  4432.     Files" 5-2).
  4433.                                                       Configuration   84
  4434.  
  4435.  
  4436.   - CurOT (0-99)
  4437.  
  4438.     Specifies the top of the visible cursor in overlay mode (on a scale
  4439.     of 0-99 with 0 at the top). The installation default is 80.
  4440.  
  4441.   - CurOB (0-99)
  4442.  
  4443.     Specifies the bottom of the visible cursor in overlay mode. The
  4444.     installation default is 90.
  4445.  
  4446.   - CurIT (0-99)
  4447.  
  4448.     Specifies the top of the visible cursor in insert mode. The
  4449.     installation default is 50.
  4450.  
  4451.   - CurIB (0-99)
  4452.  
  4453.     Specifies the bottom of the visible cursor in insert mode. The
  4454.     installation default is 90.
  4455.  
  4456.   - SearchOpt (i/r/b/g/w)
  4457.  
  4458.     Specifies the default search options for the find, replace, and scan
  4459.     dialog boxes and prompts. The following options may be specified:
  4460.  
  4461.       i - ignore case
  4462.       r - search in reverse
  4463.       b - marked block only
  4464.       g - global search
  4465.       w - whole words only
  4466.  
  4467.     The installation default is "i" (ignore case). See the section
  4468.     "Search and Replace" (11-1) for a detailed description of search
  4469.     options.
  4470.  
  4471.   - ReplaceOpt (a)
  4472.  
  4473.     Specifies the default replace options for the replace dialog box or
  4474.     prompt. The following option may be specified:
  4475.  
  4476.       a - replace all occurrences without prompting
  4477.  
  4478.     See the section "Search and Replace" (11-1) for a detailed
  4479.     description of replace options. The installation default is null
  4480.     (verify replacement).
  4481.  
  4482.   - SearchWrap (y/n)
  4483.  
  4484.     Specifies whether or not the "finl" <Ctrl-L> (repeat last
  4485.     find/replace) command should wrap to the top or bottom of the file
  4486.     when the search string is not found. The installation default is
  4487.     "n".
  4488.                                                       Configuration   85
  4489.  
  4490.  
  4491.   - EOTLine
  4492.  
  4493.     This setting specifies the string to be used as the "End-of-Text"
  4494.     line on Edit windows. If NULL is specified, the default End-of-Text
  4495.     Line is:
  4496.  
  4497.       "≡≡≡≡≡≡ End of Text ≡≡≡≡≡≡".
  4498.  
  4499.     The installation default is null.
  4500.  
  4501.   - ExitOpen (y/n)
  4502.  
  4503.     Specifies whether or not the Open promt is to be displayed when
  4504.     closing the last window in an edit session. If "n" is specified,
  4505.     closing the last window will return you to DOS. The installation
  4506.     default is "n".
  4507.  
  4508.     Note: the open prompt is not displayed when exiting the editor via
  4509.     the "gquit %p" <Alt-X> or "gquit %f" commands.
  4510.  
  4511.   - Prompts
  4512.  
  4513.     This setting is a 20 character string with "switches" at each
  4514.     character position that allow you to individually tailor most editor
  4515.     prompts. Each character position or "switch" in the string
  4516.     corresponds to a specific editor prompt and may be one of the
  4517.     following values:
  4518.  
  4519.       0 - (command line prompt) The prompt occupies only one line and
  4520.           is displayed at the top or bottom of the window.
  4521.  
  4522.       1 - (one-line box) The prompt occupies 3 lines (2 borders and 1
  4523.           command line) and is displayed immediately above or below the
  4524.           current cursor position.
  4525.  
  4526.       2 - (dialog box) The prompt is a dialog box.
  4527.  
  4528.     The following table shows the Prompt string positions and the
  4529.     associated prompts:
  4530.  
  4531.        1 - open                       11 - macro command
  4532.        2 - open and insert            12 - key macro open
  4533.        3 - rename                     13 - key macro save
  4534.        4 - save as                    14 - place & go to bookmark
  4535.        5 - os command                 15 - block fill
  4536.        6 - save block                 16 - open binary
  4537.        7 - find
  4538.        8 - replace                    18 - global settings
  4539.        9 - go to line & column        19 - user defined prompts
  4540.       10 - scan files                 20 - file mgr command prompts
  4541.                                                       Configuration   86
  4542.  
  4543.  
  4544.     For example, the prompt string "01111102111111111111" will set the
  4545.     "Open" and "Find" prompts to be command line prompts, the "Replace"
  4546.     prompt to be a full dialog box, and all other prompts to be one-line
  4547.     boxes.
  4548.  
  4549.     The installation default is "11111111111111111111" (all one-line
  4550.     boxes).
  4551.  
  4552.  
  4553.   17-9  Configuration - Window Preferences
  4554.   ────────────────────────────────────────
  4555.  
  4556.   - EditStyle (n/s/m/h/v/1)
  4557.  
  4558.     Specifies the window features to be displayed for Edit windows. You
  4559.     can specify any of the following options:
  4560.  
  4561.       n - north title bar
  4562.       s - south title bar
  4563.       m - menu bar
  4564.       h - horizontal scroll bar
  4565.       v - vertical scroll bar
  4566.       1 - tool bar
  4567.  
  4568.     The installation default is "nsmhv".
  4569.  
  4570.   - EditTitle (n/s/l/c/r)
  4571.  
  4572.     Specifies the location of the Edit window title. You can specify one
  4573.     of the following:
  4574.  
  4575.       n - north title bar
  4576.       s - south title bar
  4577.  
  4578.     You can also specify one of the following:
  4579.  
  4580.       l - left justified
  4581.       c - centered
  4582.       r - right justified
  4583.  
  4584.     The installation default is "nl".
  4585.  
  4586.   - EditStatus (n/s/l/c/r)
  4587.  
  4588.     Specifies the location of the Edit window status line. (See
  4589.     "EditTitle" above for valid options). The installation default is
  4590.     "nr".
  4591.                                                       Configuration   87
  4592.  
  4593.  
  4594.   - EditCtls (n/s)
  4595.  
  4596.     Specifies which Edit window title bar is to contain the title bar
  4597.     controls. You can specify one of the following:
  4598.  
  4599.       n - north title bar
  4600.       s - south title bar
  4601.  
  4602.     The installation default is "n".
  4603.  
  4604.   - FmgrStyle (n/s/m/h/v)
  4605.  
  4606.     Specifies the window features to be displayed for File Manager
  4607.     windows (see "EditStyle" above for valid options). The installation
  4608.     default is "nsmhv".
  4609.  
  4610.   - FmgrTitle (n/s/l/c/r)
  4611.  
  4612.     Specifies the location of the File Manager window title. (See
  4613.     "EditTitle" above for valid options). The installation default is
  4614.     "nl".
  4615.  
  4616.   - FmgrStatus (n/s/l/c/r)
  4617.  
  4618.     Specifies the location of the File Manager window status line. (See
  4619.     "EditTitle" above for valid options). The installation default is
  4620.     "sl".
  4621.  
  4622.   - FmgrCtls (n/s)
  4623.  
  4624.     Specifies which File Manager window title bar is to contain the
  4625.     title bar controls (See "EditCtls" above for valid options). The
  4626.     installation default is "n".
  4627.  
  4628.   - TileNum (1-5)
  4629.  
  4630.     This option is used to configure the window "Tiling" commands. It
  4631.     specifies the maximum number of tiles which can exist on the screen
  4632.     before they are split in both horizontal and vertical directions.
  4633.     The installation default is 3.
  4634.  
  4635.  
  4636.   17-10  Configuration - Print Settings
  4637.   ─────────────────────────────────────
  4638.  
  4639.   Print settings are available for controlling the format of printed
  4640.   output. These settings can be changed during an edit session using the
  4641.   "askprtset" command (see "Printing" 12-1).
  4642.                                                       Configuration   88
  4643.  
  4644.  
  4645.   The Print Settings are:
  4646.  
  4647.   - PrtDev (PRN/LPT1/LPT2/LPT3/LPT4/COM1/COM2 or filename)
  4648.  
  4649.     Specifies the printer device to be used for printing. If a filename
  4650.     is specified, all printer output will be routed to the file. The
  4651.     installation default is "PRN".
  4652.  
  4653.   - PrtPag (0-65535)
  4654.  
  4655.     Specifies the "Lines per Page" of printed output. This includes the
  4656.     Top and Bottom Margins (if any). After the specified lines per page
  4657.     have been printed, a formfeed character (ascii 12) will be sent to
  4658.     the printer and a new page will be started.
  4659.  
  4660.     If PrtPag is zero, printing will be continuous (no formfeed
  4661.     characters will be sent to the printer). The current printer
  4662.     settings for Top Margin, Bottom Margin, Header, Footer, and Page
  4663.     number will be ignored. If you already have special printer control
  4664.     characters embedded in your text, it is probably best to set PrtPag
  4665.     to zero.
  4666.  
  4667.     The installation default for PrtPag is 0.
  4668.  
  4669.   - PrtSpace (0-65535)
  4670.  
  4671.     This setting determines the number of lines to advance after
  4672.     printing each line of output. A value of 1 generates single-spaced
  4673.     output, 2 generates double-spaced output, and so on. The
  4674.     installation default for PrtSpace is 1.
  4675.  
  4676.   - PrtCop (0-65535)
  4677.  
  4678.     This setting determines the number of copies to print. The
  4679.     installation default is 1.
  4680.  
  4681.   - PrtIni
  4682.  
  4683.     Specifies a printer-specific control string to be sent to the
  4684.     printer before each print operation. The installation default is
  4685.     null.
  4686.  
  4687.   - PrtTop (0-65535)
  4688.  
  4689.     Specifies the number of blank lines to precede the printed output at
  4690.     the top of each page. This value is included in the PrtPag ("Lines
  4691.     per Page") setting. The installation default is zero.
  4692.  
  4693.     This setting is ignored if PrtPag ("Lines per Page") is set to zero.
  4694.                                                       Configuration   89
  4695.  
  4696.  
  4697.   - PrtBot (0-65535)
  4698.  
  4699.     Specifies the number of blank lines to follow the printed output at
  4700.     the end of each page. This value is included in the PrtPag ("Lines
  4701.     per Page") setting. The installation default is zero.
  4702.  
  4703.     This setting is ignored if PrtPag ("Lines per Page") is set to zero.
  4704.  
  4705.   - PrtLeft (0-255)
  4706.  
  4707.     Specifies the number of blank columns to precede the printed output
  4708.     on each line. The installation default is zero.
  4709.  
  4710.   - PrtRight (0-65535)
  4711.  
  4712.     Specifies the column position at which to truncate each printed
  4713.     line. This column position is relative to column zero of the printed
  4714.     output, NOT the file being printed. If zero is specified, lines are
  4715.     not truncated. The installation default is zero.
  4716.  
  4717.   - PrtOpt (h/f/p/l/e/s)
  4718.  
  4719.     This setting allows you specify additional default print options.
  4720.     You can specify any of the following options:
  4721.  
  4722.       h - prints a "header" at the top of each page. The header is a
  4723.           left justified string consisting of the filename being printed
  4724.           and the current date and time. The header uses 2 or 3 lines of
  4725.           the printed output (the header line, an optional separator
  4726.           line, and a blank line). This option is ignored if PrtPag
  4727.           ("Lines per Page") is set to zero.
  4728.  
  4729.       f - prints a "footer" at the bottom of each page. The footer is a
  4730.           left justified string consisting of the filename being printed
  4731.           and the current date and time. The footer uses 2 or 3 lines of
  4732.           the printed output (a blank line, an optional separator line,
  4733.           and the footer line). This option is ignored if PrtPag ("Lines
  4734.           per Page") is set to zero.
  4735.  
  4736.       p - prints a right-justified page number on the header and footer
  4737.           lines. If neither a header or footer was specified, a blank
  4738.           header line is assumed. This option is ignored if PrtPag
  4739.           ("Lines per Page") is set to zero.
  4740.  
  4741.       l - prints the line number (in the file) at the beginning of each
  4742.           line.
  4743.  
  4744.       e - sends a formfeed character to the printer when printing is
  4745.           completed.
  4746.                                                       Configuration   90
  4747.  
  4748.  
  4749.       s - prints a separator line after the header line and before the
  4750.           footer line.
  4751.  
  4752.     The installation default is "hpes".
  4753.  
  4754.  
  4755.   17-11  Configuration - Desktop Options
  4756.   ──────────────────────────────────────
  4757.  
  4758.   - SaveWin (y/n)
  4759.  
  4760.     For Edit windows and File Manager windows, this setting specifies
  4761.     whether or not window sizes, positions, settings, and cursor
  4762.     positions should be remembered when the window is closed and
  4763.     restored when the window is re-opened. The installation default is
  4764.     "y".
  4765.  
  4766.     The "HistSize" setting determines the maximum number of windows that
  4767.     will remember their sizes, positions, etc. When a new Edit window or
  4768.     File Manager window is opened which is not a "remembered" window,
  4769.     the least-recently remembered window is "forgotten" and the new
  4770.     window becomes one of the "remembered" windows. The number of
  4771.     "remembered" windows does not exceed HistSize.
  4772.  
  4773.   - SaveHis (y/n)
  4774.  
  4775.     Specifies whether or not prompt history and window sizes, positions,
  4776.     etc should be saved in the file A.HIS when exiting the editor and
  4777.     reloaded when re-entering the editor. The installation default is
  4778.     "y".
  4779.  
  4780.   - SaveMac (y/n)
  4781.  
  4782.     Specifies whether or not all resident key macros should be saved in
  4783.     the file "A.MAC" when exiting the editor and reloaded when
  4784.     re-entering. The installation default is "n".
  4785.  
  4786.   - BootOpt (d/f/o)
  4787.  
  4788.     Determines what action to take when the editor is loaded without
  4789.     specifying a filename or directory after the "A" or "A3" command.
  4790.     One of the following options may be specified:
  4791.  
  4792.       d - restores the previous desktop layout. The "SaveHis"
  4793.           configuration setting must also be set to "y" (see above).
  4794.       f - opens a File Manager window for the current directory
  4795.       o - displays an Open prompt
  4796.  
  4797.     The installation default is "d".
  4798.                                                       Configuration   91
  4799.  
  4800.  
  4801.   17-12  Configuration - Memory Options
  4802.   ─────────────────────────────────────
  4803.  
  4804.   - MaxXMS (-1 - 67108)
  4805.   - MaxEMS (-1 - 32767)
  4806.  
  4807.     These configuration settings specify the maximum amount of Extended
  4808.     Memory "XMS" and Expanded Memory "EMS" (in kilobytes) which The
  4809.     Aurora Editor may use when conventional memory (below 640k) is
  4810.     exhausted. If the amount specified is "-1", or is more than what is
  4811.     available, then the maximum available amount will be used. If zero
  4812.     is specified, then the usage of XMS and/or EMS memory will be
  4813.     disabled. The installation default is -1 (available maximum) for
  4814.     both "MaxXMS" and "MaxEMS".
  4815.  
  4816.     XMS and EMS memory are not required by The Aurora Editor, but they
  4817.     can speed up some editing operations when you are working with
  4818.     single or multiple files which are larger than the amount of
  4819.     available conventional memory. In memory intensive situations, The
  4820.     Aurora Editor will first try to use XMS memory, then EMS memory, and
  4821.     then swap to disk if XMS or EMS are not available.
  4822.  
  4823.     Note that it can be useful to restrict the amount of XMS or EMS
  4824.     memory used by The Aurora Editor to less than the available maximum.
  4825.     The editor will use only as much XMS and EMS as it needs. However if
  4826.     you are editing large files and executing programs from within the
  4827.     editor that use XMS or EMS (or that use DOS extenders which use XMS
  4828.     or EMS), these programs may not run correctly if The Aurora Editor
  4829.     has already allocated all available XMS or EMS.
  4830.  
  4831.     To allow The Aurora Editor to use XMS or EMS memory, you must also
  4832.     have previously installed an XMS-compatible or EMS-compatible
  4833.     driver, such as QEMM-386 from Quarterdeck Office Systems or 386MAX
  4834.     from Qualitas, Inc. If you have DOS 5.0 or higher, you can use the
  4835.     XMS driver HIMEM.SYS and the EMS driver EMM386.EXE. Note that in
  4836.     order to use EMS memory, you must have at least a full contiguous
  4837.     64k page frame available. Check your EMS driver documentation for
  4838.     details on how to configure the page frame.
  4839.  
  4840.     When the XMS and EMS drivers are installed, you can display the
  4841.     amount of available XMS and EMS memory from DOS by using the DOS
  4842.     "MEM" command (DOS 5.0 or greater).
  4843.  
  4844.  
  4845.   - SwapFile1
  4846.  
  4847.     Specifies the swapfile name to be used for the primary swapfile. The
  4848.     installation default is "c:\aurora@1.swp".
  4849.                                                       Configuration   92
  4850.  
  4851.  
  4852.   - SwapFile2
  4853.  
  4854.     Specifies the swapfile name to be used for the secondary swapfile.
  4855.     The secondary swapfile should always be on a different drive than
  4856.     the primary swapfile. The secondary swapfile will only be used if
  4857.     there is not enough space on the drive containing the primary
  4858.     swapfile. The installation default is "d:\aurora@2.swp".
  4859.  
  4860.  
  4861.   17-13  Configuration - Other Options
  4862.   ────────────────────────────────────
  4863.  
  4864.   - KeyEnh (y/n)
  4865.  
  4866.     Enables or disables checking for the enhanced keyboard. This option
  4867.     must be set to "y" to use the enhanced keyboard keys (F11, F12, grey
  4868.     cursor keys, etc). The installation default is "y".
  4869.  
  4870.   - KeyPad (y/n)
  4871.  
  4872.     Enables or disables use of the grey keypad keys (*,-,+,Enter) as
  4873.     function keys (this option should be disabled if you are using the
  4874.     editor for keypad data entry). The installation default is "y".
  4875.  
  4876.   - KeyTrim (y/n)
  4877.  
  4878.     Specifies whether or not the keyboard buffer should be "trimmed" to
  4879.     prevent it from filling up on very slow machines. Turning this
  4880.     setting ON may cause some TSR's that fill the keyboard buffer to
  4881.     work incorrectly. The installation default is "n".
  4882.  
  4883.   - Sound (y/n)
  4884.  
  4885.     Enables or disables sound. The installation default is "y".
  4886.  
  4887.   - SoundF
  4888.  
  4889.     Specifies the sound frequency in hertz for beep messages. The
  4890.     installation default is 200.
  4891.  
  4892.  
  4893.   17-14  Configuration - Character Sets
  4894.   ─────────────────────────────────────
  4895.  
  4896.   Character sets are used to define a "word" for some editor commands.
  4897.   Characters sets are defined by creating a string containing all the
  4898.   characters in the character set. Character "ranges" can be abbreviated
  4899.   by using hyphens (-) (A-Z, 0-9, etc).
  4900.  
  4901.   The default character sets are:
  4902.  
  4903.   - CSetA
  4904.  
  4905.     The definition of a "word" for commands operating on normal text.
  4906.     The installation default is "a-zA-Z0-9_".
  4907.                                                       Configuration   93
  4908.  
  4909.  
  4910.   - CSetB
  4911.  
  4912.     The definition of a "word" for commands operating on file names. The
  4913.     installation default is "a-zA-Z0-9_()\-./\\@{}~:^!#$%&`'".
  4914.  
  4915.  
  4916.   - CSet
  4917.  
  4918.     The "default" character set. The installation default is "CSetA"
  4919.  
  4920.  
  4921.   The following commands use character sets:
  4922.  
  4923.     - wrddel  CSet     "Delete Word"       <Ctrl-T>
  4924.     - wrdmrk  CSet     "Mark Word"         <Alt-1>
  4925.     - cwrd @  CSet     (find left word)    <Ctrl-Left>
  4926.     - cwrd %r CSet     (find right word)   <Ctrl-Right>
  4927.     - wrdlod  CSetB    (load file at the cursor)   <Ctrl-]>
  4928.     - all search & replace commands using the "Whole Words"
  4929.       search option (uses "CSet")
  4930.  
  4931.  
  4932.   17-15  Configuration - Confirmations
  4933.   ────────────────────────────────────
  4934.  
  4935.   - ConDel (y/n)
  4936.  
  4937.     Specifies whether or not you wish to be prompted when files are
  4938.     deleted. The installation default is "y".
  4939.  
  4940.   - ConRpl (y/n)
  4941.  
  4942.     Specifies whether or not you wish to be prompted when files are
  4943.     replaced. The installation default is "y".
  4944.  
  4945.   - ConTch (y/n)
  4946.  
  4947.     Specifies whether or not you wish to be prompted when files are
  4948.     touched. The installation default is "y".
  4949.  
  4950.  
  4951.   17-16  Configuration - Colors
  4952.   ─────────────────────────────
  4953.  
  4954.   Colors attributes can be changed by setting the "coXXXX" configuration
  4955.   settings to the desired color attributes. You can change the color
  4956.   attributes for the screen background, Edit windows, File Manager
  4957.   windows, prompts, dialog boxes, and the screen border.
  4958.  
  4959.   See the comments in the configuration file ACFG.A for a description of
  4960.   each of color setting.
  4961.                                                       Configuration   94
  4962.  
  4963.  
  4964.   Color attributes for any desired color can be obtained by selecting a
  4965.   foreground number and a background number from the following tables,
  4966.   and adding them together:
  4967.  
  4968.     Foreground:                    Background:
  4969.  
  4970.     0 black     8 dark gray          0 black     128 dark gray
  4971.     1 blue      9 light blue        16 blue      144 light blue
  4972.     2 green    10 light green       32 green     160 light green
  4973.     3 cyan     11 light cyan        48 cyan      176 light cyan
  4974.     4 red      12 light red         64 red       192 light red
  4975.     5 magenta  13 light magenta     80 magenta   208 light magenta
  4976.     6 brown    14 yellow            96 brown     224 yellow
  4977.     7 gray     15 white            112 gray      240 white
  4978.  
  4979.   For example, the color attribute for a white foreground on a blue
  4980.   background is 31 (15 + 16).
  4981.  
  4982.  
  4983.   17-17  Configuration - Borders
  4984.   ──────────────────────────────
  4985.  
  4986.   - Shadow (0-5)
  4987.  
  4988.     Specifies the thickness of the "shadow" on the right and bottom
  4989.     window borders. Specifying a thickness greater than one may provide
  4990.     better 3-D contrast in "denser" video modes. The installation
  4991.     default is 1.
  4992.  
  4993.   - BorT
  4994.  
  4995.     Specifies the border type to use for Edit windows and File Manager
  4996.     windows. You can choose one of the following border types:
  4997.  
  4998.       0 - expanded borders
  4999.       1 - single line
  5000.       2 - double horizontal
  5001.       3 - double vertical
  5002.       4 - double line
  5003.       5 - blank
  5004.  
  5005.     If "expanded" is specified, you can further configure the border
  5006.     appearance with the BorX, BorY, and BorO configuration settings
  5007.     (see below). The installation default is 0 ("expanded").
  5008.  
  5009.   - BorX (0-10)
  5010.  
  5011.     Specifies the left and right border thickness for "expanded"
  5012.     borders. The installation default is 1.
  5013.                                                       Configuration   95
  5014.  
  5015.  
  5016.   - BorY (0-10)
  5017.  
  5018.     Specifies the top and bottom border thickness for "expanded"
  5019.     borders. The installation default is 1.
  5020.  
  5021.   - BorO (0-10)
  5022.  
  5023.     Specifies the amount of overlap on the "expanded" border corners.
  5024.     The installation default is 2.
  5025.                                              Redefining the Keyboard  96
  5026.  
  5027.  
  5028.   18-1  Redefining the Keyboard
  5029.   ─────────────────────────────
  5030.  
  5031.   Note: In reading through the following sections on redefining the
  5032.   keyboard, mouse, and menus, it may be helpful to refer to the "Aurora
  5033.   Editor Macro Language Guide" (AML.DOC).
  5034.  
  5035.   Key definitions and user macro code are stored in the file AKBD.A. You
  5036.   can quickly edit this file by entering the "opena %amen" command or by
  5037.   selecting the "Keys.." item from the "Macro" pulldown menu.
  5038.  
  5039.   The key definitions in AKBD.A are actually source code written in The
  5040.   Aurora Macro Language. They are compiled and included into A.X when
  5041.   the "setres" <Alt-F2> command ("Restore Settings" on the "Set"
  5042.   pull-down menu) is entered.
  5043.  
  5044.   A key definition is really just a function defined within an Aurora
  5045.   Macro Language "event object" in the file AKBD.A. There are event
  5046.   objects for Edit windows, File Manager windows, Prompt windows, etc.
  5047.   For example:
  5048.  
  5049.     obj  edit (
  5050.       fun  k_f9   (osshell).
  5051.       fun  k_a_q  (quit %p).
  5052.     ).
  5053.  
  5054.   The above code defines two keys in the event object "edit" (which is
  5055.   active only for Edit windows). The <F9> key is defined to shell out
  5056.   to DOS, and the <Alt-Q> key is defined to close the current window.
  5057.  
  5058.   To change an existing key definition, simply locate the key definition
  5059.   in the file AKBD.A and use The Aurora Editor to change the function
  5060.   name (the "key name") or the function body (the "key definition")
  5061.   according to your preferences. The function name must be a key
  5062.   function name recognized by The Aurora Editor (see below). Then save
  5063.   AKBD.A <F3>, and enter the "setres" <Alt-F2> command ("Restore
  5064.   Settings" on the "Set" pull-down menu). You must exit and re-enter the
  5065.   editor for the new key definition to take effect.
  5066.  
  5067.   To add a new key definition, first decide in what types of windows you
  5068.   would like the key you are defining to be active, and then determine
  5069.   the right "event object" for those window types. You can choose from
  5070.   the following event objects:
  5071.  
  5072.     edit      - Edit windows only
  5073.     fmgr      - File Manager windows only
  5074.     edit-fmgr - Edit windows and File Manager windows
  5075.     prompt    - prompts and edit fields, Edit windows
  5076.     win       - movable or sizable windows
  5077.     mon       - all windows
  5078.                                              Redefining the Keyboard  97
  5079.  
  5080.  
  5081.   After you have determined the appropriate event object, locate the
  5082.   definition for the event object in AKBD.A and enter the new key
  5083.   definition function in the event object body. You must use a key
  5084.   function name which The Aurora Editor recognizes. For example:
  5085.  
  5086.  
  5087.     obj  edit (                            // the "edit" event object
  5088.       .                                    // event object body
  5089.       .
  5090.       fun  k_f4     (file).                // new key definition
  5091.       .                                    // key func name <F4>
  5092.       .
  5093.     ).
  5094.  
  5095.   After you have entered the new key definition, save AKBD.A <F3>, and
  5096.   enter the "setres" <Alt-F2> command ("Restore Settings" on the "Set"
  5097.   pulldown menu). You must exit and re-enter the editor for the new key
  5098.   definition to take effect.
  5099.  
  5100.   Mouse event handlers can also be redefined in the same way as keyboard
  5101.   definitions. As with key definitions, mouse function names must be
  5102.   recognized by The Aurora Editor (see "Mouse Function Names" 18-4).
  5103.  
  5104.   If you change keyboard definitions, you will probably also want to
  5105.   change any menu definitions which show the old key definitions. You
  5106.   may also want to update The Aurora Editor Quick Reference (AREF.DOC).
  5107.  
  5108.  
  5109.   18-2  Key Function Names
  5110.   ────────────────────────
  5111.  
  5112.   When defining a key function, you must use a key name recognized by
  5113.   The Aurora Editor. By convention, key names are always in lower case
  5114.   and begin with "k_". <Ctrl> key names begin with "k_c_", <Alt> key
  5115.   names begin with "k_a_", and <Shift> key names begin with "k_s_".
  5116.  
  5117.   To use the enhanced keyboard function keys (f11, f12, etc), the
  5118.   "KeyEnh" configuration setting must be set to "y" (see "Configuration
  5119.   - Other Options" 17-13).
  5120.  
  5121.   The following key names are recognized by The Aurora Editor (enhanced
  5122.   keyboard keys are prefixed with an asterisk "*"):
  5123.                                                  Key Function Names   98
  5124.  
  5125.  
  5126.     Standard/Shift Keys      Control Keys           Alt Keys
  5127.     ───────────────────      ────────────           ────────
  5128.  
  5129.     k_f1    - k_f10          k_c_f1  - k_c_f10      k_a_f1  - k_a_f10
  5130.    *k_f11   - k_f12         *k_c_f11 - k_c_f12     *k_a_f11 - k_a_f12
  5131.     k_s_f1  - k_s_f10
  5132.    *k_s_f11 - k_s_f12
  5133.                              k_c_a - k_c_z          k_a_a - k_a_z
  5134.                                                     k_a_0 - k_a_9
  5135.     k_backspace              k_c_backspace         *k_a_backspace
  5136.     k_tab                   *k_c_tab               *k_a_tab
  5137.     k_s_tab
  5138.     k_enter                  k_c_enter             *k_a_enter
  5139.     k_esc                                          *k_a_esc
  5140.     k_left                   k_c_left              *k_a_left
  5141.     k_right                  k_c_right             *k_a_right
  5142.     k_up                    *k_c_up                *k_a_up
  5143.     k_down                  *k_c_down              *k_a_down
  5144.     k_home                   k_c_home              *k_a_home
  5145.     k_end                    k_c_end               *k_a_end
  5146.     k_pgdn                   k_c_pgup              *k_a_pgup
  5147.     k_pgup                   k_c_pgdn              *k_a_pgdn
  5148.     k_ins                   *k_c_ins               *k_a_ins
  5149.     k_del                   *k_c_del               *k_a_del
  5150.    *k_pad5                  *k_c_pad5
  5151.     k_s_pad5
  5152.                              k_c_\                 *k_a_\
  5153.                              k_c_[
  5154.                              k_c_]                 *k_a_]
  5155.                              k_c_2
  5156.                              k_c_6
  5157.                              k_c_-                  k_a_-
  5158.                              k_c_prtsc
  5159.                                                     k_a_=
  5160.                                                    *k_a_[
  5161.                                                    *k_a_`
  5162.                                                    *k_a_'
  5163.                                                    *k_a_;
  5164.                                                    *k_a_/
  5165.                                                    *k_a_.
  5166.                                                    *k_a_,
  5167.                             *k_c_grey/             *k_a_grey/
  5168.     k_grey*                 *k_c_grey*             *k_a_grey*
  5169.     k_grey-                 *k_c_grey-             *k_a_grey-
  5170.     k_grey+                 *k_c_grey+             *k_a_grey+
  5171.     *k_greyenter            *k_c_greyenter         *k_a_greyenter
  5172.  
  5173.     k_chr  (non-function keys)
  5174.                                              Defining Compound Keys   99
  5175.  
  5176.  
  5177.   18-3  Defining Compound Keys
  5178.   ────────────────────────────
  5179.  
  5180.   The Aurora Editor also allows you to define "compound keys". A
  5181.   Compound key is a combination of keys that act like one function key.
  5182.   Using compound keys can greatly expand the number of available
  5183.   function keys, or help to make The Aurora Editor behave like another
  5184.   editor or word processor.
  5185.  
  5186.   To form a compound key name, just concatenate all the composite key
  5187.   names (discarding the "k_" prefix), and separate them with the "+"
  5188.   character. Then attach the "k_" prefix to the beginning of the
  5189.   compound key.
  5190.  
  5191.   For example, "k_f1+f2" is the compound key name for <F1> and <F2>.
  5192.   "k_c_d+a_s+f3" is a compound key name composed of the 3 function keys:
  5193.   <Ctrl-D>, <Alt-S>, and <F3>. Compound keys names may also have a
  5194.   non-function key as the last key. For example, "k_c_d+k" is a valid
  5195.   compound key.
  5196.  
  5197.   To define compound keys, first define all keys in the compound key
  5198.   series (except for the last) as compound key "prefixes". This is done
  5199.   using the "keyx" function. For example:
  5200.  
  5201.     obj  edit (
  5202.        .
  5203.        .
  5204.       fun  k_c_d     (keyx "k_c_d").  //  define prefix "<Ctrl-D>"
  5205.       fun  k_c_d+f1  (save).          // "<Ctrl-D>,<F1>" saves the file
  5206.        .
  5207.        .
  5208.       fun  k_c_d+f2 (keyx "k_c_d+f2"). //  define prefix "<Ctrl-D>,<F2>"
  5209.       fun  k_c_d+f2+a  (quit %p).      // "<Ctrl-D>,<F2>,<A>" quits the file
  5210.        .
  5211.        .
  5212.     ).
  5213.  
  5214.   Note that when a function key is defined as a compound key prefix, it
  5215.   can no longer be used as a "normal" function key for another function.
  5216.  
  5217.   Compound keys have one restriction: you cannot assign a key macro to a
  5218.   compound key.
  5219.  
  5220.   The following compound key prefixes are defined in AKBD.A at
  5221.   installation time:
  5222.  
  5223.     - k_c_k  <Ctrl K>
  5224.     - k_c_o  <Ctrl O>
  5225.     - k_c_q  <Ctrl Q>
  5226.                                               Mouse Function Names   100
  5227.  
  5228.  
  5229.   18-4  Mouse Function Names
  5230.   ──────────────────────────
  5231.  
  5232.   You can configure the way Aurora Editor handles the mouse by creating
  5233.   your own "mouse event handler" functions. You can change existing
  5234.   mouse definitions and add new definitions just as you would for the
  5235.   keyboard (see "Redefining the Keyboard" 18-1).
  5236.  
  5237.   When defining a mouse handler function, you must use a mouse function
  5238.   name recognized by The Aurora Editor. By convention, mouse function
  5239.   names are always in lower case and begin with "m_". Mouse left button
  5240.   function names begin with "m_l_", mouse right button function names
  5241.   begin with "m_r_", and mouse center button function names begin with
  5242.   "m_c_".
  5243.  
  5244.   A mouse function name will have the suffix "_client" if the mouse
  5245.   event originated in a window client area, "_border" if it originated
  5246.   on a window border, or "_bkgnd" if it originated on the video
  5247.   background.
  5248.  
  5249.   The following mouse function names are recognized by The Aurora
  5250.   Editor:
  5251.  
  5252.     m_move_client         m_move_border         m_move_bkgnd
  5253.  
  5254.     m_l_down_client       m_l_down_border       m_l_down_bkgnd
  5255.     m_l_up_client         m_l_up_border         m_l_up_bkgnd
  5256.     m_l_dbclick_client    m_l_dbclick_border    m_l_dbclick_bkgnd
  5257.  
  5258.     m_c_down_client       m_c_down_border       m_c_down_bkgnd
  5259.     m_c_up_client         m_c_up_border         m_c_up_bkgnd
  5260.     m_c_dbclick_client    m_c_dbclick_border    m_c_dbclick_bkgnd
  5261.  
  5262.     m_r_down_client       m_r_down_border       m_r_down_bkgnd
  5263.     m_r_up_client         m_r_up_border         m_r_up_bkgnd
  5264.     m_r_dbclick_client    m_r_dbclick_border    m_r_dbclick_bkgnd
  5265.  
  5266.  
  5267.   18-5  Defining Menus
  5268.   ────────────────────
  5269.  
  5270.   The Aurora Editor has a fully configurable menu system. It's easy to
  5271.   redefine the menu bars and pull-down menus according to your own
  5272.   preferences for both Edit windows and File Manager windows. You can
  5273.   also redefine the Edit window tool bar to your own preferences.
  5274.  
  5275.   Menu definition macros are stored in the file AMEN.A. You can edit
  5276.   this file by entering the "opena %amen" command or selecting the
  5277.   "Menus.." item from the "Macro" pulldown menu.
  5278.                                                     Defining Menus   101
  5279.  
  5280.  
  5281.   The Menu definitions in AMEN.A are actually source code written in The
  5282.   Aurora Macro Language. They are compiled and included into A.X when
  5283.   the "setres" <Alt-F2> command ("Restore Settings" on the "Set"
  5284.   pull-down menu) is entered.
  5285.  
  5286.   The following function definition in AMEN.A sets the menu bar for all
  5287.   Edit windows:
  5288.  
  5289.     fun EditMen  (
  5290.       winmen @ @ %&File %&Window %&Block %&Search %F&old %&Edit
  5291.                  %&Clip %&Print %Se&t %M&acro %&Help.
  5292.       .
  5293.       .
  5294.     ).
  5295.  
  5296.   In the above function definition, the menu bar items are the "winmen"
  5297.   arguments "%&File" "%&Window", "%&Block", etc. Spaces must separate
  5298.   the menu bar items, and each menu bar item must be preceded by a "%"
  5299.   character, or enclosed in double quotes. Each menu bar item may also
  5300.   contain one ampersand (&) character which indicates that the character
  5301.   which follows is to be highlighted when displayed. To add or remove a
  5302.   menu bar item, just modify the "winmen" statement according to your
  5303.   preferences.
  5304.  
  5305.   To define a pull-down menu, use the "texmen" function. For example,
  5306.   consider the following menu-pulldown definition which creates the
  5307.   "Print" pulldown menu for all Edit windows:
  5308.  
  5309.     texmen  %editPrint
  5310.       " &Print            Alt-P|print"
  5311.       " Print &Block     Ctrl-P|print %m"
  5312.       " Print &Formfeed|prtstr (byte 12)"
  5313.       " Print &Settings..|askprtset".
  5314.  
  5315.   The first argument to the function texmen ("editPrint" in the example
  5316.   above) must be the name of the associated menu bar item prefixed by
  5317.   either "edit" for Edit windows or "fmgr" for File Manager windows.
  5318.   After the first argument, all arguments to "texmen" define a line on
  5319.   the pull-down menu. These arguments have the following format:
  5320.  
  5321.     "display string | macro"
  5322.  
  5323.   The display string may contain one ampersand (&) character to indicate
  5324.   which character is to be highlighted. For example, in the Print
  5325.   pull-down menu example above, the last pull down menu item definition
  5326.   is:
  5327.  
  5328.     " Print &Settings..|askprtset"
  5329.                                                     Defining Menus   102
  5330.  
  5331.  
  5332.   For this menu item, the display string is " Print Settings.." with the
  5333.   "S" highlighted. The macro is "askprtset", which is executed whenever
  5334.   the menu item is selected.
  5335.  
  5336.   To create a "separator line" on a menu, specify "─" as an argument to
  5337.   the "texmen" function.
  5338.  
  5339.   You can use the "mens" command to create "sub-menus". For example,
  5340.   consider the following argument to the texmen function:
  5341.  
  5342.     " Mar&k..              |mens %editMark"
  5343.  
  5344.   This argument will create the menu item " Mar&k..              " and
  5345.   associate it with the command "mens %editMark". When this menu item is
  5346.   selected, the menu "editMark" is displayed. "editMark" must be the
  5347.   name of another pull-down menu created with the "texmen" function.
  5348.  
  5349.   You can modify any menu bar or pull-down definition you wish, except
  5350.   for the first seven lines of the Edit window "Set" pulldown. The
  5351.   Aurora Editor expects these seven menu items to remain the same.
  5352.  
  5353.   When you have completed your changes to the file AMEN.A, save it <F3>,
  5354.   and enter the "setres" <Alt-F2> command ("Restore Settings" on the
  5355.   "Set" pulldown menu). You must exit and re-enter the editor for the
  5356.   new menu definitions to take effect.
  5357.  
  5358.  
  5359.   18-6  The Tool Bar
  5360.   ──────────────────
  5361.  
  5362.   Each Edit window in The Aurora Editor has an optional "Tool Bar" which
  5363.   can be displayed or hidden on demand using the following command from
  5364.   the "Window" pull-down menu:
  5365.  
  5366.   - wtool  "Tool Bar"  <Ctrl-F8>
  5367.  
  5368.     This command displays (or hides) the tool bar on the current Edit
  5369.     window. The tool bar is located underneath the Edit window menu and
  5370.     contains user-definable "controls" which allow easy access to
  5371.     commonly-used commands.
  5372.                                                        The ToolBar   103
  5373.  
  5374.  
  5375.     The default tool bar controls are:
  5376.  
  5377.     <≡> - close the tool bar
  5378.     <?> - tool bar help
  5379.     <*> - display a File Manager window
  5380.     </> - copy the current window
  5381.     <─> - split the current window horizontally
  5382.     <|> - split the current window vertically
  5383.     <o> - display the "Open" prompt
  5384.     <s> - save the file in the current Edit window
  5385.     <F> - display the "Find" prompt
  5386.     <f> - execute the last "Find" or "Replace" command
  5387.     <r> - reflow a block
  5388.     <«> - undo the last change
  5389.     <»> - redo the last change
  5390.     <>> - fold a block
  5391.     <<> - unfold a block
  5392.  
  5393.  
  5394.   The tool bar layout is defined in the file AMEN.A. You can edit this
  5395.   file by entering the "opena %amen" command or selecting the "Menus.."
  5396.   item from the "Macro" pulldown menu.
  5397.  
  5398.   The following function definition in AMEN.A sets the tool bar for all
  5399.   Edit windows:
  5400.  
  5401.     fun EditMen (
  5402.       .
  5403.       .
  5404.       winmen @ 1 %<&&≡> %<&&?> %<&&*> %<&&/> %<&&─> %<&&|> %<&&o> %<&&s>
  5405.                  %<&&F> %<&&f> %<&&r> %<&&«> %<&&»> %<&&>> %<&&<>.
  5406.     ).
  5407.  
  5408.   In the function definition above, the tool bar controls are the
  5409.   "winmen" arguments "%<&&≡>", "%<&&?>", etc. Spaces must separate the
  5410.   tool bar controls and each tool bar control must be preceded by the
  5411.   "%" character, or enclosed in double quotes. Each menu bar item may
  5412.   also contain two back-to-back ampersand (&&) characters which
  5413.   indicates that the character which follows is to be highlighted (with
  5414.   the title bar control color) when displayed . To add, change, or
  5415.   remove a tool bar control, just modify the "winmen" statement
  5416.   according to your preferences.
  5417.  
  5418.   When you define a new tool bar control, you must also define what
  5419.   macro command the tool bar control executes. This is done by adding a
  5420.   tool bar control function to the "edit" object in the file AKBD.A, in
  5421.   the same way that a key definition would be added (see "Defining the
  5422.   Keyboard 18-1). For example:
  5423.                                                        The ToolBar   104
  5424.  
  5425.  
  5426.     obj  edit (
  5427.  
  5428.       // tool bar
  5429.       fun  <*>  (fmgr).               // displays the File Manager
  5430.       fun  <o>  (askopen).            // displays the Open prompt
  5431.       .
  5432.       .
  5433.     ).
  5434.  
  5435.   When you have completed your changes to the file AMEN.A, save it <F3>,
  5436.   and enter the "setres" <Alt-F2> command ("Restore Settings" on the
  5437.   "Set" pulldown menu). You must exit and re-enter the editor for the
  5438.   new menu definitions to take effect.
  5439.                                               Command Line Options   105
  5440.  
  5441.  
  5442.   A-1  Command Line Options
  5443.   ─────────────────────────
  5444.  
  5445.   Command Line Options can be specified when loading The Aurora Editor
  5446.   at the DOS prompt. After the "A" or "A3" command, enter a hyphen (-)
  5447.   followed by the option and any option parameters. The following
  5448.   options are available:
  5449.  
  5450.     c - forces the editor to use color attributes
  5451.     m - forces the editor to use monochrome attributes
  5452.     x - forces the editor to the execute the macro filename following
  5453.         the "x" option (there is no space between the "x" and the
  5454.         filename). If you specify multiple "x" options on the same
  5455.         command line, they are executed in the order they are entered.
  5456.         Note that if the "x" option is specified, the default macro file
  5457.         A.X is not automatically executed.
  5458.  
  5459.   For example:
  5460.  
  5461.     C>A -m -xD:\A.X -xD:\TEST.X DOC1.TXT *.TXT
  5462.  
  5463.   In the above example, The Aurora Editor is invoked with monochrome
  5464.   attributes and the macro files D:\A.X and D:\TEST.X are executed. An
  5465.   Edit window is created for DOC1.TXT and a File Manager Window is
  5466.   created for *.TXT.
  5467.                                                   Performance Tips   106
  5468.  
  5469.  
  5470.   B-1  Performance Tips
  5471.   ─────────────────────
  5472.  
  5473.   The Aurora Editor is high performance software. However, the following
  5474.   tips may help you get the utmost in performance:
  5475.  
  5476.   - Use the maximum available conventional memory
  5477.  
  5478.     Configure DOS so that the maximum amount of "conventional" memory
  5479.     (below 1 megabyte) is available. This will decrease the likelihood
  5480.     that the editor will use slower XMS/EMS, or swap to disk.
  5481.  
  5482.   - Use a Disk Cache Program
  5483.  
  5484.     Using a disk caching program such as SMARTDRV can greatly increase
  5485.     overall editor performance. This includes initial loading of the
  5486.     editor, saving and loading of files, executing DOS programs from
  5487.     within the editor, and general virtual memory performance when XMS
  5488.     and EMS are not available.
  5489.  
  5490.   - Use XMS or EMS memory if available
  5491.  
  5492.     Using XMS and/or EMS memory can greatly increase performance when
  5493.     editing large files, and when executing DOS programs from within the
  5494.     editor (see "Configuration - Memory Options" 17-12). Many users may
  5495.     find XMS memory easier to use, since an XMS driver is already
  5496.     installed on many computers (in the form of HIMEM.SYS).
  5497.  
  5498.     When comparing XMS and EMS performance within The Aurora Editor
  5499.     (using the QEMM-386 memory manager), XMS is almost twice as fast as
  5500.     EMS when loading large files. EMS memory is nearly 30% faster than
  5501.     XMS when searching though large files.
  5502.  
  5503.   - Turn off "SaveMac" and "SaveHis"
  5504.  
  5505.     Turning off these two configuration settings can reduce the amount
  5506.     of time it takes to enter and exit the editor. Note that turning off
  5507.     "SaveHis" will prevent the editor from remembering window positions
  5508.     and sizes, cursor positions, etc. across edit sessions.
  5509.  
  5510.