home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / netdor3.zip / DISK_13 / IMAGE12.ZIP / CATALOG / TINYED.DSC < prev    next >
Text File  |  1993-07-13  |  4KB  |  108 lines

  1. (C) Copyright IBM Corporation 1987, 1992
  2.  
  3. T v2.00 - A Tiny Editor
  4.  
  5.  
  6. There are times even in today's world of multi-megabyte personal
  7. computers when a quick, simple and small text editor is of benefit.
  8. With a .EXE file of less than 9K bytes T is designed to fit that role.
  9. For the DOS user trying to cram more and more into 640K the advantages
  10. of small size are obvious, for the OS/2 user the speed and ability to
  11. run when even Presentation Manager is unavailable may prove just as
  12. useful.
  13.  
  14. This document gives a very brief introduction to the Tiny Editor.
  15. Refer to the full documentation in T.DOC for all the details of the
  16. editor's command and keyboard functions.  T.DOC also describes how T
  17. may be customised to suit individual preferences for things like
  18. screen colours and keyboard layouts.
  19.  
  20.  
  21. Simple Editing
  22.  
  23. To start the editor just enter the command T from a DOS prompt or T2
  24. from an OS/2 prompt.  This command can be followed by any number of
  25. filenames which will be loaded ready for editing.  If no filenames are
  26. given a new empty file will be created.
  27.  
  28. The cursor starts out on the editor's command line (the third line up
  29. from the bottom).  Any valid T command may be entered on the command
  30. line and is executed when the Enter key is pressed.  Some valid
  31. commands include:
  32.  
  33. EDIT   - To load a new file into the editor.
  34.  
  35. FILE   - To write the currently displayed file back to disk.
  36.  
  37. PRINT  - To print the currently displayed file.
  38.  
  39. DOS    - To run a DOS or OS/2 command.
  40.  
  41. The cursor can be moved between the command line and the file's data
  42. area by pressing the Esc key.  In the data area it can be moved
  43. anywhere between the "Top Of File" and "Bottom Of File" markers.  At
  44. any point new text can be entered or the existing text changed.  To
  45. add a new line press Ctrl-Enter and to delete a line press
  46. Ctrl-Backspace.
  47.  
  48. One or more lines can be marked by pressing Alt-L on the first and
  49. last lines of the block to be marked.  Marked lines can be moved by
  50. pressing Alt-M, copied with Alt-C or deleted with Alt-D.
  51.  
  52. The current line can be repeated with Alt-R, split at the cursor
  53. position with Alt-S and joined with the following line with Alt-J.
  54.  
  55. If more than one file is being edited at once the "ring" of files can
  56. be cycled round by pressing F10 or F11.  Editing several files at once
  57. if particularly useful in conjunction with marked lines as lines from
  58. one file can be moved or copied into a different file.
  59.  
  60. When all the required changes have been made the file can be written
  61. back to disk by pressing F2 and quitted with F3.  Alternatively F4
  62. will perform both these actions in one go.  If you decide to abandon
  63. all the changes made just press F3 and answer the question "Throw away
  64. changes?" with a "y".
  65.  
  66. To search for a particular piece of text, switch onto the command line
  67. and enter the command:
  68.  
  69. /text
  70.  
  71. T will search from the current cursor position forwards to find the
  72. next occurrence of the "text".  Normally T requires an exact-case
  73. match (i.e. it would not find TEXT or even Text); to force any
  74. any-case match add a "c" option to the command like this: /text/c
  75.  
  76. To do a search and replace, again switch onto the command line and
  77. this time use the command:
  78.  
  79. c/this/that
  80.  
  81. This will find the next occurrence of "this" and ask a question:
  82. "Yes/No/Go/Last/Quit?".  Respond with a Y, N, G, L or Q as required:
  83.  
  84. Yes   - to change "this" to "that" and search for the next "this".
  85.  
  86. No    - to not make the change, but continue the search for the next "this".
  87.  
  88. Go    - to make this change and all subsequent changes up to the end of the file.
  89.  
  90. Last  - to make this change and to stop searching.
  91.  
  92. Quit  - to not make this change and to stop searching.
  93.  
  94. To make all the changes straightaway, without prompting add the "*"
  95. option to the change command like so: c/this/that/*
  96.  
  97.  
  98. Customisation
  99.  
  100. T may be customised to change the colours, keyboard assignments and
  101. one or two other settings.  Take a look at the TKEYS.DEF file which
  102. describes the standard configuration.  If you want to alter it, make a
  103. copy of TKEYS.DEF and edit it to reflect your required changes.  Then
  104. run the TKEY.EXE customiser program to update the editor, like this:
  105.  
  106.    TKEY TKEYS.DEF T.EXE
  107.  
  108.