home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Professional Developers Kit 1992 November / Disc01 / Disc01.mdf / install / tinyed.dsc < prev    next >
Encoding:
Text File  |  1992-10-31  |  4.9 KB  |  120 lines

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