Local TECO Setup TECO can be invoked many ways. The most common are: TEC file2=file1 ---- explicit input & output files. Either or both may be omitted. TEC file ---- normal edit/backup TEC ---- re-edit the last file editted. Common switches: /SC --- Enter split-screen mode /VT --- Enter VTEDIT /NOM -- Do Not use the memory file; Use pre-defined startup. /FIND - Find spot marked by a previous "EIMX$$" command. Alternate ways to invoke it: TES --- same as TEC /SC TEV --- same as TEC /VT VTEDIT The user's document for VTEDIT can be found at DR1:[342,1]VTEDIT.DOC. VTEDIT is a full-screen editor, almost like a word-processor. Unfortunately, it is slow, and when the system is heavily loaded down, it is VERY slow. VTEDIT works only on a VT-100. SPLIT-SCREEN Split-screen mode (also called scroll mode) uses the top 18 lines of the CRT as a "window" into TECO's text buffer. This window is automatically updated as you modify the text. The bottom 6 lines are for the normal TECO commands. Split-screen works on both the VT-100's and the Hazeltine 1500's (although better on the VT-100). A false cursor shows the position of the actual buffer pointer. Recall that the buffer pointer is always between two characters, not on a character. This false cursor is on the character FOLLOWING the actual buffer pointer. Immediate action keys A recent enhancement to TECO allows for a user-written TECO macro to get control to process special keys which are struck immediately after the TECO prompt. , , and are examples of built-in immediate keys. This feature is invoked as part of the normal startup here. It uses Q-registers A, B, and C. Do not use them for your own stuff !!!!! Local TECO Setup PAGE 2 As part of the local start-up, the time and date are loaded into Q-registers T & D, respectively. Also, an ESC character is put into Q-register E. Use the "Gq" command to copy the desired Q-register into your text buffer as desired. For certain types of files (*.TES, *.TEC, *.SAL, *.C, *.PAS, *.MAC, *.RNO), TECO maintains edit-history information. This consists of two comment lines in the file itself, and a seperate file: EDITHIST.*;1. For RUNOFF files, where this comment does not normally appear in the output document, the "edit number" will also be updated in another line, which might be part of the title page, etc. To use this, put in a line like the following, within 20 lines after the edit-history comment lines: .CENTER; EDIT _# 0000 From then on out, this number will also be updated. This feature only takes place when you do a normal edit ("TEC file"). You may occasionally want to by-pass the local startup, and use the pre-defined TECO startup, (for example, you might run into file protection problems on the edit-history file or the TECO memory file). To do this, add the "/NOM" switch on the command line. Local TECO Setup PAGE 3 Interpreting the Terminal Screen While you are running the Video Terminal Editor macro, your terminal screen displays up to 24 lines of the text in TECO's text buffer. This 'window' into your buffer always includes the current line (the line containing the text pointer). The location of the text pointer within the buffer is indicated by the terminal's cursor. Certain other special symbols can appear on the screen: o A square blob (VT52) or 'FF' symbol (VT100) indicates the end of your text buffer and signifies that there is an implicit form feed at the end of the buffer. o A paragraph symbol (VT52) or diamond (VT100) indicates the end of your text buffer if there is no implicit form feed there. o A paragraph symbol (VT52) or diamond (VT100) immediately following one of the buffer end symbols above signifies that your input file is at end-of-file. o A down arrow (VT52) or 'LF' symbol (VT100) indicates that the text pointer is positioned between a carriage return and a line feed. This symbol appears only as the first symbol on a line, and it overlays the first character of the line. It allows you to tell the difference between the text pointer being at the start of a line of text and being just before the end of it. o A right arrow (VT52) or 'NL' symbol (VT100) indicates that the current line of text is too long to fit on the current line of the screen. If TECO's truncate flag bit (bit 8, value 256) is not set in the ET flag word (the normal case), the remainder of the text appears on the next line of the screen, preceded by the right arrow (VT52) or 'NL' (VT100) and a space. If the truncate flag is set (via the TECO command ET 256ET), the remainder of the text is not displayed, but the special symbol appears at the end of the line to remind you that there are characters which cannot be displayed. You can control the number of characters that appear on each line by using the CTRL/V command. Local TECO Setup PAGE 4 A feature of the scope driver which allows you to view the exact contents of your text buffer is called 'see-all' mode. When see-all mode is turned on, all special characters and hidden spacing are visible on the screen as special graphic symbols: TAB appears as a degree sign (VT52) or 'HT' symbol (VT100). The spacing after the tab, which is normally blank space on the screen that does not correspond to any characters in the text, is shown as a series of ellipses (VT52) or centered dots (VT100). LINE FEED not immediately preceeded by a RETURN appears as a down-arrow (VT52) or 'LF' symbol (VT100). If the line feed is in the middle of the line, the blank space at the beginning of the next line is filled (as for TAB). A LINE FEED immediately after a RETURN is not displayed with any special symbol (see RETURN below). RETURN followed by a line feed appears as a 'CD' symbol (VT52) or 'CR' symbol (VT100). Any blank space before the end of the line is thus visible. A RETURN causing an overprint line (i.e., a RETURN not immediately followed by a LINE FEED) appears as a five-slash (VT52) or not-equals (VT100). The overprint characters are displayed on the next line instead of over (and thus clobbering) the original characters. This allows full viewing of all characters in overprint lines. FORM FEED appears as a square blob (VT52) or 'FF' symbol (VT100). No extra blank lines are shown. If the form feed is in the middle of the line, the blank space at the beginning of the next line is filled. VERTICAL TAB appears as a division sign (VT52) or 'VT' symbol (VT100). If the vertical tab is in the middle of the line, the blank space at the beginning of the next line is filled. ESCAPE appears as a three-slash (VT52) or a Greek pi (VT100) to distinguish it from a dollar sign. CTRL/x appears as a plus-or-minus sign (VT52 and VT100) followed by the character 'x' to distinguish it from a real uparrow. Local TECO Setup PAGE 5 On the Hazeltine 1500, these special characters appear as brightened normal characters, as follows: + -- line too long ' -- cursor is on a LF after a CR ^ -- Control character flag in SEEALL mode % -- End of buffer . @ -- End of buffer ending with a Form-feed } -- TAB in SEEALL mode . -- The spacing after a TAB in SEEALL mode $ -- ESC in SEEALL mode