TECO Cursor Mode Editor V2 ~~~~~~~~~~~~~~~~~~~~~~~~~~ This is started by typing CU from TSX (or @C from RT-11). It works quite well under TSX, but there can be problems with echoing during complicated edits. (This may be improved in future versions). If in any doubt, type or U to update the screen. Creating new text is most efficient if is used to correct typing errors, as this immediately corrects the local TSX line buffer. All other editing commands are passed immediately to TECO. Insertions appear to overtype existing text, but all becomes clear when you use any command or cursor movement! It is often best to type ahead without waiting for the screen to catch up. As cursor movements are very slow, use CTRL/F and CTRL/B when possible. This version offers easy to remember sequences as alternatives to the keypad commands. Where appropriate (*) these can be prefixed by number for a repeat count. (For a fuller explanation, see the VT52.TEC documentation.) E End of line CTRL/B Backward move by word* F Toggle fixed mode CTRL/C Abort from macro I Insert line* CTRL/D Delete rest of line* J Jump to start of line CTRL/E Erase word* K TECO kommand CTRL/F Forward move by word* L Literal char follows CTRL/K Kill line* M Margin alignment* CTRL/T Top of file N Next page* CTRL/U Kill start of line P Put line(s) in buffer* CTRL/V Toggle seeall mode R Retrieve lines CTRL/Z Exit and update S Search for string Local delete T Top of page Delete previous* U Update screen <5> Delete character* V Left margin* <.> Repeat last search* W Right margin width* <0> Next line* X Delete string/line(s) Redisplay line Z End of page n Repeat n times Repeat last TECO kommand After CTRL/C type EX to update the file, or CTRL/C CTRL/C to abort the edit. Alternatively cursor editing can be restarted by typing MI. A new file can be edited by typing MX. Note that X deletes the line(s) just put in the buffer by P, or searched for by S. Additions to VT52.TEC: CTRL/B - Backward move by word(s) CTRL/E - Erase word(s) CTRL/F - Forward move by words CTRL/T - Top of file, same as: CTRL/C EX CU CTRL/Z - Exit and update, same as: CTRL/C EX Packing text between left and right margins: nn V sets left margin at column nn (default 1) nn W sets right margin at column nn (default 64) nn M packs nn lines (default 1, 0 packs a paragraph) Changes to VT52.TEC: is used for the function, as under TSX is reserved for deleting previously typed characters (without activating TECO). Useful TECO commands: Ntext searches for "text" across page boundaries FStext1text2 replaces text1 by text2 FNtext1text2 ditto across page boundaries EIfile2.ext inserts file2 in the working file Technical notes: ~~~~~~~~~~~~~~~~ These macros are for use with TSX V36 or later. RT-11 version: C.COM, RTVEG.TEC, VT52X.TEC TSX VERSION: CU.COM, TSXVEG.TEC, VT52R.TEC In TSX the following activation characters are used: ^B ^D ^E ^F ^K ^T ^V ^U and MXSPAC should be at least 12. Use of any of these characters, , or cursor movement, swaps your job into memory! For maximum efficiency in text input, you may not wish to activate on . If so, delete in VT52X "29^T 68^T 9^T" This still looks OK when inputting text, but means an increased use of during editing. It is assumed that the TSX lead in character is 29. (This is used in TSXVEG and VT52X as 29^T.) If you have the TECO distribution kit, you can build a version of TECO to implement window mode (and hence this editor) on most semi- intelligent VDUs. The macro is reasonably bug free, but please let me know of any problems. Nigel Bevan 01-977 3222 x4013/4011 August 1980