home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / tinyed.zip / T.DOC < prev    next >
Text File  |  1993-12-01  |  103KB  |  3,404 lines

  1.  
  2.  
  3.                                                                 TDoc-v220-0
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.         ===================================================================
  35.         T
  36.         A Tiny Editor
  37.         Version 2.20
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.         (C) Copyright IBM Corporation 1987, 1993
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.         (C) Copyright IBM Corporation 1987, 1993
  68.         
  69.         
  70.         
  71.         -------------------------------------------------------------------
  72.         Version 2.20, October 1993
  73.  
  74.         This program was written by:
  75.  
  76.         Tim Baldwin
  77.         
  78.         IBM UK Laboratories
  79.         Hursley Park
  80.         Winchester
  81.         Hampshire, SO21 2JN
  82.         
  83.         BALDWINT at WINVMB
  84.         baldy@vnet.ibm.com
  85.  
  86.  
  87.         (C) Copyright IBM Corporation 1987, 1993.  All Rights Reserved.
  88.         -------------------------------------------------------------------
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.         
  128.                                                                     Page  i
  129.  
  130.         (C) Copyright IBM Corporation 1987, 1993
  131.         
  132.         
  133.         
  134.         PREFACE
  135.  
  136.         This document describes T, a very small yet very powerful full
  137.         screen text editor for IBM PC, PS/2 and compatible machines.  The
  138.         document is divided into two main parts: "Part 1.  Using The
  139.         Editor" and "Part 2.  Editor Reference".
  140.  
  141.         Part 1 is a user's guide containing these sections:
  142.  
  143.         -  "1.0 Introduction".  This describes T, giving an overview of its
  144.            main features and omissions.  It also details the hardware and
  145.            software you will need to be able to use the editor and how you
  146.            can obtain a copy.
  147.  
  148.         -  "2.0 Getting Started".  This describes how to install T ready
  149.            for use.  It describes how to start up the editor, what the
  150.            screen looks like and how to use the help files.
  151.  
  152.         -  "3.0 Editing".  Contains a brief introduction to editing with
  153.            T describing how to issue commands and functions and the basics
  154.            of editing.  This section also covers searching and replacing,
  155.            the word processing features, the box drawing functions and
  156.            describes how to print documents when using the editor.
  157.  
  158.         -  "4.0 Customising".  Describes how the editor can be customised
  159.            to change the screen colours, to redefine the keyboard functions
  160.            and to alter some other special editor settings.
  161.  
  162.         Part 2 is the reference manual, divided into three sections:
  163.  
  164.         -  "1.0 Commands".  An alphabetical list of all the editor's
  165.            commands.
  166.  
  167.         -  "2.0 Keyboard Functions".  An alphabetical list of all the
  168.            editor's keyboard functions.
  169.  
  170.         -  "3.0 Settings".  An alphabetical list of all the editor's
  171.            special settings.
  172.  
  173.         Two appendices are also included:
  174.  
  175.         -  "Appendix A.  Messages".  Lists all the messages T can produce,
  176.            giving the meaning of the message and any possible action that
  177.            may need to be taken.
  178.  
  179.         -  "Appendix B.  User Definable Keys".  Lists all the valid names
  180.            and shift- combinations for the user-definable keys.
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190.         
  191.                                                                 Preface  ii
  192.  
  193.         (C) Copyright IBM Corporation 1987, 1993
  194.         
  195.         
  196.         
  197.         CONTENTS
  198.  
  199.  
  200.           Part 1.  Using The Editor   . . . . . . . . . . . . . . . . . . 1
  201.  
  202.           1.0 Introduction  . . . . . . . . . . . . . . . . . . . . . . . 2
  203.           1.1 Features and Omissions  . . . . . . . . . . . . . . . . . . 2
  204.           1.2 What You Need   . . . . . . . . . . . . . . . . . . . . . . 3
  205.  
  206.           2.0 Getting Started   . . . . . . . . . . . . . . . . . . . . . 5
  207.           2.1 Starting T  . . . . . . . . . . . . . . . . . . . . . . . . 5
  208.           2.2 Screen Layout   . . . . . . . . . . . . . . . . . . . . . . 5
  209.           2.3 The Help File   . . . . . . . . . . . . . . . . . . . . . . 6
  210.  
  211.           3.0 Editing   . . . . . . . . . . . . . . . . . . . . . . . . . 7
  212.           3.1 Keyboard Functions  . . . . . . . . . . . . . . . . . . . . 7
  213.           3.2 Simple Editing  . . . . . . . . . . . . . . . . . . . . . . 7
  214.             3.2.1 The Command Line  . . . . . . . . . . . . . . . . . . . 7
  215.             3.2.2 The Data Area   . . . . . . . . . . . . . . . . . . . . 8
  216.             3.2.3 Marking and Copying Lines   . . . . . . . . . . . . . . 8
  217.             3.2.4 Saving Documents  . . . . . . . . . . . . . . . . . . . 9
  218.             3.2.5 Working On Several Documents  . . . . . . . . . . . . . 9
  219.           3.3 Search and Replace  . . . . . . . . . . . . . . . . . . . . 9
  220.             3.3.1 Searching   . . . . . . . . . . . . . . . . . . . . . . 9
  221.             3.3.2 Replacing  . . . . . . . . . . . . . . . . . . . . . . 10
  222.           3.4 Word Processing  . . . . . . . . . . . . . . . . . . . . . 10
  223.             3.4.1 The Right Margin and Word Spill  . . . . . . . . . . . 11
  224.             3.4.2 The ADJUST LINE Function   . . . . . . . . . . . . . . 11
  225.           3.5 Drawing Boxes  . . . . . . . . . . . . . . . . . . . . . . 12
  226.           3.6 Printing   . . . . . . . . . . . . . . . . . . . . . . . . 12
  227.             3.6.1 Printer Control Codes  . . . . . . . . . . . . . . . . 13
  228.             3.6.2 Printer Set Up   . . . . . . . . . . . . . . . . . . . 13
  229.  
  230.           4.0 Customising  . . . . . . . . . . . . . . . . . . . . . . . 14
  231.           4.1 The Custom Definition File   . . . . . . . . . . . . . . . 14
  232.             4.1.1 Colour and Mono Commands   . . . . . . . . . . . . . . 15
  233.             4.1.2 Key Commands   . . . . . . . . . . . . . . . . . . . . 17
  234.             4.1.3 Set Commands   . . . . . . . . . . . . . . . . . . . . 18
  235.           4.2 The HELP and USER Functions  . . . . . . . . . . . . . . . 18
  236.           4.3 The Enhanced Keyboard  . . . . . . . . . . . . . . . . . . 19
  237.  
  238.           Part 2.  Editor Reference  . . . . . . . . . . . . . . . . . . 20
  239.  
  240.           1.0 Commands   . . . . . . . . . . . . . . . . . . . . . . . . 21
  241.           1.1 APPEND   . . . . . . . . . . . . . . . . . . . . . . . . . 21
  242.           1.2 CHANGE   . . . . . . . . . . . . . . . . . . . . . . . . . 21
  243.           1.3 DOS  . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
  244.           1.4 EDIT   . . . . . . . . . . . . . . . . . . . . . . . . . . 22
  245.           1.5 FILE   . . . . . . . . . . . . . . . . . . . . . . . . . . 22
  246.           1.6 GET  . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
  247.           1.7 GOTO   . . . . . . . . . . . . . . . . . . . . . . . . . . 23
  248.           1.8 LOCATE   . . . . . . . . . . . . . . . . . . . . . . . . . 23
  249.           1.9 MARGIN   . . . . . . . . . . . . . . . . . . . . . . . . . 23
  250.           1.10 NAME  . . . . . . . . . . . . . . . . . . . . . . . . . . 24
  251.           1.11 PRINT   . . . . . . . . . . . . . . . . . . . . . . . . . 24
  252.  
  253.         
  254.                                                               Contents  iii
  255.  
  256.         (C) Copyright IBM Corporation 1987, 1993
  257.         
  258.         
  259.         
  260.           1.12 PUT   . . . . . . . . . . . . . . . . . . . . . . . . . . 24
  261.           1.13 QUIT  . . . . . . . . . . . . . . . . . . . . . . . . . . 24
  262.           1.14 SAVE  . . . . . . . . . . . . . . . . . . . . . . . . . . 25
  263.           1.15 VERSION   . . . . . . . . . . . . . . . . . . . . . . . . 25
  264.  
  265.           2.0 Keyboard Functions   . . . . . . . . . . . . . . . . . . . 26
  266.           2.1 ADJUST LINE  . . . . . . . . . . . . . . . . . . . . . . . 26
  267.           2.2 BACKSPACE  . . . . . . . . . . . . . . . . . . . . . . . . 26
  268.           2.3 CLEAR MARK   . . . . . . . . . . . . . . . . . . . . . . . 26
  269.           2.4 COMMAND TOGGLE   . . . . . . . . . . . . . . . . . . . . . 26
  270.           2.5 COPY MARK  . . . . . . . . . . . . . . . . . . . . . . . . 27
  271.           2.6 DELETE CHARACTER   . . . . . . . . . . . . . . . . . . . . 27
  272.           2.7 DELETE LINE  . . . . . . . . . . . . . . . . . . . . . . . 27
  273.           2.8 DELETE MARK  . . . . . . . . . . . . . . . . . . . . . . . 27
  274.           2.9 DOWN   . . . . . . . . . . . . . . . . . . . . . . . . . . 27
  275.           2.10 EDIT  . . . . . . . . . . . . . . . . . . . . . . . . . . 27
  276.           2.11 END OF FILE   . . . . . . . . . . . . . . . . . . . . . . 27
  277.           2.12 END OF LINE   . . . . . . . . . . . . . . . . . . . . . . 28
  278.           2.13 END OF MARK   . . . . . . . . . . . . . . . . . . . . . . 28
  279.           2.14 END OF SCREEN   . . . . . . . . . . . . . . . . . . . . . 28
  280.           2.15 ESCAPE  . . . . . . . . . . . . . . . . . . . . . . . . . 28
  281.           2.16 FILE  . . . . . . . . . . . . . . . . . . . . . . . . . . 28
  282.           2.17 FOCUS   . . . . . . . . . . . . . . . . . . . . . . . . . 29
  283.           2.18 HELP  . . . . . . . . . . . . . . . . . . . . . . . . . . 29
  284.           2.19 INSERT LINE   . . . . . . . . . . . . . . . . . . . . . . 29
  285.           2.20 INSERT TOGGLE   . . . . . . . . . . . . . . . . . . . . . 29
  286.           2.21 JOIN LINE   . . . . . . . . . . . . . . . . . . . . . . . 29
  287.           2.22 LEFT  . . . . . . . . . . . . . . . . . . . . . . . . . . 29
  288.           2.23 MARK LEFT   . . . . . . . . . . . . . . . . . . . . . . . 30
  289.           2.24 MARK RIGHT  . . . . . . . . . . . . . . . . . . . . . . . 30
  290.           2.25 MOVE MARK   . . . . . . . . . . . . . . . . . . . . . . . 30
  291.           2.26 NAME  . . . . . . . . . . . . . . . . . . . . . . . . . . 30
  292.           2.27 NEW LINE  . . . . . . . . . . . . . . . . . . . . . . . . 30
  293.           2.28 NEXT FILE   . . . . . . . . . . . . . . . . . . . . . . . 30
  294.           2.29 NEXT LINE   . . . . . . . . . . . . . . . . . . . . . . . 31
  295.           2.30 NEXT TAB  . . . . . . . . . . . . . . . . . . . . . . . . 31
  296.           2.31 NEXT WORD   . . . . . . . . . . . . . . . . . . . . . . . 31
  297.           2.32 NOTHING   . . . . . . . . . . . . . . . . . . . . . . . . 31
  298.           2.33 PAGE DOWN   . . . . . . . . . . . . . . . . . . . . . . . 31
  299.           2.34 PAGE UP   . . . . . . . . . . . . . . . . . . . . . . . . 31
  300.           2.35 PREVIOUS FILE   . . . . . . . . . . . . . . . . . . . . . 31
  301.           2.36 PREVIOUS TAB  . . . . . . . . . . . . . . . . . . . . . . 32
  302.           2.37 PREVIOUS WORD   . . . . . . . . . . . . . . . . . . . . . 32
  303.           2.38 QUIT  . . . . . . . . . . . . . . . . . . . . . . . . . . 32
  304.           2.39 REPEAT FIND   . . . . . . . . . . . . . . . . . . . . . . 32
  305.           2.40 REPEAT LINE   . . . . . . . . . . . . . . . . . . . . . . 32
  306.           2.41 RIGHT   . . . . . . . . . . . . . . . . . . . . . . . . . 32
  307.           2.42 SAFE FILE   . . . . . . . . . . . . . . . . . . . . . . . 32
  308.           2.43 SAVE  . . . . . . . . . . . . . . . . . . . . . . . . . . 33
  309.           2.44 SCROLL DOWN   . . . . . . . . . . . . . . . . . . . . . . 33
  310.           2.45 SCROLL LEFT   . . . . . . . . . . . . . . . . . . . . . . 33
  311.           2.46 SCROLL RIGHT  . . . . . . . . . . . . . . . . . . . . . . 33
  312.           2.47 SCROLL UP   . . . . . . . . . . . . . . . . . . . . . . . 33
  313.           2.48 SET MARK  . . . . . . . . . . . . . . . . . . . . . . . . 33
  314.           2.49 SPLIT LINE  . . . . . . . . . . . . . . . . . . . . . . . 34
  315.  
  316.         
  317.                                                                Contents  iv
  318.  
  319.         (C) Copyright IBM Corporation 1987, 1993
  320.         
  321.         
  322.         
  323.           2.50 START OF LINE   . . . . . . . . . . . . . . . . . . . . . 34
  324.           2.51 TOP OF FILE   . . . . . . . . . . . . . . . . . . . . . . 34
  325.           2.52 TOP OF MARK   . . . . . . . . . . . . . . . . . . . . . . 34
  326.           2.53 TOP OF SCREEN   . . . . . . . . . . . . . . . . . . . . . 34
  327.           2.54 TRUNCATE LINE   . . . . . . . . . . . . . . . . . . . . . 34
  328.           2.55 UNDO  . . . . . . . . . . . . . . . . . . . . . . . . . . 34
  329.           2.56 UP  . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
  330.           2.57 USER  . . . . . . . . . . . . . . . . . . . . . . . . . . 35
  331.  
  332.           3.0 Settings   . . . . . . . . . . . . . . . . . . . . . . . . 36
  333.           3.1 AUTOMATIC INDENT   . . . . . . . . . . . . . . . . . . . . 36
  334.           3.2 CGA SNOW   . . . . . . . . . . . . . . . . . . . . . . . . 36
  335.           3.3 COMMAND RECALL   . . . . . . . . . . . . . . . . . . . . . 37
  336.           3.4 COMMAND TOGGLE   . . . . . . . . . . . . . . . . . . . . . 37
  337.           3.5 EXACT MATCH  . . . . . . . . . . . . . . . . . . . . . . . 37
  338.           3.6 FOCUS LINE   . . . . . . . . . . . . . . . . . . . . . . . 37
  339.           3.7 HELP COMMAND   . . . . . . . . . . . . . . . . . . . . . . 38
  340.           3.8 HELP LINE  . . . . . . . . . . . . . . . . . . . . . . . . 38
  341.           3.9 INSERT CURSOR  . . . . . . . . . . . . . . . . . . . . . . 38
  342.           3.10 INSERT TOGGLE   . . . . . . . . . . . . . . . . . . . . . 38
  343.           3.11 KEYBOARD TYPE   . . . . . . . . . . . . . . . . . . . . . 39
  344.           3.12 LINE END  . . . . . . . . . . . . . . . . . . . . . . . . 39
  345.           3.13 REPLACE CURSOR  . . . . . . . . . . . . . . . . . . . . . 39
  346.           3.14 RIGHT MARGIN  . . . . . . . . . . . . . . . . . . . . . . 40
  347.           3.15 SEGMENT SIZE  . . . . . . . . . . . . . . . . . . . . . . 40
  348.           3.16 TAB EXPAND  . . . . . . . . . . . . . . . . . . . . . . . 40
  349.           3.17 TAB SPACING   . . . . . . . . . . . . . . . . . . . . . . 40
  350.           3.18 USER COMMAND  . . . . . . . . . . . . . . . . . . . . . . 41
  351.  
  352.           Appendix A.  Messages  . . . . . . . . . . . . . . . . . . . . 42
  353.  
  354.           Appendix B.  User Definable Keys   . . . . . . . . . . . . . . 46
  355.  
  356.  
  357.  
  358.  
  359.  
  360.  
  361.  
  362.  
  363.  
  364.  
  365.  
  366.  
  367.  
  368.  
  369.  
  370.  
  371.  
  372.  
  373.  
  374.  
  375.  
  376.  
  377.  
  378.  
  379.         
  380.                                                                 Contents  v
  381.  
  382.         (C) Copyright IBM Corporation 1987, 1993
  383.         
  384.         
  385.         
  386.                                                   Part 1.  Using The Editor
  387.  
  388.  
  389.  
  390.  
  391.  
  392.  
  393.  
  394.  
  395.  
  396.  
  397.  
  398.  
  399.  
  400.  
  401.  
  402.  
  403.  
  404.  
  405.  
  406.  
  407.  
  408.  
  409.  
  410.  
  411.  
  412.  
  413.  
  414.  
  415.  
  416.  
  417.  
  418.  
  419.  
  420.  
  421.  
  422.  
  423.  
  424.  
  425.  
  426.  
  427.  
  428.  
  429.  
  430.  
  431.  
  432.  
  433.  
  434.  
  435.  
  436.  
  437.  
  438.  
  439.  
  440.  
  441.  
  442.         
  443.                                                Part 1.  Using The Editor  1
  444.  
  445.         (C) Copyright IBM Corporation 1987, 1993
  446.         
  447.         
  448.         
  449.         1.0 INTRODUCTION
  450.  
  451.         T is a full screen text editor for the IBM PC, PS/2 and compatible
  452.         family of machines.  Two versions of the editor are supplied, one
  453.         to run under DOS and the other to run under OS/2.  It is designed
  454.         to be quick and easy to learn and simple to use, while remaining
  455.         both extremely powerful and very small - the DOS version being
  456.         under 10,000 bytes in size.
  457.  
  458.         A very small editor has a number of advantages:
  459.  
  460.         -  It may be used on machines with a limited amount of memory.
  461.            Even a PC with a full 640K of base memory can have a large
  462.            amount of this used up when a number of
  463.            terminate-and-stay-resident type programs are installed - local
  464.            area network drivers and terminal emulators are prime examples.
  465.  
  466.         -  It may be used for editing large files that would be too large
  467.            to load into memory with a bigger editor.
  468.  
  469.         -  It may be invoked from inside other programs yet still have
  470.            enough free memory to edit a good sized file.
  471.  
  472.         -  It loads and starts very quickly indeed.  If you just wish to
  473.            make a small change to your CONFIG.SYS file it can be very
  474.            frustrating to spend time waiting for a large word processor to
  475.            start up.
  476.  
  477.         -  It can be placed on a diskette without consuming much space.
  478.            This can be useful for those "emergency" diskettes used to boot
  479.            up and fix a system when all else fails.
  480.  
  481.         -  It can be placed on a RAM disk without consuming much space.
  482.            This can be useful for palmtop type machines which often have no
  483.            disk drives at all.
  484.  
  485.  
  486.  
  487.         1.1 FEATURES AND OMISSIONS
  488.  
  489.         T has the following main features:
  490.  
  491.         -  Very small size, under 10,000 bytes.
  492.  
  493.         -  Fast, easy to use, full screen interface that adapts
  494.            automatically to use the full size of the display.
  495.  
  496.         -  Edits very large files, subject to available memory.
  497.  
  498.         -  Edits very long lines, up to 65,528 characters.
  499.  
  500.         -  Edits any number of files at once, subject to available memory.
  501.  
  502.         -  On screen help
  503.  
  504.  
  505.         
  506.                                                             Introduction  2
  507.  
  508.         (C) Copyright IBM Corporation 1987, 1993
  509.         
  510.         
  511.         
  512.         -  Very fast search and replace functions.
  513.  
  514.         -  Customisable keyboard mapping and screen colours.
  515.  
  516.         -  Any DOS or OS/2 command may be run without leaving the editor.
  517.  
  518.         -  A "right hand margin" and "word-spill" to allow some simple word
  519.            processing to be performed.
  520.  
  521.         -  Native DOS and OS/2 versions, which also run under Windows and
  522.            Windows/NT.
  523.  
  524.         -  OS/2 version has full support for the HPFS.
  525.  
  526.         To keep T small it necessarily lacks some of the more advanced
  527.         features of larger editors and word processors.  In particular:
  528.  
  529.         -  Copying and moving data can only be performed on blocks of one
  530.            or more whole lines.
  531.  
  532.         -  Word processing capabilities are very limited.
  533.  
  534.         -  No programmability, although the appearance and function may be
  535.            customised.
  536.  
  537.         -  No direct support for the mouse or a menu system.
  538.  
  539.  
  540.  
  541.         1.2 WHAT YOU NEED
  542.  
  543.         T should run on any IBM PC, PS/2 or compatible machine.  It needs
  544.         PC-DOS or MS-DOS version 2.00 or later, or any version of OS/2.
  545.         The DOS version may also be run as a DOS application under
  546.         Microsoft Windows and both the DOS and OS/2 versions may be run
  547.         under Windows/NT.
  548.  
  549.         When used with OS/2 or with appropriate versions of Windows it may
  550.         be run from both full screen and windowed command prompts, or may
  551.         be started by placing an object in one of the OS/2 folders or
  552.         Windows Program Manager groups.
  553.  
  554.         T is available inside IBM by requesting the T PACKAGE from PCTOOLS.
  555.         This version is for "IBM Internal Use Only" and may not be
  556.         distributed outside the company.
  557.  
  558.         T is also made freely available outside IBM through the Employee
  559.         Written Software programme.  The file TINYED.ZIP can be obtained
  560.         through CompuServe, from many BBS systems and via anonymous FTP
  561.         from a number of sites (e.g.  software.watson.ibm.com).  The ZIP
  562.         file should be unpacked with PKUNZIP to create the full package.
  563.  
  564.         The T package contains:
  565.  
  566.         T.EXE        This is the DOS version of the editor program.
  567.  
  568.         
  569.                                                             Introduction  3
  570.  
  571.         (C) Copyright IBM Corporation 1987, 1993
  572.         
  573.         
  574.         
  575.         T2.EXE       This is the OS/2 version of the editor program.
  576.  
  577.         TKEY.EXE     This is the customiser program.  It will run under
  578.                      both DOS and OS/2 and will customise either version of
  579.                      the editor.
  580.  
  581.         THELP.HLP    This is a simple help file for the standard editor
  582.                      configuration.
  583.  
  584.         TKEYS.DEF    This is a sample custom definition file that describes
  585.                      the standard editor configuration.
  586.  
  587.         T.DOC        This is the full documentation in a plain ASCII
  588.                      printable format.
  589.  
  590.         In addition the publicly available TINYED.ZIP package contains the
  591.         following important file:
  592.  
  593.         LICENSE.TXT  This contains the terms and conditions under which IBM
  594.                      makes the package available.
  595.  
  596.  
  597.  
  598.  
  599.  
  600.  
  601.  
  602.  
  603.  
  604.  
  605.  
  606.  
  607.  
  608.  
  609.  
  610.  
  611.  
  612.  
  613.  
  614.  
  615.  
  616.  
  617.  
  618.  
  619.  
  620.  
  621.  
  622.  
  623.  
  624.  
  625.  
  626.  
  627.  
  628.  
  629.  
  630.  
  631.         
  632.                                                             Introduction  4
  633.  
  634.         (C) Copyright IBM Corporation 1987, 1993
  635.         
  636.         
  637.         
  638.         2.0 GETTING STARTED
  639.  
  640.         This section describes how to get T up and running, what the screen
  641.         looks like and how to ask for help.
  642.  
  643.  
  644.         2.1 STARTING T
  645.  
  646.         Only the program file (T.EXE for DOS or T2.EXE for OS/2) is
  647.         required to be able to use the editor; this should be located in
  648.         the current directory of the current drive, or in a subdirectory
  649.         listed in your PATH.  The other files are only required if you want
  650.         to customise the editor or if you want to use the supplied help
  651.         file.  These other files would normally be kept on a separate
  652.         diskette or in their own subdirectory (which need not be in the
  653.         PATH).
  654.  
  655.         If you use OS/2 exclusively or use both DOS and OS/2 but keep your
  656.         DOS and OS/2 programs in separate subdirectories you might want to
  657.         rename the OS/2 executable to T.EXE also.  This avoids having to
  658.         remember whether to type T or T2 depending on the environment you
  659.         are using.
  660.  
  661.         Since T is so small it makes sense to put it on a RAMDRIVE if you
  662.         have one installed, this means that it will load almost instantly.
  663.  
  664.         To start T simply enter the following command at the DOS or OS/2
  665.         prompt:
  666.  
  667.              T  <filename> <filename> ...
  668.          or  T2 <filename> <filename> ...
  669.  
  670.  
  671.         You can put any number, including zero, of file names after the
  672.         T command and T will load each file you list into its memory.  If
  673.         you are using the OS/2 HPFS and your file names include spaces you
  674.         must specify the name inside double quotes, so T does not think it
  675.         is two separate file names.
  676.  
  677.  
  678.         2.2 SCREEN LAYOUT
  679.  
  680.         The T screen is divided into four areas:
  681.  
  682.         1. The Message Line and the Help Line.
  683.  
  684.            The bottom line of the screen is used to display error and
  685.            informational messages.  When no messages are displayed this
  686.            line shows instead a single line of "help".  Typically the
  687.            functions assigned to the F-keys are displayed, but this can be
  688.            customised to whatever you find useful.
  689.  
  690.         2. The Status Line.
  691.  
  692.  
  693.  
  694.         
  695.                                                          Getting Started  5
  696.  
  697.         (C) Copyright IBM Corporation 1987, 1993
  698.         
  699.         
  700.         
  701.            Above the message line is the status line.  This shows the name
  702.            of the current document and the line and column number of the
  703.            position of the cursor within the document.  If a right-hand
  704.            margin has been set this will also be displayed following an "M"
  705.            margin indicator.  The current typing mode (either "replace" or
  706.            "insert") is also indicated.
  707.  
  708.         3. The Command Line.
  709.  
  710.            Above the status line is the command line.  Any any valid T
  711.            command may be entered here.
  712.  
  713.         4. The Data Area.
  714.  
  715.            The rest of the screen is used to display the document being
  716.            edited.
  717.  
  718.         The size of the data area is automatically adjusted to fill the
  719.         whole of the screen.  Most modern displays can show more than 25
  720.         lines and many can show more than 80 columns.  T itself cannot
  721.         change the size of the display but it will use the full size of the
  722.         screen that is available when it is started.  So to see rather more
  723.         data on the screen first switch to a mode that shows more than 25
  724.         lines then invoke T.  For example, the following command will
  725.         switch to a 43 line 80 column mode under OS/2 or DOS (this needs
  726.         DOS 4.00 or later):
  727.  
  728.              MODE CO80,43
  729.  
  730.  
  731.  
  732.  
  733.         2.3 THE HELP FILE
  734.  
  735.         T is supplied with a simple help file which describes the default
  736.         key settings and the commands available.  When using T for the
  737.         first time ensure that the help file THELP.HLP is available in the
  738.         current directory of the current drive.  Later you can customise
  739.         the editor to allow the help file to be kept somewhere else.
  740.  
  741.         Press the F1 key to load and display the help file.  Then use the
  742.         PgUp and PgDn keys to view the various help panels it contains.  If
  743.         you have a 40-column display use the Home and End keys to view the
  744.         left and right hand panels.
  745.  
  746.  
  747.  
  748.  
  749.  
  750.  
  751.  
  752.  
  753.  
  754.  
  755.  
  756.  
  757.         
  758.                                                          Getting Started  6
  759.  
  760.         (C) Copyright IBM Corporation 1987, 1993
  761.         
  762.         
  763.         
  764.         3.0 EDITING
  765.  
  766.         This section gives a brief introduction to editing with T.  It
  767.         assumes the editor is used in its default configuration, as
  768.         supplied.  Later sections describe how to customise the editor.
  769.         Anyone who is familiar with the IBM Personal Editor will recognise
  770.         the way T works immediately and should be able to skip most of this
  771.         section - although a glance at "3.4 Word Processing" on page 10 and
  772.         "3.5 Drawing Boxes" on page 12 might be worthwhile.
  773.  
  774.  
  775.         3.1 KEYBOARD FUNCTIONS
  776.  
  777.         Most of the services that T can perform are accessed through
  778.         keyboard functions.  These functions are invoked by pressing the
  779.         key or key combination to which the function is assigned.  Many
  780.         functions are assigned to obvious keys, for example the LEFT
  781.         function (which moves the cursor one character to the left) is
  782.         assigned to the cursor Left key, the RIGHT function (to move the
  783.         cursor right) to the cursor Right key and so on.  Other functions
  784.         are assigned to key combinations that it is hoped provide some sort
  785.         of mnemonic for the function concerned, so for example the REPEAT
  786.         LINE function (to duplicate the current line) is assigned to Alt-R,
  787.         the SPLIT LINE function (to split the current line) to Alt-S and so
  788.         on.  Full details of these keyboard functions and the keys to which
  789.         they are assigned can be found in "2.0 Keyboard Functions" on page
  790.         26.
  791.  
  792.  
  793.         3.2 SIMPLE EDITING
  794.  
  795.         If T is started without any filename (by just entering T on the
  796.         command line) it displays and edits a new, empty, unnamed document.
  797.         A "Top of File" marker line indicates the top of the document and
  798.         an "End of File" marker indicates the end.  These marker lines are
  799.         not part of the document and may not be edited, although the cursor
  800.         may be moved onto them.
  801.  
  802.  
  803.         3.2.1 THE COMMAND LINE
  804.  
  805.         The cursor is initially placed on the command line, which is the
  806.         third line up from the bottom of the screen.  Any T command can be
  807.         entered on the command line and it is executed when the Enter key
  808.         is pressed.  As a command is typed mistakes can be corrected using
  809.         the functions LEFT, RIGHT and BACKSPACE (assigned to the cursor
  810.         Left, cursor Right and the Backspace keys, respectively).  When the
  811.         editor is in "replace" mode any characters typed overwrite those
  812.         already on the screen; when in "insert" mode any characters to the
  813.         right of the cursor are shifted right to make room for the new
  814.         text.  Switch between "insert" and "replace" mode by using the
  815.         function INSERT TOGGLE (assigned to the Ins key).
  816.  
  817.         When on the command line the cursor Up and cursor Down keys recall
  818.         any previous commands entered.  These can then either be entered
  819.  
  820.         
  821.                                                                  Editing  7
  822.  
  823.         (C) Copyright IBM Corporation 1987, 1993
  824.         
  825.         
  826.         
  827.         again directly by pressing Enter or can be altered before being
  828.         reused.
  829.  
  830.  
  831.         3.2.2 THE DATA AREA
  832.  
  833.         The cursor may be switched between the data area and the command
  834.         line by using the function COMMAND TOGGLE (Esc key).  When the
  835.         cursor is on the command line a shadow cursor marks the position in
  836.         the data where the real cursor will appear when the function
  837.         COMMAND TOGGLE is used.
  838.  
  839.         When the cursor is in the data area it may be moved anywhere
  840.         between the "Top of File" and "End of File" marker lines.  At any
  841.         place text may be typed from the keyboard.  If the editor is in
  842.         "replace" mode any text typed will overwrite whatever was there
  843.         before, if it is in "insert" mode anything to the right of the
  844.         cursor will be shifted to the right to make room for the new text.
  845.  
  846.         To add a new line use the function INSERT LINE(Ctrl-Enter) and to
  847.         delete a line use the function DELETE LINE (Ctrl-Backspace).
  848.         Alternatively if the editor is in "insert" mode just pressing Enter
  849.         will insert a new blank line (using the function NEW LINE).
  850.  
  851.  
  852.         3.2.3 MARKING AND COPYING LINES
  853.  
  854.         A block of one or more lines may be marked by pressing the function
  855.         SET MARK (Alt-L) on the first and last lines of the required block.
  856.  
  857.         Marked blocks may be deleted using the function DELETE MARK (Alt-D)
  858.         or they be moved or copied somewhere else.  To move or copy a mark
  859.         first position the cursor at the line above the desired new
  860.         position, then use either the function MOVE MARK (Alt-M) or COPY
  861.         MARK (Alt-C).
  862.  
  863.         Marked blocks are also useful for limiting the scope of a CHANGE or
  864.         LOCATE command (described later).
  865.  
  866.         It is also possible to shift all marked lines one character to the
  867.         left or right by using the functions MARK LEFT (Shift-F7) or MARK
  868.         RIGHT (Shift-F8) respectively.  This can be used to indent blocks
  869.         of code when writing programs, for example.
  870.  
  871.         To duplicate a copy of the current line just use the function
  872.         REPEAT LINE (Alt-R).
  873.  
  874.  
  875.         3.2.4 SAVING DOCUMENTS
  876.  
  877.         If a document has a name (displayed on the status line) it can be
  878.         saved to disk simply by using the function SAVE (F2); once saved
  879.         you may quit the document with the function QUIT (F3).  Alternately
  880.         you can perform a save and quit in one operation by using the
  881.         function SAFE FILE (F4).  If a document doesn't have a name you
  882.  
  883.         
  884.                                                                  Editing  8
  885.  
  886.         (C) Copyright IBM Corporation 1987, 1993
  887.         
  888.         
  889.         
  890.         must give it one: either use the NAME command to name the document
  891.         or use the SAVE or FILE commands along with a filename parameter.
  892.  
  893.         Note: Using the function SAFE FILE (F4) will not cause the document
  894.         to be written to disk if it has not been changed.  If you want to
  895.         force an unchanged document to be re-written to disk simply use the
  896.         FILE command from the command line.
  897.  
  898.  
  899.         3.2.5 WORKING ON SEVERAL DOCUMENTS
  900.  
  901.         T can edit any number of documents at once.  The documents are held
  902.         in an edit ring, and although only one can be displayed on the
  903.         screen at one time, you can cycle through the ring by using the
  904.         functions NEXT FILE (F10) or PREVIOUS FILE (F11).  The actual
  905.         number of documents you can hold in the ring depends on the size of
  906.         each document and how much memory your machine has; each document
  907.         has to be completely loaded in memory.
  908.  
  909.         To load multiple documents you can either enter several filenames
  910.         when T is started from the command line, or you can issue EDIT
  911.         commands to load more files once T is running.
  912.  
  913.         The marked line functions MOVE MARK (Alt-M) and COPY MARK (Alt-C)
  914.         are particularly useful when editing several documents as lines can
  915.         be moved and copied to and from different documents.
  916.  
  917.  
  918.         3.3 SEARCH AND REPLACE
  919.  
  920.  
  921.  
  922.         3.3.1 SEARCHING
  923.  
  924.         To search for a particular word or phrase in a document switch onto
  925.         the command line and use the LOCATE command.  In its simplest form
  926.         you just enter a command rather like this:
  927.  
  928.              /word
  929.  
  930.  
  931.         This will search the document for the next occurrence of "word".
  932.         T will only search from the current position forwards, so to search
  933.         from the top you first need to move to the top by using the
  934.         function TOP OF FILE (Ctrl-Home).
  935.  
  936.         Having found a match you can repeat the search to find the next
  937.         match simply by using the function REPEAT FIND (Alt-F).  If no
  938.         further matches can be found before the end of the document the
  939.         message "No match found" will be displayed.
  940.  
  941.         Normally LOCATE commands are case-sensitive i.e. a search for
  942.         "word" would not find "WORD" or even "Word".  To do a
  943.         case-insensitive search add the "c" option to the command, like
  944.         this:
  945.  
  946.         
  947.                                                                  Editing  9
  948.  
  949.         (C) Copyright IBM Corporation 1987, 1993
  950.         
  951.         
  952.         
  953.              /word/c
  954.  
  955.  
  956.  
  957.  
  958.         3.3.2 REPLACING
  959.  
  960.         To change one word or phrase into something else switch onto the
  961.         command line and use the CHANGE command, for example:
  962.  
  963.              C/this/that
  964.  
  965.  
  966.         This will search for the next occurrence of the word "this" and
  967.         then prompt for an action with the message "Yes/No/Go/Last/Quit?".
  968.         Hit either Y, N, G, L or Q as appropriate:
  969.  
  970.         Yes   To change this occurrence of "this" into "that" and to search
  971.               for the next occurrence of "this".
  972.  
  973.         No    To skip this change, but to continue searching.
  974.  
  975.         Go    To make this change and all further changes to the end of the
  976.               document without any further prompting.
  977.  
  978.         Last  To make this change and to stop searching, so this becomes
  979.               the last change.
  980.  
  981.         Quit  To skip this change and stop searching.
  982.  
  983.         To avoid the prompt message and to make all changes straightaway
  984.         add the "*" option to the command:
  985.  
  986.              C/this/that/*
  987.  
  988.  
  989.  
  990.  
  991.         3.4 WORD PROCESSING
  992.  
  993.         T is not designed to be a word processor, but it does provide some
  994.         very simple word processing functions that are useful for creating
  995.         quick notes or for entering marked-up documents that will later be
  996.         formatted with a batch formatter.
  997.  
  998.  
  999.         3.4.1 THE RIGHT MARGIN AND WORD SPILL
  1000.  
  1001.         The command MARGIN allows a right hand margin column to be set.
  1002.         When a margin is set the status line indicates its column number
  1003.         with "M nnn".  To set the right hand margin to column 72 you would
  1004.         enter the command:
  1005.  
  1006.              MARGIN 72
  1007.  
  1008.  
  1009.         
  1010.                                                                 Editing  10
  1011.  
  1012.         (C) Copyright IBM Corporation 1987, 1993
  1013.         
  1014.         
  1015.         
  1016.         As text is entered into the document any words that are typed
  1017.         across the right hand margin are automatically word-spilled onto a
  1018.         new inserted line.  This means it is possible to type whole
  1019.         paragraphs without having to worry about hitting Enter at the end
  1020.         of each line.  As words spill onto a new line they are
  1021.         automatically indented from the left hand side so as they align
  1022.         under the first non-blank character of the line above.  This makes
  1023.         it very simple to leave a left margin or to enter whole sections
  1024.         indented.
  1025.  
  1026.  
  1027.         3.4.2 THE ADJUST LINE FUNCTION
  1028.  
  1029.         If corrections need to be made to text entered with a right margin
  1030.         the text will not be reflowed automatically to keep the margins
  1031.         correct; in fact after making a number of corrections it will tend
  1032.         to end up in rather a mess.  The function ADJUST LINE (Alt-A) is
  1033.         provided to tidy up this mess and re-align everything correctly.
  1034.         ADJUST LINE is performed by pressing Alt-A and will adjust the
  1035.         current line to the current right margin setting.  If the line is
  1036.         too short it will be filled out with words from the next line down
  1037.         and if it is too long it will be split in two.  As with the
  1038.         word-spill, when ADJUST LINE spills words onto the next line they
  1039.         are aligned under the first non-blank character of the preceding
  1040.         line.
  1041.  
  1042.         ADJUST LINE will ignore blank lines, skipping over them and moving
  1043.         the cursor to the next line down, and if a line needs to be split
  1044.         in two the cursor will move down to the split-off portion.  This
  1045.         makes re-adjusting whole paragraphs very simple, just place the
  1046.         cursor on the first line of the paragraph and keep pressing Alt-A
  1047.         until it is re-flowed correctly.
  1048.  
  1049.         Note: When a line is too short and ADJUST LINE fills with words
  1050.         from the next line, these words are joined to the line with just
  1051.         one intervening blank.  If before the ADJUST LINE the last
  1052.         character happened to be a full stop at the end of a sentence you
  1053.         may need to go back and insert an extra space to maintain the
  1054.         convention of two blanks following a sentence end.
  1055.  
  1056.  
  1057.         3.5 DRAWING BOXES
  1058.  
  1059.         The PC character set contains a group of special symbols that can
  1060.         be used to draw boxes.  T assigns the box corner and intersection
  1061.         characters to the keys Alt-1 to Alt-9.  As a reminder of which box
  1062.         corner is assigned to which key, just look at the numeric keypad
  1063.         which is arranged like this:
  1064.  
  1065.              7  8  9
  1066.              4  5  6
  1067.              1  2  3
  1068.  
  1069.  
  1070.  
  1071.  
  1072.         
  1073.                                                                 Editing  11
  1074.  
  1075.         (C) Copyright IBM Corporation 1987, 1993
  1076.         
  1077.         
  1078.         
  1079.         So the Alt-7 key produces a top left box corner, the Alt-3 a bottom
  1080.         right and so on.  Remember that the keypad just provides a mnemonic
  1081.         - you must actually enter characters using the Alt-key and the
  1082.         numerals along the top of the main keyboard area.
  1083.  
  1084.         The horizontal line is assigned to Alt-- (Alt-minus) and the
  1085.         vertical line to Alt-= (Alt-equals).  These two may need
  1086.         reassigning to use other keys on non-English language keyboards,
  1087.         where the "-" and "=" keys don't appear on the top row just after
  1088.         the numerals.  This can be done by customising the editor (see "4.0
  1089.         Customising" on page 14).
  1090.  
  1091.  
  1092.         3.6 PRINTING
  1093.  
  1094.         To print the current document switch onto the command line and
  1095.         enter the PRINT command.  No special facilities are provided for
  1096.         formatted printing, the PRINT command will simply write a copy of
  1097.         the current document to the printer.  If used with no parameters
  1098.         PRINT will write to the device PRN, which for most people will be
  1099.         the printer attached to their machine.  If you have a serially
  1100.         attached printer or use a LAN printer you may need to specify the
  1101.         printer device, for example:
  1102.  
  1103.              PRINT COM1
  1104.          or  PRINT LPT2
  1105.  
  1106.  
  1107.         To print a piece of a document first mark the block of lines to be
  1108.         printed, then use the PUT command to write them to a device.  A
  1109.         device must be specified with the PUT command, so normally you
  1110.         would use:
  1111.  
  1112.              PUT PRN
  1113.  
  1114.  
  1115.  
  1116.  
  1117.         3.6.1 PRINTER CONTROL CODES
  1118.  
  1119.         You may embed printer control codes directly in your documents if
  1120.         you want to produce special effects such as bold or emphasised.
  1121.         You will need to refer to your printer's documentation to determine
  1122.         exactly which control codes are available and what they do.
  1123.  
  1124.         Control codes can normally be entered directly using the keypad on
  1125.         the right of the keyboard: hold down the Alt key and type the
  1126.         decimal value of the required control code on the keypad then
  1127.         release the Alt key.  The control code should appear at the cursor
  1128.         position, most control codes show up on the screen as odd little
  1129.         symbols.
  1130.  
  1131.         Some codes can also be entered using other keys, but these will
  1132.         require the use of the function ESCAPE (Alt-X).  For example to
  1133.         enter a form feed (ASCII value 12) you can either use the keypad
  1134.  
  1135.         
  1136.                                                                 Editing  12
  1137.  
  1138.         (C) Copyright IBM Corporation 1987, 1993
  1139.         
  1140.         
  1141.         
  1142.         method described above (hold down Alt, key 1 2 on the keypad and
  1143.         release Alt), or press ESCAPE (Alt-X) followed by Ctrl-L ("L" being
  1144.         the 12th letter of the alphabet).
  1145.  
  1146.  
  1147.         3.6.2 PRINTER SET UP
  1148.  
  1149.         You may prefer not to place the printer control codes directly in
  1150.         the document, but to keep the document as plain, readable text.
  1151.         But you may want to send a few special characters to the printer
  1152.         before printing a document, perhaps to switch the printer to NLQ
  1153.         mode.
  1154.  
  1155.         These printer set up sequences can be issued with a DOS ECHO
  1156.         command, for example to put a Proprinter into NLQ mode issue the
  1157.         following command:
  1158.  
  1159.              DOS ECHO xG >PRN
  1160.  
  1161.  
  1162.         where the "x" should be an ASCII "Esc" control code entered by
  1163.         hitting Alt-X followed by the Esc key.
  1164.  
  1165.  
  1166.  
  1167.  
  1168.  
  1169.  
  1170.  
  1171.  
  1172.  
  1173.  
  1174.  
  1175.  
  1176.  
  1177.  
  1178.  
  1179.  
  1180.  
  1181.  
  1182.  
  1183.  
  1184.  
  1185.  
  1186.  
  1187.  
  1188.  
  1189.  
  1190.  
  1191.  
  1192.  
  1193.  
  1194.  
  1195.  
  1196.  
  1197.  
  1198.         
  1199.                                                                 Editing  13
  1200.  
  1201.         (C) Copyright IBM Corporation 1987, 1993
  1202.         
  1203.         
  1204.         
  1205.         4.0 CUSTOMISING
  1206.  
  1207.         This section describes how you can customise T to match your own
  1208.         preferences for screen colours, keyboard layouts and special
  1209.         settings.  Even if you like T exactly the way it is supplied and
  1210.         don't want to change any of the colours or keys, you will probably
  1211.         still need to customise some of the special settings, at least to
  1212.         tell the editor where you keep its help file.
  1213.  
  1214.         To customise T you must first construct a custom definition
  1215.         file, which is described in detail in the next section.  Then use
  1216.         the TKEY.EXE customiser program to customise your copy of the
  1217.         editor, by entering this command on the DOS or OS/2 command line:
  1218.  
  1219.              TKEY  custom.DEF  editor.EXE
  1220.  
  1221.  
  1222.         Replace "custom.DEF" with the name of your custom definition file
  1223.         and replace "editor.EXE" with the name the editor you want to
  1224.         customise.  Unless you tell it otherwise TKEY will assume the
  1225.         custom definition file has an extension of .DEF and the editor of
  1226.         .EXE.  So to customise both the DOS and the OS/2 versions with a
  1227.         custom definition file called TCUST.DEF you would use the two
  1228.         commands:
  1229.  
  1230.              TKEY TCUST T
  1231.          and TKEY TCUST T2
  1232.  
  1233.  
  1234.         Once the customising is complete the changes are recorded
  1235.         permanently inside the editor's .EXE file.  You no longer need
  1236.         either the TKEY program or your custom definition file, unless you
  1237.         decide to make further changes.
  1238.  
  1239.  
  1240.         4.1 THE CUSTOM DEFINITION FILE
  1241.  
  1242.         The custom definition file contains a description of the way you
  1243.         want T to be configured.  An example of a custom definition file is
  1244.         supplied with T, this is called TKEYS.DEF and contains the
  1245.         description of the default configuration.  This file serves as a
  1246.         good example of how to write a custom definition, but should be
  1247.         used for reference only.  You should create your own custom
  1248.         definition file and call it something other than TKEYS.DEF.  This
  1249.         will ensure that if you ever obtain a new copy the T package you do
  1250.         not lose any changes you made.  Of course a good way to start your
  1251.         own definition file would be to copy TKEYS.DEF under another name.
  1252.  
  1253.         The custom definition file contains four sorts of item.  Normally
  1254.         each item is placed on a new line, although one item can be split
  1255.         over several lines or several items can be placed on one line if
  1256.         desired.
  1257.  
  1258.         1. Comments.
  1259.  
  1260.  
  1261.         
  1262.                                                             Customising  14
  1263.  
  1264.         (C) Copyright IBM Corporation 1987, 1993
  1265.         
  1266.         
  1267.         
  1268.            Comments are ignored by the customiser program and serve to make
  1269.            the definition file more readable.  Comments come in three
  1270.            flavours:
  1271.  
  1272.            a. Anything between the comment markers /* and */.  Comments of
  1273.               this sort can extend over several lines if required.
  1274.  
  1275.            b. Anything between the comment marker // and the end of the
  1276.               line.
  1277.  
  1278.            c. Several special words and symbols are also ignored: blank
  1279.               lines, blank spaces, ON, OF, TO, IS, ; (semicolon) and =
  1280.               (equals sign)..
  1281.  
  1282.         2. Colour and Mono Commands
  1283.  
  1284.            Colour and Mono commands define the colours used for the various
  1285.            parts of the screen on different types of display.
  1286.  
  1287.         3. Key Commands
  1288.  
  1289.            Key commands assign keyboard functions or single characters to
  1290.            keys.
  1291.  
  1292.         4. Set Commands
  1293.  
  1294.            Set commands alter the editor's special settings.
  1295.  
  1296.         In the following descriptions uppercase will be used to indicate
  1297.         keywords and lowercase to indicate parameters you must enter.
  1298.         Items in angle brackets are optional.  In your custom definition
  1299.         file you may use any mixture of upper- or lowercase.
  1300.  
  1301.  
  1302.         4.1.1 COLOUR AND MONO COMMANDS
  1303.  
  1304.              COLOUR area = <attr> fgcol ON <attr> bgcol
  1305.          or  COLOR  area = <attr> fgcol ON <attr> bgcol
  1306.          or  MONO   area = <attr> style
  1307.  
  1308.  
  1309.         Colour and Mono commands define the colours that will be used for
  1310.         the various areas of the screen.  Two forms of the command can be
  1311.         used, indicated by the keywords COLOUR (spelled COLOR if you
  1312.         prefer) or MONO.  The COLOUR colours are used on colour screens and
  1313.         the MONO colours are used on monochrome screens or colour screens
  1314.         when in a black-and-white mode (this latter feature can be useful
  1315.         when a colour adapter is driving a monochrome screen, as is often
  1316.         the case with LCD portables).
  1317.  
  1318.         The following parameters should be provided:
  1319.  
  1320.         area   is an area of the screen.  It should be one of:
  1321.                    DATA LINES
  1322.                    MARK LINES
  1323.  
  1324.         
  1325.                                                             Customising  15
  1326.  
  1327.         (C) Copyright IBM Corporation 1987, 1993
  1328.         
  1329.         
  1330.         
  1331.                    SHOW LINES
  1332.                    SHADOW CURSOR
  1333.                    STATUS LINE
  1334.                    HELP LINE
  1335.                    MESSAGE LINE
  1336.  
  1337.                Most of these refer to the obvious screen items or areas.
  1338.                SHOW LINES refers to those lines displayed in the data area
  1339.                that are not a part of the actual document being edited (for
  1340.                example the "Top of File" marker line).
  1341.  
  1342.         attr   is one or more attributes associated with the colour or
  1343.                style it precedes.  It can be omitted if no attributes are
  1344.                required or specified as one or more of:
  1345.                    BRIGHT or LIGHT
  1346.                    BLINKING
  1347.  
  1348.         fgcol  is the foreground colour for colour displays, specified as
  1349.                one of:
  1350.                    BLACK
  1351.                    BLUE
  1352.                    GREEN
  1353.                    TURQUOISE or CYAN
  1354.                    RED
  1355.                    PINK or MAGENTA
  1356.                    BROWN
  1357.                    WHITE
  1358.                    GREY or GRAY
  1359.                    YELLOW
  1360.  
  1361.         bgcol  is the background colour for colour displays specified from
  1362.                the same choices as the foreground colours.  Only the BRIGHT
  1363.                (or LIGHT) attribute may precede the background colour.
  1364.  
  1365.         style  is the style of text used for monochrome displays specified
  1366.                as one of:
  1367.                    NORMAL
  1368.                    REVERSE
  1369.                    UNDERLINE
  1370.  
  1371.         Note: Not all combinations of attributes and colours or styles are
  1372.         meaningful or useable on all systems, although the customiser
  1373.         program may accept them.  In particular the BRIGHT attribute has no
  1374.         effect on the REVERSE style, the UNDERLINED style may not always be
  1375.         available, the colour YELLOW is the same as BRIGHT BROWN and the
  1376.         colour GREY is the same as BRIGHT BLACK.  Also note that on some
  1377.         machines a BRIGHT background will actually produce a BLINKING
  1378.         foreground instead - bear this in mind if YELLOW (i.e. BRIGHT
  1379.         BROWN) or GREY (i.e. BRIGHT BLACK) are chosen as background
  1380.         colours.
  1381.  
  1382.  
  1383.  
  1384.  
  1385.  
  1386.  
  1387.         
  1388.                                                             Customising  16
  1389.  
  1390.         (C) Copyright IBM Corporation 1987, 1993
  1391.         
  1392.         
  1393.         
  1394.         4.1.2 KEY COMMANDS
  1395.  
  1396.              KEY <shift->keyname = function
  1397.          or  DEF <shift->keyname = function
  1398.          or  KEY <shift->keyname = character
  1399.          or  DEF <shift->keyname = character
  1400.  
  1401.  
  1402.         Key commands assign the editor's keyboard functions or single ASCII
  1403.         characters to user definable keys.  The parameters are:
  1404.  
  1405.         shift-     is the shift key that must be pressed.  It is omitted
  1406.                    for unshifted keys or specified as one of:
  1407.  
  1408.                    S-  for either of the shift keys
  1409.  
  1410.                    C-  for the Ctrl key
  1411.  
  1412.                    A-  for the Alt key
  1413.  
  1414.         keyname    is chosen from:
  1415.                        A to Z
  1416.                        0 to 9
  1417.                        F1 to F12
  1418.                        - (the minus key)
  1419.                        = (the equals key)
  1420.                        [ (the open square bracket key)
  1421.                        ] (the close square bracket key)
  1422.                        \ (the backslash key)
  1423.                        ESC
  1424.                        TAB
  1425.                        BACKSPACE
  1426.                        ENTER
  1427.                        PADENTER
  1428.                        HOME
  1429.                        END
  1430.                        PGUP
  1431.                        PGDN
  1432.                        UP
  1433.                        DOWN
  1434.                        LEFT
  1435.                        RIGHT
  1436.                        INS
  1437.                        DEL
  1438.                        PAD5
  1439.  
  1440.                    Not all shift-keyname combinations are valid, and some
  1441.                    are not available for use on the older PC keyboard (the
  1442.                    one with 10 F-keys over on the left).  See "Appendix B.
  1443.                    User Definable Keys" on page 46 for a full list of
  1444.                    combinations.
  1445.  
  1446.         function   is one of the keyboard functions.  The full list of
  1447.                    keyboard functions is defined in "2.0 Keyboard
  1448.                    Functions" on page 26.
  1449.  
  1450.         
  1451.                                                             Customising  17
  1452.  
  1453.         (C) Copyright IBM Corporation 1987, 1993
  1454.         
  1455.         
  1456.         
  1457.         character  is a single ASCII character.  This can either be
  1458.                    specified as the character itself in quotes, or using
  1459.                    the form:
  1460.  
  1461.              ASCII nnn
  1462.  
  1463.  
  1464.                    where nnn is the character's ASCII code point.  This
  1465.                    allows characters not normally present on the keyboard
  1466.                    (such as the box drawing characters) to be assigned to
  1467.                    keys.
  1468.  
  1469.  
  1470.  
  1471.         4.1.3 SET COMMANDS
  1472.  
  1473.              SET item = value
  1474.  
  1475.  
  1476.         Set commands allow customising of the special editor settings.
  1477.         These are described in detail in "3.0 Settings" on page 36.
  1478.  
  1479.  
  1480.         4.2 THE HELP AND USER FUNCTIONS
  1481.  
  1482.         The HELP and USER keyboard functions are rather special and quite
  1483.         powerful features.  The HELP and USER functions work in an
  1484.         identical way, the fact that one is called "HELP" is only really to
  1485.         suggest a good use for the function.  Once you are familiar with
  1486.         the way T works you may decide you no longer really need a help
  1487.         system, and you can then use the HELP function for something else
  1488.         completely.
  1489.  
  1490.         The functions are defined by two items in the custom definition
  1491.         file.  Firstly the keyboard function is assigned to key, and
  1492.         secondly a T command is assigned to the function.  For example:
  1493.  
  1494.              KEY F1 = HELP
  1495.              SET HELP COMMAND = "EDIT THELP.HLP"
  1496.  
  1497.  
  1498.         In this example the HELP keyboard function is assigned to the F1
  1499.         key and the function is then assigned the command "EDIT THELP.HLP".
  1500.  
  1501.         When the HELP keyboard function is pressed (i.e. F1 is pressed)
  1502.         T will execute the assigned command, just as if it had been typed
  1503.         on the command line.  In this example it will therefore load and
  1504.         display a help file.
  1505.  
  1506.         The command that is assigned to the function can be any command
  1507.         that could be entered on the T command line, so some other useful
  1508.         applications might be:
  1509.  
  1510.         -  Use the standard T help file but locate it in the \EDITORS
  1511.            subdirectory on the C: drive:
  1512.  
  1513.         
  1514.                                                             Customising  18
  1515.  
  1516.         (C) Copyright IBM Corporation 1987, 1993
  1517.         
  1518.         
  1519.         
  1520.              KEY F1 = HELP
  1521.              SET HELP COMMAND = "T C:\EDITORS\THELP.HLP"
  1522.  
  1523.  
  1524.         -  Set Alt-P to print the current document to COM1:
  1525.  
  1526.              KEY A-P = USER
  1527.              SET USER COMMAND = "PRINT COM1"
  1528.  
  1529.  
  1530.         -  Set Alt-H to invoke an external HELP program for a subject
  1531.            called "T":
  1532.  
  1533.              KEY A-H = HELP
  1534.              SET HELP COMMAND = "DOS HELP T"
  1535.  
  1536.  
  1537.         -  Set the F5 key to shell out to a DOS or OS/2 command prompt:
  1538.  
  1539.              KEY F5 = USER
  1540.              SET USER COMMAND = "DOS"
  1541.  
  1542.  
  1543.  
  1544.  
  1545.         4.3 THE ENHANCED KEYBOARD
  1546.  
  1547.         Most recent PCs and all PS/2s come with IBM's Enhanced Keyboard.
  1548.         This is the keyboard with twelve function keys arranged across the
  1549.         top and an extra set of cursor control keys between the typewriter
  1550.         keys and the numeric keypad.  Older PCs and some notebook style
  1551.         machines have a keyboard with just ten function keys.  To make use
  1552.         of the extra keys on the Enhanced Keyboard a program must work in a
  1553.         different way from that which was used to handle the old-style
  1554.         keyboards, if the old-style interface is used only the subset of
  1555.         keys present on the older keyboard will be recognised.
  1556.  
  1557.         T attempts to determine which type of keyboard interface to use, so
  1558.         that if an Enhanced Keyboard is attached all its keys will be
  1559.         available.  However the tests used to decide which type of keyboard
  1560.         is present can be fooled by some non-IBM BIOSs and by some older
  1561.         TSR programs that were created before the Enhanced Keyboard was
  1562.         available.  This usually shows up as a problem when the editor
  1563.         starts: the command line becomes full of a repeated character and
  1564.         the editor hangs.
  1565.  
  1566.         In situations like these you must force T to use the old keyboard
  1567.         interface by putting this line in your custom definition file:
  1568.  
  1569.              SET KEYBOARD TYPE = STANDARD
  1570.  
  1571.  
  1572.  
  1573.  
  1574.  
  1575.  
  1576.         
  1577.                                                             Customising  19
  1578.  
  1579.         (C) Copyright IBM Corporation 1987, 1993
  1580.         
  1581.         
  1582.         
  1583.                                                   Part 2.  Editor Reference
  1584.  
  1585.  
  1586.  
  1587.  
  1588.  
  1589.  
  1590.  
  1591.  
  1592.  
  1593.  
  1594.  
  1595.  
  1596.  
  1597.  
  1598.  
  1599.  
  1600.  
  1601.  
  1602.  
  1603.  
  1604.  
  1605.  
  1606.  
  1607.  
  1608.  
  1609.  
  1610.  
  1611.  
  1612.  
  1613.  
  1614.  
  1615.  
  1616.  
  1617.  
  1618.  
  1619.  
  1620.  
  1621.  
  1622.  
  1623.  
  1624.  
  1625.  
  1626.  
  1627.  
  1628.  
  1629.  
  1630.  
  1631.  
  1632.  
  1633.  
  1634.  
  1635.  
  1636.  
  1637.  
  1638.  
  1639.         
  1640.                                               Part 2.  Editor Reference  20
  1641.  
  1642.         (C) Copyright IBM Corporation 1987, 1993
  1643.         
  1644.         
  1645.         
  1646.         1.0 COMMANDS
  1647.  
  1648.         This section describes each of the commands that may be entered on
  1649.         the T command line.  In describing the syntax of the commands,
  1650.         uppercase letters are used for the command name and lowercase
  1651.         letters for any parameters you must supply.  Optional parameters
  1652.         are enclosed in angle brackets.  Commands may actually be entered
  1653.         in any mixture of upper- or lowercase.
  1654.  
  1655.         Where the parameters call for a filename any valid DOS or OS/2 file
  1656.         name may be used.  This may include the drive letter and directory
  1657.         path if required; if none is given the current drive and directory
  1658.         will be used, following the normal conventions.  When using the
  1659.         OS/2 High Performance File System (HPFS) filenames are not limited
  1660.         to the DOS "8-dot-3" format and any upper- or lowercase characters
  1661.         used will be preserved.
  1662.  
  1663.  
  1664.         1.1 APPEND
  1665.  
  1666.              APPEND filename
  1667.  
  1668.  
  1669.         The currently marked lines are written to the file
  1670.         "filename".  The lines are added to the end of the file, preserving
  1671.         any former contents.  The file is created if it does not exist.
  1672.  
  1673.  
  1674.         1.2 CHANGE
  1675.  
  1676.              C /target/replacement</options>
  1677.  
  1678.  
  1679.         The next occurrence of the text "target" starting from the current
  1680.         cursor position, is located.  Then the message
  1681.         "Yes/No/Go/Last/Quit?" is displayed, to which you should reply with
  1682.         one of:
  1683.  
  1684.         Y  to change this instance of "target" into
  1685.            "replacement".  The next occurrence of "target" is then found
  1686.            and the process repeats.
  1687.  
  1688.         N  to not change this instance of "target", but to continue
  1689.            searching for the next occurrence.
  1690.  
  1691.         G  to change this instance of "target" into
  1692.            "replacement" and then to change all further instances (until to
  1693.            end of the document) without further prompting.
  1694.  
  1695.         L  to change this instance of "target" into
  1696.            "replacement" and then to stop the command, so this becomes the
  1697.            last change made.
  1698.  
  1699.         Q  to stop the change command without making any further changes.
  1700.  
  1701.  
  1702.         
  1703.                                                                Commands  21
  1704.  
  1705.         (C) Copyright IBM Corporation 1987, 1993
  1706.         
  1707.         
  1708.         
  1709.         The "/" character is a delimiter and can be replaced with any
  1710.         character that does not occur in either the "target" or the
  1711.         "replacement".  Note that the delimiter is the first non-blank
  1712.         character following the C command.
  1713.  
  1714.         Following a final delimiter any of these options may be used:
  1715.  
  1716.         m  to restrict the changes to the marked lines only.
  1717.  
  1718.         *  to change all occurrences of "target" to
  1719.            "replacement" without prompting.
  1720.  
  1721.         Note: Change commands are always case-sensitive.
  1722.  
  1723.  
  1724.         1.3 DOS
  1725.  
  1726.              DOS <command>
  1727.          or  .<command>
  1728.  
  1729.  
  1730.         A secondary DOS or OS/2 shell is started to execute the
  1731.         "command".  A full stop may be used as a quick abbreviation for the
  1732.         word DOS.
  1733.  
  1734.         If no "command" is given the DOS or OS/2 command line prompt will
  1735.         appear.  You can return to T by entering the command EXIT.
  1736.  
  1737.  
  1738.         1.4 EDIT
  1739.  
  1740.              EDIT <filename>
  1741.          or  E <filename>
  1742.          or  T <filename>
  1743.  
  1744.  
  1745.         If a "filename" is given T will switch directly to display that
  1746.         document.  The file will be loaded from disk, if it is not already
  1747.         in the edit ring.
  1748.  
  1749.         If no "filename" is given the next document in the edit ring will
  1750.         be selected.
  1751.  
  1752.  
  1753.         1.5 FILE
  1754.  
  1755.              FILE <filename>
  1756.          or  F <filename>
  1757.  
  1758.  
  1759.         The current document will be saved to disk and then removed from
  1760.         the edit ring.  If a "filename" is given the document will be saved
  1761.         under this name, otherwise the name shown on the status line will
  1762.         be used.
  1763.  
  1764.  
  1765.         
  1766.                                                                Commands  22
  1767.  
  1768.         (C) Copyright IBM Corporation 1987, 1993
  1769.         
  1770.         
  1771.         
  1772.         1.6 GET
  1773.  
  1774.              GET filename
  1775.  
  1776.  
  1777.         The contents of "filename" will be inserted into the current
  1778.         document following the current line.
  1779.  
  1780.  
  1781.         1.7 GOTO
  1782.  
  1783.              GOTO linenum
  1784.          or  linenum
  1785.  
  1786.  
  1787.         Line number "linenum" will become the current line and will be
  1788.         displayed on the focus line.  If "linenum" is bigger than the
  1789.         number of lines in the document the last line will become the
  1790.         current line.  The word GOTO is optional, just entering the
  1791.         required "linenum" on the command line is sufficient.
  1792.  
  1793.  
  1794.         1.8 LOCATE
  1795.  
  1796.              L /target</options>
  1797.          or  /target</options>
  1798.  
  1799.  
  1800.         The next occurrence of the text "target", starting from the current
  1801.         cursor position, will be located and displayed on the focus line.
  1802.         If the "L /target" form of the command is used the delimiter,
  1803.         "/", may be replaced by any character that does not occur in
  1804.         "target".
  1805.  
  1806.         Following a final delimiter any of these options may be used:
  1807.  
  1808.         m  to restrict the search to the marked lines only.
  1809.  
  1810.         e  to force an exact-case match.
  1811.  
  1812.         c  to force an any-case match.  (Apologies to non-English speakers:
  1813.            only the 26 letters "a" to "z" are correctly handled.)
  1814.  
  1815.         Note: if neither e nor c is given the editor's EXACT MATCH setting
  1816.         is used.  This may be customised - refer to "4.0 Customising" on
  1817.         page 14 for more details.
  1818.  
  1819.  
  1820.         1.9 MARGIN
  1821.  
  1822.              MARGIN column
  1823.          or  M column
  1824.  
  1825.  
  1826.  
  1827.  
  1828.         
  1829.                                                                Commands  23
  1830.  
  1831.         (C) Copyright IBM Corporation 1987, 1993
  1832.         
  1833.         
  1834.         
  1835.         The right hand margin will be set to "column".  To remove the right
  1836.         hand margin enter a column value of zero.  The margin column is
  1837.         displayed on the status line in the form "M nnn".
  1838.  
  1839.         The margin is used by the word-spill features: as words are typed
  1840.         across the margin column they are automatically spilled onto the
  1841.         next line.  It is also used by the ADJUST LINE keyboard function
  1842.         (see "3.4 Word Processing" on page 10).
  1843.  
  1844.  
  1845.         1.10 NAME
  1846.  
  1847.              NAME <name>
  1848.          or  N <name>
  1849.  
  1850.  
  1851.         The current document will be renamed to "name".
  1852.  
  1853.  
  1854.         1.11 PRINT
  1855.  
  1856.              PRINT <device>
  1857.  
  1858.  
  1859.         The current document will be printed.  It is printed to the named
  1860.         "device", if one is specified, otherwise the device PRN is used.
  1861.  
  1862.  
  1863.         1.12 PUT
  1864.  
  1865.             PUT filename
  1866.  
  1867.  
  1868.         The currently marked lines will be written to the file
  1869.         "filename".  Any former contents of the file are lost.
  1870.  
  1871.         Note: The marked lines can be printed using the command PUT PRN.
  1872.  
  1873.  
  1874.         1.13 QUIT
  1875.  
  1876.              QUIT <ALL>
  1877.          or  Q <ALL>
  1878.  
  1879.  
  1880.         If used without the "ALL" parameter the current document will be
  1881.         removed from the edit ring.  It will not be saved to disk.  If any
  1882.         changes have been made, since the document was last saved, the
  1883.         message "Throw away changes? (y/n)" is displayed; hit either Y or N
  1884.         as appropriate.
  1885.  
  1886.         If the "ALL" parameter is specified all the current documents will
  1887.         be discarded without saving any changes and the editor will end and
  1888.         return to the operating system.  This parameter should be used with
  1889.         care.
  1890.  
  1891.         
  1892.                                                                Commands  24
  1893.  
  1894.         (C) Copyright IBM Corporation 1987, 1993
  1895.         
  1896.         
  1897.         
  1898.         1.14 SAVE
  1899.  
  1900.              SAVE <filename>
  1901.          or  S <filename>
  1902.  
  1903.  
  1904.         The current document will be saved to disk.  If a
  1905.         "filename" is given the document will be saved under this name,
  1906.         otherwise the name shown on the status line will be used.
  1907.  
  1908.  
  1909.         1.15 VERSION
  1910.  
  1911.              VER
  1912.  
  1913.  
  1914.         The T name, version number and copyright notice will be displayed.
  1915.  
  1916.  
  1917.  
  1918.  
  1919.  
  1920.  
  1921.  
  1922.  
  1923.  
  1924.  
  1925.  
  1926.  
  1927.  
  1928.  
  1929.  
  1930.  
  1931.  
  1932.  
  1933.  
  1934.  
  1935.  
  1936.  
  1937.  
  1938.  
  1939.  
  1940.  
  1941.  
  1942.  
  1943.  
  1944.  
  1945.  
  1946.  
  1947.  
  1948.  
  1949.  
  1950.  
  1951.  
  1952.  
  1953.  
  1954.         
  1955.                                                                Commands  25
  1956.  
  1957.         (C) Copyright IBM Corporation 1987, 1993
  1958.         
  1959.         
  1960.         
  1961.         2.0 KEYBOARD FUNCTIONS
  1962.  
  1963.         This section describes each of the keyboard functions that are
  1964.         available to the editor.  Keyboard functions are invoked by
  1965.         pressing the key to which they have been assigned.  This assignment
  1966.         is made in a custom definition file using entries of the form:
  1967.  
  1968.              KEY key = function
  1969.          or  DEF key = function
  1970.  
  1971.  
  1972.         The descriptions which follow include the default key to which the
  1973.         function is assigned.
  1974.  
  1975.  
  1976.         2.1 ADJUST LINE
  1977.  
  1978.         Default key: Alt-A
  1979.  
  1980.         Adjusts the current line to the right hand margin setting.  If the
  1981.         line extends beyond the margin it is split; if it does not reach
  1982.         the margin it is filled with words from the next line.  If a split
  1983.         occurs and the special setting AUTOMATIC INDENT is ON (see "3.0
  1984.         Settings" on page 36), the split-off portion will align under the
  1985.         first non-blank character of the previous line.
  1986.  
  1987.         ADJUST LINE will ignore blank lines and, when a line is split, the
  1988.         cursor will move to the split-off portion.  This makes it
  1989.         particularly simple to re-adjust a paragraph after making changes
  1990.         or altering the right hand margin.
  1991.  
  1992.  
  1993.         2.2 BACKSPACE
  1994.  
  1995.         Default key: Backspace
  1996.  
  1997.         Deletes the character to the left of the cursor, and moves the
  1998.         cursor one character to the left.
  1999.  
  2000.  
  2001.         2.3 CLEAR MARK
  2002.  
  2003.         Default key: Alt-U
  2004.  
  2005.         Un-marks any marked lines.
  2006.  
  2007.  
  2008.         2.4 COMMAND TOGGLE
  2009.  
  2010.         Default key: Esc
  2011.  
  2012.         Switches the cursor between the command line and the data area.
  2013.         When the cursor is on the command line a shadow cursor marks the
  2014.         current position in the data.
  2015.  
  2016.  
  2017.         
  2018.                                                      Keyboard Functions  26
  2019.  
  2020.         (C) Copyright IBM Corporation 1987, 1993
  2021.         
  2022.         
  2023.         
  2024.         2.5 COPY MARK
  2025.  
  2026.         Default key: Alt-C
  2027.  
  2028.         Inserts a copy the marked lines following the current line.  If
  2029.         there are several documents in the edit ring this may be used to
  2030.         copy lines from one document to another.
  2031.  
  2032.  
  2033.         2.6 DELETE CHARACTER
  2034.  
  2035.         Default key: Del
  2036.  
  2037.         Deletes the character at the cursor.
  2038.  
  2039.  
  2040.         2.7 DELETE LINE
  2041.  
  2042.         Default key: Ctrl-Backspace
  2043.  
  2044.         Deletes the current line.
  2045.  
  2046.  
  2047.         2.8 DELETE MARK
  2048.  
  2049.         Default key: Alt-D
  2050.  
  2051.         Deletes the marked lines.
  2052.  
  2053.  
  2054.         2.9 DOWN
  2055.  
  2056.         Default key: Down
  2057.  
  2058.         Moves the cursor down one line.
  2059.  
  2060.  
  2061.         2.10 EDIT
  2062.  
  2063.         Default key: F8
  2064.  
  2065.         Switches to the command line and keys in the command EDIT, ready
  2066.         for you to enter a filename.
  2067.  
  2068.  
  2069.         2.11 END OF FILE
  2070.  
  2071.         Default key: Ctrl-End
  2072.  
  2073.         Makes the current line the last line in the document, and positions
  2074.         this line at the bottom of the screen.
  2075.  
  2076.  
  2077.  
  2078.  
  2079.  
  2080.         
  2081.                                                      Keyboard Functions  27
  2082.  
  2083.         (C) Copyright IBM Corporation 1987, 1993
  2084.         
  2085.         
  2086.         
  2087.         2.12 END OF LINE
  2088.  
  2089.         Default key: End
  2090.  
  2091.         Moves the cursor to the position one character after the last
  2092.         character on the current line.
  2093.  
  2094.  
  2095.         2.13 END OF MARK
  2096.  
  2097.         Default key: Alt-E
  2098.  
  2099.         Makes the current line the last marked line, and positions this
  2100.         line on the focus line.  If the marked lines are in a different
  2101.         document that document will become the current document.
  2102.  
  2103.  
  2104.         2.14 END OF SCREEN
  2105.  
  2106.         Default key: Ctrl-PgDn
  2107.  
  2108.         Moves the cursor to the last line of the document on the screen.
  2109.  
  2110.  
  2111.         2.15 ESCAPE
  2112.  
  2113.         Default key: Alt-X
  2114.  
  2115.         This allows the entry of ASCII characters using keys on the
  2116.         keyboard that would normally perform a function.  Typically this is
  2117.         useful when entering printer control codes into a document.
  2118.  
  2119.         For example to enter the ASCII "Esc" character first use the
  2120.         ESCAPE function then press the Esc key.
  2121.  
  2122.         It is also possible to enter any ASCII character from 1 to 255
  2123.         using the numeric keypad on the right of the keyboard.  Press and
  2124.         hold the Alt key then type the decimal ASCII value on the keypad,
  2125.         release the Alt key and the character will appear.  Using the
  2126.         keypad in this way does not require the ESCAPEfunction.
  2127.  
  2128.         Note: To enter an ASCII NUL (character code 0) use the Ctrl-2 key.
  2129.  
  2130.  
  2131.         2.16 FILE
  2132.  
  2133.         Default key: None
  2134.  
  2135.         Writes the current document to disk using the name shown on the
  2136.         status line, then removes the document from the edit ring.
  2137.  
  2138.  
  2139.  
  2140.  
  2141.  
  2142.  
  2143.         
  2144.                                                      Keyboard Functions  28
  2145.  
  2146.         (C) Copyright IBM Corporation 1987, 1993
  2147.         
  2148.         
  2149.         
  2150.         2.17 FOCUS
  2151.  
  2152.         Default key: F12
  2153.  
  2154.         This places the current line onto the defined screen focus line.
  2155.         The focus line is defined by the special setting FOCUS LINE (see
  2156.         "3.0 Settings" on page 36).
  2157.  
  2158.  
  2159.         2.18 HELP
  2160.  
  2161.         Default key: F1
  2162.  
  2163.         Causes the command specified by the special setting HELP COMMAND
  2164.         (see "3.0 Settings" on page 36) to be executed.  Refer to "4.2 The
  2165.         HELP and USER Functions" on page 18 for more details about using
  2166.         the HELP function.
  2167.  
  2168.  
  2169.         2.19 INSERT LINE
  2170.  
  2171.         Default key: Ctrl-Enter and Ctrl-PadEnter
  2172.  
  2173.         Inserts a new blank line following the current line.  If the
  2174.         special setting AUTOMATIC INDENT is ON the cursor will be aligned
  2175.         under the first non-blank character of the preceding line.
  2176.  
  2177.  
  2178.         2.20 INSERT TOGGLE
  2179.  
  2180.         Default key: Ins
  2181.  
  2182.         Toggles the editor between "insert" and "replace" modes.  The shape
  2183.         of the cursor and the Rep/Ins indicator on the status line show
  2184.         which mode is active.
  2185.  
  2186.  
  2187.         2.21 JOIN LINE
  2188.  
  2189.         Default key: Alt-J
  2190.  
  2191.         Joins together the current line and the following line.  The lines
  2192.         are joined with a single blank between them.
  2193.  
  2194.  
  2195.         2.22 LEFT
  2196.  
  2197.         Default key: Left
  2198.  
  2199.         Moves the cursor one character to the left.
  2200.  
  2201.  
  2202.  
  2203.  
  2204.  
  2205.  
  2206.         
  2207.                                                      Keyboard Functions  29
  2208.  
  2209.         (C) Copyright IBM Corporation 1987, 1993
  2210.         
  2211.         
  2212.         
  2213.         2.23 MARK LEFT
  2214.  
  2215.         Default key: Shift-F7
  2216.  
  2217.         The marked lines are shifted one character to the left.  Only the
  2218.         characters to the right of the cursor position are shifted, so if
  2219.         you want to shift the whole line be sure to first position the
  2220.         cursor at the left hand edge.  Any characters moved to the left of
  2221.         the cursor column are lost.
  2222.  
  2223.  
  2224.         2.24 MARK RIGHT
  2225.  
  2226.         Default key: Shift-F8
  2227.  
  2228.         The marked lines are shifted one character to the right.  Only the
  2229.         characters to the right of the cursor position are shifted, so if
  2230.         you want to shift the whole line be sure to first position the
  2231.         cursor at the left hand edge.
  2232.  
  2233.  
  2234.         2.25 MOVE MARK
  2235.  
  2236.         Default key: Alt-M
  2237.  
  2238.         Moves the marked lines so they come after the current line.  If
  2239.         there are several documents in the edit ring this may be used to
  2240.         move lines from one document to another.
  2241.  
  2242.  
  2243.         2.26 NAME
  2244.  
  2245.         Default key: F7
  2246.  
  2247.         Switches to the command line and keys in the command NAME, ready
  2248.         for you to enter a new document name.
  2249.  
  2250.  
  2251.         2.27 NEW LINE
  2252.  
  2253.         Default key: Enter
  2254.  
  2255.         If in "insert" mode this will perform an INSERT LINE function, if
  2256.         in "replace" mode it will perform a NEXT LINE function.
  2257.  
  2258.  
  2259.         2.28 NEXT FILE
  2260.  
  2261.         Default key: F10
  2262.  
  2263.         Makes the next document in the edit ring the current document.
  2264.  
  2265.  
  2266.  
  2267.  
  2268.  
  2269.         
  2270.                                                      Keyboard Functions  30
  2271.  
  2272.         (C) Copyright IBM Corporation 1987, 1993
  2273.         
  2274.         
  2275.         
  2276.         2.29 NEXT LINE
  2277.  
  2278.         Default key: PadEnter
  2279.  
  2280.         Moves the cursor to the start of the next line in the document.
  2281.  
  2282.  
  2283.         2.30 NEXT TAB
  2284.  
  2285.         Default key: Tab
  2286.  
  2287.         Moves the cursor right to the next tab stop.  Tab stops are defined
  2288.         by the special setting TAB SPACING (see "3.0 Settings" on page 36).
  2289.  
  2290.  
  2291.         2.31 NEXT WORD
  2292.  
  2293.         Default key: Ctrl-Right
  2294.  
  2295.         Moves the cursor to the first character of the next word on the
  2296.         line.  A word is considered to be sequence of non-blank characters.
  2297.  
  2298.  
  2299.         2.32 NOTHING
  2300.  
  2301.         This function does nothing.  It is used when customising the editor
  2302.         to remove the default function from a key.
  2303.  
  2304.  
  2305.         2.33 PAGE DOWN
  2306.  
  2307.         Default key: PgDn
  2308.  
  2309.         Scrolls the current document down by one screen-full.
  2310.  
  2311.  
  2312.         2.34 PAGE UP
  2313.  
  2314.         Default key: PgUp
  2315.  
  2316.         Scrolls the current document up by one screen-full.
  2317.  
  2318.  
  2319.         2.35 PREVIOUS FILE
  2320.  
  2321.         Default keys: F11
  2322.  
  2323.         Makes the previous document in the edit ring the current document.
  2324.  
  2325.  
  2326.  
  2327.  
  2328.  
  2329.  
  2330.  
  2331.  
  2332.         
  2333.                                                      Keyboard Functions  31
  2334.  
  2335.         (C) Copyright IBM Corporation 1987, 1993
  2336.         
  2337.         
  2338.         
  2339.         2.36 PREVIOUS TAB
  2340.  
  2341.         Default key: Shift-Tab
  2342.  
  2343.         Moves the cursor left to the previous tab stop.  Tab stops are
  2344.         defined by the special setting TAB SPACING (see "3.0 Settings" on
  2345.         page 36).
  2346.  
  2347.  
  2348.         2.37 PREVIOUS WORD
  2349.  
  2350.         Default key: Ctrl-Left
  2351.  
  2352.         Moves the cursor to the first character of the previous word on the
  2353.         line.  A word is considered to be sequence of non-blank characters.
  2354.  
  2355.  
  2356.         2.38 QUIT
  2357.  
  2358.         Default key: F3
  2359.  
  2360.         Removes the current document from the edit ring.  If changes have
  2361.         been made to the document since it was last saved the message
  2362.         "Throw away changes? (y/n)" is displayed; hit either Y or N as
  2363.         appropriate.
  2364.  
  2365.  
  2366.         2.39 REPEAT FIND
  2367.  
  2368.         Default key: Alt-F
  2369.  
  2370.         Repeats the last LOCATE command that was issued.
  2371.  
  2372.  
  2373.         2.40 REPEAT LINE
  2374.  
  2375.         Default key: Alt-R
  2376.  
  2377.         Inserts a copy of the current line immediately following the
  2378.         current line.
  2379.  
  2380.  
  2381.         2.41 RIGHT
  2382.  
  2383.         Default key: Right
  2384.  
  2385.         Moves the cursor one character to the right.
  2386.  
  2387.  
  2388.         2.42 SAFE FILE
  2389.  
  2390.         Default key: F4
  2391.  
  2392.         If the document has changed this performs the FILEfunction, if the
  2393.         document has not changed it performs a QUIT.
  2394.  
  2395.         
  2396.                                                      Keyboard Functions  32
  2397.  
  2398.         (C) Copyright IBM Corporation 1987, 1993
  2399.         
  2400.         
  2401.         
  2402.         2.43 SAVE
  2403.  
  2404.         Default key: F2
  2405.  
  2406.         Writes the current document to disk under the name shown on the
  2407.         status line.
  2408.  
  2409.  
  2410.         2.44 SCROLL DOWN
  2411.  
  2412.         Default key: Shift-F4
  2413.  
  2414.         Scrolls the entire screen down by one line.
  2415.  
  2416.  
  2417.         2.45 SCROLL LEFT
  2418.  
  2419.         Default key: Shift-F1
  2420.  
  2421.         Scrolls the entire screen left by one character.
  2422.  
  2423.  
  2424.         2.46 SCROLL RIGHT
  2425.  
  2426.         Default key: Shift-F2
  2427.  
  2428.         Scrolls the entire screen right by one character.
  2429.  
  2430.  
  2431.         2.47 SCROLL UP
  2432.  
  2433.         Default key: Shift-F3
  2434.  
  2435.         Scrolls the entire screen up by one line.
  2436.  
  2437.  
  2438.         2.48 SET MARK
  2439.  
  2440.         Default key: Alt-L
  2441.  
  2442.         Marks one or more lines thus:
  2443.  
  2444.         -  If no lines are marked the current line only is marked.
  2445.  
  2446.         -  If one or more lines are already marked and the current line is
  2447.            outside the mark, the mark is extended to include the current
  2448.            line.
  2449.  
  2450.         -  If one or more lines are already marked and the current line is
  2451.            inside the mark, the mark is shrunk so the current line becomes
  2452.            the bottom of the mark.
  2453.  
  2454.  
  2455.  
  2456.  
  2457.  
  2458.         
  2459.                                                      Keyboard Functions  33
  2460.  
  2461.         (C) Copyright IBM Corporation 1987, 1993
  2462.         
  2463.         
  2464.         
  2465.         2.49 SPLIT LINE
  2466.  
  2467.         Default key: Alt-S
  2468.  
  2469.         Splits the current line into two at the cursor position.  If the
  2470.         special setting AUTOMATIC INDENT is ON the split-off portion aligns
  2471.         under the first non-blank character of the preceding line.
  2472.  
  2473.  
  2474.         2.50 START OF LINE
  2475.  
  2476.         Default key: Home
  2477.  
  2478.         Moves the cursor to the beginning of the current line.
  2479.  
  2480.  
  2481.         2.51 TOP OF FILE
  2482.  
  2483.         Default key: Ctrl-Home
  2484.  
  2485.         Makes the current line the first line in the document, and
  2486.         positions this line at the top of the screen.
  2487.  
  2488.  
  2489.         2.52 TOP OF MARK
  2490.  
  2491.         Default key: Alt-Y
  2492.  
  2493.         Makes the current line the first marked line.  If the marked lines
  2494.         are in a different document that document will become the current
  2495.         document.
  2496.  
  2497.  
  2498.         2.53 TOP OF SCREEN
  2499.  
  2500.         Default key: Ctrl-PgUp
  2501.  
  2502.         Moves the cursor to the first line of the document on the screen.
  2503.  
  2504.  
  2505.         2.54 TRUNCATE LINE
  2506.  
  2507.         Default keys: Alt-T
  2508.  
  2509.         Deletes all the characters on the current line to the right of the
  2510.         cursor.
  2511.  
  2512.  
  2513.         2.55 UNDO
  2514.  
  2515.         Default key: F9
  2516.  
  2517.         Provides a very limited error recovery.  Any changes made to the
  2518.         current line are undone.
  2519.  
  2520.  
  2521.         
  2522.                                                      Keyboard Functions  34
  2523.  
  2524.         (C) Copyright IBM Corporation 1987, 1993
  2525.         
  2526.         
  2527.         
  2528.         2.56 UP
  2529.  
  2530.         Default key: Up
  2531.  
  2532.         Moves the cursor up one line.
  2533.  
  2534.  
  2535.         2.57 USER
  2536.  
  2537.         Default key: F5
  2538.  
  2539.         Causes the command specified by the special setting USER COMMAND
  2540.         (see "3.0 Settings" on page 36) to be executed.  Refer to "4.2 The
  2541.         HELP and USER Functions" on page 18 for more information about the
  2542.         USER function.
  2543.  
  2544.  
  2545.  
  2546.  
  2547.  
  2548.  
  2549.  
  2550.  
  2551.  
  2552.  
  2553.  
  2554.  
  2555.  
  2556.  
  2557.  
  2558.  
  2559.  
  2560.  
  2561.  
  2562.  
  2563.  
  2564.  
  2565.  
  2566.  
  2567.  
  2568.  
  2569.  
  2570.  
  2571.  
  2572.  
  2573.  
  2574.  
  2575.  
  2576.  
  2577.  
  2578.  
  2579.  
  2580.  
  2581.  
  2582.  
  2583.  
  2584.         
  2585.                                                      Keyboard Functions  35
  2586.  
  2587.         (C) Copyright IBM Corporation 1987, 1993
  2588.         
  2589.         
  2590.         
  2591.         3.0 SETTINGS
  2592.  
  2593.         This section describes each of the special settings that may be
  2594.         defined when customising the editor.  These are entered in a custom
  2595.         definition file using entries of the form:
  2596.  
  2597.              SET item = value
  2598.  
  2599.  
  2600.  
  2601.  
  2602.         3.1 AUTOMATIC INDENT
  2603.  
  2604.              SET AUTOMATIC INDENT = ON
  2605.          or  SET AUTOMATIC INDENT = OFF
  2606.  
  2607.  
  2608.         This defines what the cursor will do when a new line is inserted.
  2609.         If it is set ON the cursor will be automatically indented so it
  2610.         aligns under the first non-blank character of the preceding line.
  2611.         If it is set OFF the cursor will always move to the left hand edge.
  2612.  
  2613.         The action of word-spill and the functions SPLIT LINE and ADJUST
  2614.         LINE are also affected by this setting.
  2615.  
  2616.  
  2617.         3.2 CGA SNOW
  2618.  
  2619.              SET CGA SNOW = ON
  2620.          or  SET CGA SNOW = OFF
  2621.  
  2622.  
  2623.         The old CGA card for the PC can produce "snow" on the display if
  2624.         the display is updated at the wrong times.  This can be eliminated
  2625.         but at the expense of slowing down scrolling speed.  When set to
  2626.         OFF T will look for the presence of the old CGA card and if it
  2627.         finds one it will ensure the snow does not occur.  When set to ON
  2628.         T will not attempt to eliminate the snow.
  2629.  
  2630.         Some types of display may appear to T as the old CGA adapter when
  2631.         in fact they are not and so could never create the snow problem.
  2632.         This is true for PCJrs, 3270PCs, some clone displays and the LCD
  2633.         displays found on many older laptops.  When using one of these
  2634.         displays setting CGA SNOW to ON may improve scrolling speed
  2635.         somewhat.
  2636.  
  2637.         This setting is ignored if a more recent display adapter (EGA, VGA,
  2638.         SVGA etc.) is installed, since these can never suffer from the
  2639.         "snow" problem.
  2640.  
  2641.  
  2642.  
  2643.  
  2644.  
  2645.  
  2646.  
  2647.         
  2648.                                                                Settings  36
  2649.  
  2650.         (C) Copyright IBM Corporation 1987, 1993
  2651.         
  2652.         
  2653.         
  2654.         3.3 COMMAND RECALL
  2655.  
  2656.              SET COMMAND RECALL = ON
  2657.          or  SET COMMAND RECALL = OFF
  2658.  
  2659.  
  2660.         This specifies whether or not previous command line commands will
  2661.         be kept available for recall by the cursor up and cursor down keys.
  2662.         If it is set ON command line commands are saved, if it is set OFF
  2663.         commands cannot be recalled.
  2664.  
  2665.  
  2666.         3.4 COMMAND TOGGLE
  2667.  
  2668.              SET COMMAND TOGGLE = DATA
  2669.          or  SET COMMAND TOGGLE = COMMAND
  2670.  
  2671.  
  2672.         This determines whether, when a new document is loaded, the cursor
  2673.         starts in the data area or on the command line.
  2674.  
  2675.  
  2676.         3.5 EXACT MATCH
  2677.  
  2678.              SET EXACT MATCH = ON
  2679.          or  SET EXACT MATCH = OFF
  2680.  
  2681.  
  2682.         This determines whether, by default, LOCATE commands take account
  2683.         of upper and lower case during searching.  If set ON the search
  2684.         must match exactly, if set OFF upper and lower case are considered
  2685.         identical.  The default can always be overridden with the locate
  2686.         command options "e" or "c".
  2687.  
  2688.         Note: Exact case match searches are very much faster and would be
  2689.         preferable when searching large documents.
  2690.  
  2691.  
  2692.         3.6 FOCUS LINE
  2693.  
  2694.              SET FOCUS LINE = row
  2695.          or  SET FOCUS LINE = -row
  2696.          or  SET FOCUS LINE = OFF
  2697.  
  2698.  
  2699.         The FOCUS LINE is the line within the data area that is used to
  2700.         display the current line when the FOCUS keyboard function is used.
  2701.         It is also the line used to display the result of a LOCATE or GOTO
  2702.         command.  The line may be specified as a positive number from the
  2703.         top of the screen or a negative number from the bottom of the
  2704.         screen.
  2705.  
  2706.         If set to OFF no focus row is defined.  The FOCUS function will
  2707.         have no effect and the target of LOCATE and GOTO commands will be
  2708.         displayed on whatever line currently contains the cursor.
  2709.  
  2710.         
  2711.                                                                Settings  37
  2712.  
  2713.         (C) Copyright IBM Corporation 1987, 1993
  2714.         
  2715.         
  2716.         
  2717.         3.7 HELP COMMAND
  2718.  
  2719.              SET HELP COMMAND = command
  2720.  
  2721.  
  2722.         The "command" should be a enclosed in single or double quotes.  It
  2723.         is the T command that will be executed when the HELP keyboard
  2724.         function is pressed.  Any valid T command can be given.
  2725.  
  2726.         For example:
  2727.  
  2728.              SET HELP COMMAND = "T THELP.HLP"
  2729.  
  2730.  
  2731.  
  2732.  
  2733.         3.8 HELP LINE
  2734.  
  2735.              SET HELP LINE = text
  2736.  
  2737.  
  2738.         The "text" should be enclosed in single or double quotes.  It is
  2739.         the text that will be displayed on the bottom line of the screen
  2740.         when there are no messages.
  2741.  
  2742.         Several "text" strings may be specified and they will concatenated
  2743.         together, this can be useful if you want to split the text over
  2744.         more than one line.
  2745.  
  2746.         For example:
  2747.  
  2748.              SET HELP LINE = "F1=Help F2=Save F3=Quit"
  2749.  
  2750.  
  2751.  
  2752.  
  2753.         3.9 INSERT CURSOR
  2754.  
  2755.              SET INSERT CURSOR = LINE
  2756.          or  SET INSERT CURSOR = HALF
  2757.          or  SET INSERT CURSOR = FULL
  2758.  
  2759.  
  2760.         This sets the shape of the cursor that is used when T is in
  2761.         "insert" typing mode.  LINE uses an underscore line cursor, HALF
  2762.         uses a half-height character block and FULL uses a full-height
  2763.         character block.
  2764.  
  2765.  
  2766.         3.10 INSERT TOGGLE
  2767.  
  2768.              SET INSERT TOGGLE = REPLACE
  2769.          or  SET INSERT TOGGLE = INSERT
  2770.  
  2771.  
  2772.  
  2773.         
  2774.                                                                Settings  38
  2775.  
  2776.         (C) Copyright IBM Corporation 1987, 1993
  2777.         
  2778.         
  2779.         
  2780.         This determines whether T initially starts up in "insert" or
  2781.         "replace" mode.
  2782.  
  2783.  
  2784.         3.11 KEYBOARD TYPE
  2785.  
  2786.              SET KEYBOARD TYPE = DEFAULT
  2787.          or  SET KEYBOARD TYPE = STANDARD
  2788.  
  2789.  
  2790.         If set to DEFAULT T will test if an Enhanced Keyboard (with 12
  2791.         F-keys across the top) is installed and if it finds one it will
  2792.         automatically make full use of it.
  2793.  
  2794.         If set to STANDARD T will assume the keyboard is an old style
  2795.         keyboard (with 10 F-keys over on the left).  This provides
  2796.         compatibility with some clone BIOSs and with some older TSR
  2797.         programs, but loses the ability to use the newer keys like F11 and
  2798.         F12.  See "4.3 The Enhanced Keyboard" on page 19 for more details.
  2799.  
  2800.  
  2801.         3.12 LINE END
  2802.  
  2803.              SET LINE END = DEFAULT
  2804.          or  SET LINE END = DOS
  2805.          or  SET LINE END = UNIX
  2806.  
  2807.  
  2808.         This determines how line ends will be interpreted when files are
  2809.         read from and written to disk.  If set to DOS line ends are
  2810.         indicated by the pair of characters hex 0D (carriage return)
  2811.         followed by hex 0A (line feed), as is the standard for DOS
  2812.         applications.  If set to UNIX lines ends are indicated by the
  2813.         single character hex 0A (new line), as is the standard for UNIX
  2814.         applications.
  2815.  
  2816.         When set to DEFAULT, T will read both DOS and UNIX style files and
  2817.         will always write DOS style files.
  2818.  
  2819.  
  2820.         3.13 REPLACE CURSOR
  2821.  
  2822.              SET REPLACE CURSOR = LINE
  2823.          or  SET REPLACE CURSOR = HALF
  2824.          or  SET REPLACE CURSOR = FULL
  2825.  
  2826.  
  2827.         This sets the shape of the cursor that is used when T is in
  2828.         "replace" typing mode.  LINE uses an underscore line cursor, HALF
  2829.         uses a half-height character block and FULL uses a full-height
  2830.         character block.
  2831.  
  2832.  
  2833.  
  2834.  
  2835.  
  2836.         
  2837.                                                                Settings  39
  2838.  
  2839.         (C) Copyright IBM Corporation 1987, 1993
  2840.         
  2841.         
  2842.         
  2843.         3.14 RIGHT MARGIN
  2844.  
  2845.              SET RIGHT MARGIN = column
  2846.          or  SET RIGHT MARGIN = OFF
  2847.  
  2848.  
  2849.         This sets an initial right hand margin column.  See "3.4 Word
  2850.         Processing" on page 10 for details about the function of the
  2851.         margin.  If set to OFF no initial margin is set.
  2852.  
  2853.  
  2854.         3.15 SEGMENT SIZE
  2855.  
  2856.              SET SEGMENT SIZE = DEFAULT
  2857.          or  SET SEGMENT SIZE = size
  2858.  
  2859.  
  2860.         This determines the size of the storage segments that T obtains
  2861.         from the operating system.  It should be set to a number between 8
  2862.         and 64 which specifies the segment size in K-bytes, or to DEFAULT
  2863.         which gives the best size for the operating system.  In turn this
  2864.         segment size determines the maximum line length that can be
  2865.         handled; the maximum being a few bytes less than the segment size.
  2866.  
  2867.         In general DOS works best with smaller segment sizes and OS/2 works
  2868.         better with larger sizes.  Setting DEFAULT will provide 8K segments
  2869.         under DOS and 64K under OS/2.
  2870.  
  2871.  
  2872.         3.16 TAB EXPAND
  2873.  
  2874.              SET TAB EXPAND = ON
  2875.          or  SET TAB EXPAND = OFF
  2876.  
  2877.  
  2878.         This setting determines how T will treat tab characters in
  2879.         documents that are read from disk.  If set ON tabs will be expanded
  2880.         with spaces up to the next tab stop (as determined by the TAB
  2881.         SPACING setting).  If set OFF tabs are treated just like any other
  2882.         character.
  2883.  
  2884.         Note: If set ON the tabs are expanded to spaces as the document is
  2885.         loaded from disk and are then discarded.  If the document is saved
  2886.         it will not contain the original tab characters.
  2887.  
  2888.  
  2889.         3.17 TAB SPACING
  2890.  
  2891.              SET TAB SPACING = number
  2892.  
  2893.  
  2894.         Tabs are equally spaced across the document starting from column 1.
  2895.         The spacing is set with this option.
  2896.  
  2897.  
  2898.  
  2899.         
  2900.                                                                Settings  40
  2901.  
  2902.         (C) Copyright IBM Corporation 1987, 1993
  2903.         
  2904.         
  2905.         
  2906.         For example:
  2907.  
  2908.              SET TAB SPACING = 8
  2909.  
  2910.  
  2911.  
  2912.  
  2913.         3.18 USER COMMAND
  2914.  
  2915.              SET USER COMMAND = command
  2916.  
  2917.  
  2918.         The "command" should be enclosed in single or double quotes.  It is
  2919.         the T command that will be executed when the USER keyboard function
  2920.         is pressed.  Any valid T command can given.
  2921.  
  2922.         For example:
  2923.  
  2924.              SET USER COMMAND = "DOS"
  2925.  
  2926.  
  2927.  
  2928.  
  2929.  
  2930.  
  2931.  
  2932.  
  2933.  
  2934.  
  2935.  
  2936.  
  2937.  
  2938.  
  2939.  
  2940.  
  2941.  
  2942.  
  2943.  
  2944.  
  2945.  
  2946.  
  2947.  
  2948.  
  2949.  
  2950.  
  2951.  
  2952.  
  2953.  
  2954.  
  2955.  
  2956.  
  2957.  
  2958.  
  2959.  
  2960.  
  2961.  
  2962.         
  2963.                                                                Settings  41
  2964.  
  2965.         (C) Copyright IBM Corporation 1987, 1993
  2966.         
  2967.         
  2968.         
  2969.         APPENDIX A.  MESSAGES
  2970.  
  2971.         This section provides a list of all the messages that T produces.
  2972.         It gives the reasons for each message and the action that should be
  2973.         taken.
  2974.  
  2975.         Except where noted these messages will all be displayed in the
  2976.         editor's message line and will be removed at the next keystroke.
  2977.  
  2978.         Cannot call OS
  2979.  
  2980.         The DOS command was unable to start up a secondary DOS or OS/2
  2981.         command processor.  Normally this indicates that there is not
  2982.         enough free memory, you will have to remove some documents from the
  2983.         ring if you want to issue the DOS command.
  2984.  
  2985.         If you believe there is enough free memory and the problem still
  2986.         exists it may be that DOS cannot locate its command processor.
  2987.         From the DOS prompt issue the command SET; you should see a series
  2988.         of lines one of which is of this form indicating where your copy of
  2989.         COMMAND.COM is located:
  2990.  
  2991.              COMSPEC=d:\path\COMMAND.COM
  2992.  
  2993.  
  2994.         If this is not present or is incorrect you may need to add a SET
  2995.         COMSPEC= line to your AUTOEXEC.BAT file.
  2996.  
  2997.         Cannot open file
  2998.  
  2999.         T is unable to open the requested disk file.  Normally this means
  3000.         that the filename is invalid for some reason, perhaps it contains
  3001.         characters not valid in a file name, or perhaps it conflicts with
  3002.         the name of a device or directory already on the disk.
  3003.  
  3004.         On a diskette system it may also indicate that the diskette drive
  3005.         is not ready, perhaps it does not contain a diskette or the drive
  3006.         door is open.
  3007.  
  3008.         Error reading file
  3009.  
  3010.         An error occurred while a document was being read from disk.  This
  3011.         is rare error and might indicate there are problems with the disk.
  3012.  
  3013.         Error writing file - NOT saved
  3014.  
  3015.         An error occurred while a document was being written to disk.
  3016.         Normally this means the disk became full while the file was being
  3017.         written.  You should save the file to another disk, one that has
  3018.         enough free space.
  3019.  
  3020.         File not found
  3021.  
  3022.         You attempted to GET a file that does not exist.  Check the
  3023.         spelling of the filename, maybe the file you want is not in the
  3024.  
  3025.         
  3026.                                                   Appendix A.  Messages  42
  3027.  
  3028.         (C) Copyright IBM Corporation 1987, 1993
  3029.         
  3030.         
  3031.         
  3032.         current directory and so needs a drive and/or directory path
  3033.         pre-pended to it.
  3034.  
  3035.         Incorrect parameter
  3036.  
  3037.         The parameter supplied to a T command was incorrect.  For the GOTO
  3038.         and MARGIN command the parameter must be a number less than 65535,
  3039.         for the QUIT command no parameter other than ALL is valid.
  3040.  
  3041.         Line too long
  3042.  
  3043.         This message indicates an attempt was made to load or to create a
  3044.         line longer than the maximum possible line length.  If this happens
  3045.         while loading a file the load will be aborted, the document in
  3046.         memory will be incomplete so you should QUIT straight away without
  3047.         saving.  Maximum line length is affected by the SEGMENT SIZE
  3048.         special setting - refer to "3.0 Settings" on page 36 for more
  3049.         details.
  3050.  
  3051.         Loading...
  3052.  
  3053.         Displays while a document is being loaded from disk.
  3054.  
  3055.         Mark already set
  3056.  
  3057.         You tried to mark a line, but a mark already exists in another
  3058.         document in the ring, only one document at a time may contain a
  3059.         mark.  If you no longer require the other mark first use the
  3060.         function CLEAR MARK.
  3061.  
  3062.         New file
  3063.  
  3064.         You asked to edit a document that does not exist on disk.  T has
  3065.         created a new empty document with the name you specified.
  3066.  
  3067.         No filename given
  3068.  
  3069.         The commands GET, PUT and APPEND must have a filename parameter
  3070.         specified.
  3071.  
  3072.         No marked lines
  3073.  
  3074.         The commands PUT and APPEND work on the currently marked lines.
  3075.         Some lines must be marked if the command is used.
  3076.  
  3077.         No match found
  3078.  
  3079.         The "target" specified in a LOCATE or CHANGE command cannot be
  3080.         found.  Remember that these commands only search from the current
  3081.         position forwards to the end of the document.  To search from the
  3082.         top first use the function TOP OF FILE.
  3083.  
  3084.         Out of memory
  3085.  
  3086.  
  3087.  
  3088.         
  3089.                                                   Appendix A.  Messages  43
  3090.  
  3091.         (C) Copyright IBM Corporation 1987, 1993
  3092.         
  3093.         
  3094.         
  3095.         T has run out of memory, you should save one or more of the
  3096.         documents in the ring to make space before continuing.  Most T
  3097.         commands and functions have no effect while the "Out of memory"
  3098.         condition exists.
  3099.  
  3100.         Press any key to continue
  3101.  
  3102.         This message is printed by the secondary DOS or OS/2 command shell
  3103.         started by the DOS command.  It is produced just before the command
  3104.         shell returns to T, and allows you some time to read whatever
  3105.         output is on the screen.
  3106.  
  3107.         Printer not ready
  3108.  
  3109.         The PRINT command could not complete correctly.  This may mean the
  3110.         printer is not turned on or set online, or it is not connected, or
  3111.         that it has run out of paper.  Or any number of other reasons that
  3112.         cause printers to fail.
  3113.  
  3114.         Printing...
  3115.  
  3116.         Displays while a document is being printed.
  3117.  
  3118.         Saving...
  3119.  
  3120.         Displays while a document is being saved.
  3121.  
  3122.         Source and destination conflict
  3123.  
  3124.         You cannot move or copy marked lines on top of themselves.  Move
  3125.         the cursor out of the marked area and try again.
  3126.  
  3127.         T cannot be started
  3128.  
  3129.         This message is printed by DOS if, when T is first loaded, there is
  3130.         not enough free memory get it started.  This can happen if you have
  3131.         a lot of TSR type programs loaded or if you are nested inside
  3132.         several other applications.
  3133.  
  3134.         Throw away changes? (y/n)
  3135.  
  3136.         You tried to QUIT a document that has been changed since it was
  3137.         last saved.  This message gives you a chance to save changes if the
  3138.         QUIT was selected accidentally.
  3139.  
  3140.         Type a character...
  3141.  
  3142.         The ESCAPE function takes the next character entered on the
  3143.         keyboard as an absolute ASCII code and enters it into the document.
  3144.         While ESCAPE is waiting for this character it displays a message.
  3145.  
  3146.         Unknown command
  3147.  
  3148.         You entered a command on the command line that is not a T command.
  3149.         Check the spelling of the command, or precede it by the word DOS
  3150.  
  3151.         
  3152.                                                   Appendix A.  Messages  44
  3153.  
  3154.         (C) Copyright IBM Corporation 1987, 1993
  3155.         
  3156.         
  3157.         
  3158.         (or a full stop) if it is a DOS or OS/2 command rather than a T
  3159.         command.
  3160.  
  3161.         Yes/No/Go/Last/Quit?
  3162.  
  3163.         The CHANGE command issues this message when it finds its
  3164.         "target" text.  Refer to "1.2 CHANGE" on page 21 for details of the
  3165.         CHANGE command.
  3166.  
  3167.  
  3168.  
  3169.  
  3170.  
  3171.  
  3172.  
  3173.  
  3174.  
  3175.  
  3176.  
  3177.  
  3178.  
  3179.  
  3180.  
  3181.  
  3182.  
  3183.  
  3184.  
  3185.  
  3186.  
  3187.  
  3188.  
  3189.  
  3190.  
  3191.  
  3192.  
  3193.  
  3194.  
  3195.  
  3196.  
  3197.  
  3198.  
  3199.  
  3200.  
  3201.  
  3202.  
  3203.  
  3204.  
  3205.  
  3206.  
  3207.  
  3208.  
  3209.  
  3210.  
  3211.  
  3212.  
  3213.  
  3214.         
  3215.                                                   Appendix A.  Messages  45
  3216.  
  3217.         (C) Copyright IBM Corporation 1987, 1993
  3218.         
  3219.         
  3220.         
  3221.         APPENDIX B.  USER DEFINABLE KEYS
  3222.  
  3223.         This section lists all the valid names and combinations of the user
  3224.         definable keys that can be entered in a custom definition file.
  3225.  
  3226.         Keys shown in parentheses are only available with the Enhanced
  3227.         Keyboard.
  3228.  
  3229.         -------------------------------------------------------------------
  3230.           Table 1. Unshifted Keys
  3231.           Esc           Enter        Tab          Backspace    (PadEnter)
  3232.           F1            F2           F3           F4           F5        
  3233.           F6            F7           F8           F9           F10       
  3234.           (F11)         (F12)                                            
  3235.           Home          End          PgUp         PgDn                   
  3236.           Left          Right        Up           Down                   
  3237.           Ins           Del          (Pad5)                              
  3238.                                                                          
  3239.         -------------------------------------------------------------------
  3240.  
  3241.         -------------------------------------------------------------------
  3242.           Table 2. Shift Keys
  3243.           s-Tab                                                          
  3244.           s-F1          s-F2         s-F3         s-F4         s-F5      
  3245.           s-F6          s-F7         s-F8         s-F9         s-F10     
  3246.           (s-F11)       (s-F12)                                          
  3247.                                                                          
  3248.         -------------------------------------------------------------------
  3249.  
  3250.         -------------------------------------------------------------------
  3251.           Table 3. Ctrl Keys
  3252.           c-Enter       (c-Tab)      c-Backspace   (c-PadEnter)             
  3253.           c-a           c-b          c-c          c-d          c-e       
  3254.           c-f           c-g          c-h          c-i          c-j       
  3255.           c-k           c-l          c-m          c-n          c-o       
  3256.           c-p           c-q          c-r          c-s          c-t       
  3257.           c-u           c-v          c-w          c-x          c-y       
  3258.           c-z                                                            
  3259.           c-2           c-6                                              
  3260.           c-F1          c-F2         c-F3         c-F4         c-F5      
  3261.           c-F6          c-F7         c-F8         c-F9         c-F10     
  3262.           (c-F11)       (c-F12)                                          
  3263.           c-Home        c-End        c-PgUp       c-PgDn                 
  3264.           c-Left        c-Right      (c-Up)       (c-Down)               
  3265.           (c-Ins)       (c-Del)      (c-Pad5)                            
  3266.           c--           c-[          c-]          c-\                    
  3267.                                                                          
  3268.         -------------------------------------------------------------------
  3269.  
  3270.  
  3271.  
  3272.  
  3273.  
  3274.  
  3275.  
  3276.  
  3277.         
  3278.                                        Appendix B.  User Definable Keys  46
  3279.  
  3280.         (C) Copyright IBM Corporation 1987, 1993
  3281.         
  3282.         
  3283.         
  3284.         -------------------------------------------------------------------
  3285.           Table 4. Alt Keys
  3286.           (a-Enter)     (a-Tab)      (a-Backspace)   (a-PadEnter)             
  3287.           a-a           a-b          a-c          a-d          a-e       
  3288.           a-f           a-g          a-h          a-i          a-j       
  3289.           a-k           a-l          a-m          a-n          a-o       
  3290.           a-p           a-q          a-r          a-s          a-t       
  3291.           a-u           a-v          a-w          a-x          a-y       
  3292.           a-z                                                            
  3293.           a-1           a-2          a-3          a-4          a-5       
  3294.           a-6           a-7          a-8          a-9          a-0       
  3295.           a-F1          a-F2         a-F3         a-F4         a-F5      
  3296.           a-F6          a-F7         a-F8         a-F9         a-F10     
  3297.           (a-F11)       (a-F12)                                          
  3298.           (a-Home)      (a-End)      (a-PgUp)     (a-PgDn)               
  3299.           (a-Left)      (a-Right)    (a-Up)       (a-Down)               
  3300.           (a-Ins)       (a-Del)                                          
  3301.           a--           a-=                                              
  3302.                                                                          
  3303.         -------------------------------------------------------------------
  3304.  
  3305.  
  3306.  
  3307.  
  3308.  
  3309.  
  3310.  
  3311.  
  3312.  
  3313.  
  3314.  
  3315.  
  3316.  
  3317.  
  3318.  
  3319.  
  3320.  
  3321.  
  3322.  
  3323.  
  3324.  
  3325.  
  3326.  
  3327.  
  3328.  
  3329.  
  3330.  
  3331.  
  3332.  
  3333.  
  3334.  
  3335.  
  3336.  
  3337.  
  3338.  
  3339.  
  3340.         
  3341.                                        Appendix B.  User Definable Keys  47
  3342.  
  3343.         ===================================================================
  3344.  
  3345.  
  3346.  
  3347.  
  3348.  
  3349.  
  3350.  
  3351.  
  3352.  
  3353.  
  3354.  
  3355.  
  3356.  
  3357.  
  3358.  
  3359.         ===================================================================
  3360.  
  3361.         (C) Copyright IBM Corporation 1987, 1993
  3362.  
  3363.  
  3364.  
  3365.  
  3366.  
  3367.  
  3368.  
  3369.  
  3370.  
  3371.  
  3372.  
  3373.  
  3374.  
  3375.  
  3376.  
  3377.  
  3378.  
  3379.  
  3380.  
  3381.  
  3382.  
  3383.  
  3384.  
  3385.  
  3386.  
  3387.  
  3388.  
  3389.  
  3390.  
  3391.  
  3392.  
  3393.  
  3394.  
  3395.  
  3396.  
  3397.  
  3398.  
  3399.  
  3400.  
  3401.  
  3402.  
  3403.  
  3404.                                                         Printed in the U.K.