home *** CD-ROM | disk | FTP | other *** search
/ Power Programming / powerprogramming1994.iso / progtool / editor / tvx_edit.arc / TVX_REF1.DOC < prev    next >
Text File  |  1986-03-17  |  58KB  |  1,387 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.                          TVX Reference Manual
  7.  
  8.  
  9.  
  10.      This is the Reference Manual for TVX, a full screen
  11. editor written in C by Dr. Bruce E. Wampler.  (Current address: Dr.
  12. Bruce E. Wampler, University of New Mexico, Department of Computer
  13. Science, Farris Engineering Center, Albuquerque, NM 87131; uucp:
  14. ...{ucbvax | gatech | ihnp4!lanl}!unmvax!wampler).  Any comments, bug
  15. reports, or suggestions should be sent to that address.  The name TVX
  16. is derived from "TV" editor for any terminal ("X"). 
  17.  
  18.      The current release of TVX has several different versions:
  19.  
  20. 1) Standard TVX - The original version and command set of TVX. 
  21. 2) VIX - A version of TVX that emulates the Unix vi editor. 
  22. 3) TVX0 - A modeless version of TVX. 
  23. 4) EMAX - A version of TVX that emulates the EMACS editor. 
  24.  
  25.      The main part of this manual is written describing "Standard
  26. TVX," the version used by the author.  The VIX, TVX0, and EMAX
  27. versions are described in appendices.  While the emulator versions of
  28. TVX are close command set compatible versions of the original editors,
  29. the you should be aware that certain fundamental properties of the
  30. underlying TVX editor remain, and that the emulators will not work
  31. exactly like the originals.  If you intend to use one of the other
  32. versions of TVX, you should read this part of the manual up to the
  33. section describing standard TVX commands first. 
  34.  
  35.  
  36. *** General Comments ***
  37.  
  38.      Standard TVX functions almost identically for all versions,
  39. including the command set.  The emulation versions of TVX have been
  40. written to be command set compatible with the original versions of the
  41. editors.  It is also possible to construct a completely new version of
  42. TVX with a custom command set.  Control codes on are normally entered
  43. by pressing the CTRL key and the letter key at the same time.  On most
  44. versions, the character delete key is BACKSPACE.  This character
  45. delete key is the one normally used by the respective operating
  46. system.  It is up to the local implementation to notify the user of
  47. any variance from these conventions. 
  48.  
  49.      Once the file has been read in, the screen will be cleared, and
  50. the first screenful of the file printed on the screen and the cursor
  51. positioned over the first character of the file.  If a new file is
  52. being created, the message "buffer empty" will be displayed, and the
  53. cursor positioned in the upper left corner.  TVX is then ready to
  54. accept commands from the keyboard.  TVX works on the principle that
  55. what you see is what you get.  Most commands also take an optional
  56. numeric count.  The default count is always one.  Commands that allow
  57. a count value are preceded by the letter 'n' in the following
  58. descriptions.  Whenever a command produces output or an error message,
  59. it appears on the bottom line of the screen. 
  60.  
  61.      The BACKSPACE key (Control-H on some terminals) is used to edit
  62.  
  63.  
  64.                                  -1-
  65.  
  66.  
  67.  
  68.  
  69. TVX Reference Manual                                           2/25/86
  70.  
  71.  
  72. input text.  When TVX is accepting commands, BACKSPACE will cause the
  73. character immediately before the cursor to be deleted. 
  74.  
  75.      TVX (all versions!) works entirely in the available memory for
  76. editing.  The text from the file which is being edited is held in a
  77. buffer in main memory.  If a file is particularly large, it may not
  78. entirely fit into main memory.  The MS-DOS versions, for example, will
  79. allow about 50K characters, depending on the memory available.  Unix
  80. versions will usually allow 120,000 characters and 5000 lines in one
  81. buffer.  If the entire file will not fit into the buffer at once, then
  82. only part of it is read in at a time.  The buffer size limit in no way
  83. restricts the total size of a file that can be edited by TVX.  To make
  84. editing large files easier, some commands apply to the entire file and
  85. cause automatic cross buffer manipulation. 
  86.  
  87.      Because of the internal organization of the text within the
  88. buffer, TVX may occasionally "compact" the tiny fragments of unused
  89. buffer space generated as a part of normal editing.  When this
  90. happens, a message is displayed, and input keystrokes are remembered
  91. but not echoed until the compaction process is complete.  The process
  92. may take several seconds. 
  93.  
  94.      TVX actually divides the internal memory into two parts: the text
  95. buffer and the save buffer.  The text buffer (or simply the buffer) is
  96. used to hold the file (or part of the file) being edited.  There is
  97. only one such text buffer (unlike some other editors such as emacs).
  98. The save buffer is used for moving text, both from one part of the
  99. text buffer to the other, as well as to and from external files.  The
  100. maximum size of the save buffer depends on the amount of text
  101. currently residing in the main text buffer.  The following diagram
  102. shows the internal TVX memory organization:
  103.  
  104.    +-----------------------------+
  105.    |  TEXT BUFFER - the current  |
  106.    |  text (or portion) of file  |
  107.    |  being edited. (grows down) |
  108.    |            _________________|
  109.    |___________|                 |
  110.    |  free memory        ________|
  111.    |_____________________|       |
  112.    |  SAVE BUFFER - grows up     |
  113.    +-----------------------------+
  114.  
  115.      Text is added to the text buffer when the file is first read in
  116. (or created).  If the file doesn't fit into one buffer, you will have
  117. to manually "page" the text into the buffer.  Text is added to the
  118. save buffer in one of several ways.  TVX (and emulators) have commands
  119. to move text from the text buffer to the save buffer, and move the
  120. contents of the save buffer to the text buffer.  TVX also has "cut
  121. mode".  When cut mode is enabled, when lines are killed, they are
  122. automatically copied into the save buffer as well as being deleted
  123. from the text buffer.  Cut mode is normally off for TVX, but is on for
  124. VIX and EMAX.  It is also possible to save the contents of the save
  125. buffer to a new external file, and to load the save buffer from an
  126. external file.  All versions of TVX use this scheme for handling
  127. text. 
  128.  
  129.  
  130.                                  -2-
  131.  
  132.  
  133.  
  134.  
  135. TVX Reference Manual                                           2/25/86
  136.  
  137.  
  138.      End of lines are not special to TVX.  Thus all the cursor
  139. movement commands and delete single character commands will treat the
  140. end of line as just another character.  This also means that a
  141. <Return> (end of line) is a valid search character, and thus makes it
  142. impossible to end a find pattern with a <Return>.  The <Escape> key is
  143. used to mark the end of a find pattern.  All the Standard TVX wild
  144. cards may be used for all versions of TVX. 
  145.  
  146.      Another basic concept of TVX is the "last thing." Whenever TVX
  147. finds a pattern from the search command, skips over a word, or gets
  148. from or puts to the save buffer, that text is considered the "last
  149. thing." All versions of TVX will have a command that can delete the
  150. last thing.  While this is this a powerful editing concept, it does
  151. have some consequences.  First, the cursor will always be placed AFTER
  152. the pattern just found.  It also means that TVX has no delete word
  153. commands.  Instead, the delete last thing command is used after
  154. skipping over a word.  Using the delete last thing also makes it very
  155. easy to save text into the save buffer, and then deleting it after the
  156. desired number of lines have been saved. 
  157.  
  158.      Probably the most powerful editing tool provided by TVX is the
  159. repeat loop.  This allows arbitrary command sequences to be entered,
  160. and repeated any number of times.  All versions of TVX will have at
  161. least 5 different repeat buffers.  All emulation versions of TVX use
  162. the basic TVX repeat loop instead of emulating whatever macro facility
  163. might be provided by the orignal editor.  (The commands inside the
  164. repeat loop are the emulated commands, not standard TVX commands.)
  165.  
  166.      Many of the basic operating characteristics of TVX are
  167. controllable by user settable parameters.  These parameters are
  168. relevant to all versions of TVX, with the current status of each
  169. displayed on the help screen.  These parameters are summarized in the
  170. 'set parameter' command (':') in the Standard TVX Commands section,
  171. but a brief overview of the paramaters will also cover some of the
  172. capabilities of TVX (and the emulator versions). 
  173.  
  174.      While the normal screen is only 80 columns wide, TVX has been
  175. written to support a "virtual" screen width of 240 columns.  As you
  176. move the cursor right on a line that is longer than 80 columns, the
  177. screen will automatically scroll to the left in increments of 16
  178. columns.  You can also control how many lines of the screen TVX uses
  179. using the 'v' parameter.  Normally, TVX will use the entire screen.
  180. If you are working over phone lines, you can tell TVX to use only 5 or
  181. 7 lines, thus making updating much faster. 
  182.  
  183.      TVX has some limited word processing cabability.  This is the
  184. autowrap feature, settable both when you first run TVX, and by the 'w'
  185. parameter.  Setting autowrap to column 65, for example, will tell TVX
  186. to automatically insert a newline whenever you enter text past that
  187. column.  The 'tidy' command will use the autowrap margin to 'fill' the
  188. text after the fact.  This feature makes it easy to make your text
  189. more readable, and even create good looking short memos without
  190. needing to resort to nroff or troff. 
  191.  
  192.      For programmers, TVX has an autowrap command.  The 'a' parameter
  193. controls this feature.  When enabled, TVX will automatically match the
  194.  
  195.  
  196.                                  -3-
  197.  
  198.  
  199.  
  200.  
  201. TVX Reference Manual                                           2/25/86
  202.  
  203.  
  204. leading white space at the beginning of the previous line. 
  205.  
  206.      The search command also has some advanced features.  By default,
  207. searches are case insensitive, but the 'f' parameter controls this.
  208. TVX also supports a set of "wild cards".  You can specify a set of
  209. letters, numbers, alphanumerics, punctuation, or other characters as
  210. part of the wild cards.  The 'u' parameter also allows you to define
  211. your own set of wild card characters.  TVX remembers the last pattern
  212. found (the actual pattern, not just the wild cards), and has a command
  213. to insert that pattern into the text.  Thus, with repeat loops, wild
  214. cards, and the insert found pattern command, it is possible to do
  215. quite creative editing functions.  The 'm' parameter controls the use
  216. of wild card matching, so it can be disabled if you need to match one
  217. of the wild card characters. 
  218.  
  219.      Finally, TVX has parameters to control just how the screen is
  220. scrolled.  The home display line controlled by the 'd' parameter tells
  221. TVX which line to put the cursor on when the screen has been
  222. 'verified'.  The 's' scroll window controls how many lines the cursor
  223. will move up and down from the home line before scrolling the text.
  224. If the scroll window is 0, then the cursor will be fixed on the home
  225. display line.  By setting it to another value, you can control how
  226. much context remains before scrolling.  These settings are very much
  227. personal taste. 
  228.  
  229.      TVX uses two techniques for protecting the original file from
  230. editing mistakes.  First, each time a file is edited, a new version is
  231. created, and the previous version retained in its original form as a
  232. backup.  This file will change the original file extension to '.BAK'
  233. on MS-DOS systems, and '.B' on Unix.  A more complete description of
  234. TVX file handling is included in an appendix.  Also, as you edit your
  235. file, TVX has the capability to write all commands entered during the
  236. session to a log file when that capability is enabled.  In the event
  237. of a major editing mistake, it is possible to edit that log file to
  238. remove the command errors, and then apply that "command" file to the
  239. previous version of the edited file to get back to the state right
  240. before the mistake.  This feature also allows files of TVX commands to
  241. be defined by the user and executed in one step.  The last section of
  242. the Reference Manual explains how to use the command file feature. 
  243.  
  244.  
  245.  
  246. *** RUNNING THE EDITOR ***
  247.  
  248.      To edit a file using TVX, enter the following command line:
  249.  
  250.           tvx filename -switch1 -switch2 ...
  251.  
  252.      (VIX, EMAX, and TVX0 use the SAME command line format and
  253. switches.) The file name specified is the file to be edited, and must
  254. obey the conventions used by the local operating system (the MS-DOS
  255. version requires DOS version 2.0, and supports pathnames).  If the
  256. file is a new file (does not exist), TVX will ask if you really want
  257. to create it.  Answer y or n. If you gave an incorrect name, you may
  258. give the correct name, but the switches entered on the original start
  259. line will remain in effect.  Control-C can be used at this point to
  260.  
  261.  
  262.                                  -4-
  263.  
  264.  
  265.  
  266.  
  267. TVX Reference Manual                                           2/25/86
  268.  
  269.  
  270. abort. 
  271.  
  272.      TVX has several switches which control certain operating
  273. characteristics.  Each switch begins with a minus (-), and is
  274. separated from the file name and other switches by a blank in the
  275. standard UNIX/C convention.  Some switches may be negated by using a
  276. 'nox' form.  Thus, '-b' will cause a .bak file to be generated, while
  277. a '-nob' causes the .bak file to be deleted on exit from the editor.
  278. This capability is indicated by []'s.  As many switches as necessary
  279. or desired can be used at one time in any order.  A ':' may be used
  280. instead of a '=' for '-c' and '-o'.  The various switches supported
  281. include:
  282.  
  283.      -c=filename -- read a configuration file.  If only -c is
  284.           specified, TVX will look for file called /bin/CONFIG.TVX on
  285.           MS-DOS, for example.  The -c switch is not supported on all
  286.           implementations. 
  287.      -[no]b -- generate a .B[AK] version of the original (the usual
  288.           default).  The -nob option means no .BAK file is generated.
  289.           This latter mode of operation follows the normal Unix
  290.           convention of not keeping past generations of a file. 
  291.      -[no]i -- auto indent mode enabled. 
  292.      -[no]l -- generate BACKUP.LOG file
  293.      -o=filename -- send edited output to filename.  The output file
  294.           can also be changed at any time during the editing session
  295.           with the ':o' command. 
  296.      -r -- read only - file can be read in only
  297.      -s -- big save buffer - leaves more buffer for save file
  298.      -t -- tty mode - puts TVX into tty mode, not using the screen.
  299.           See the special appendix on tty mode.  (This is supported
  300.           only by two mode versions of TVX.)
  301.      -w -- word processing mode - sets autowrap on, margin to 65. 
  302.      -z -- -z means use Control-Z to mark end of file, -noz means
  303.           don't use.  This switch is used only on MS-DOS
  304.           implementations. 
  305.      -# -- entering a number from 3 up to the number of lines on the
  306.           screen will create a smaller TVX editing window.  This is
  307.           most useful for slower baud rates.  A -7 makes a nice, small
  308.           window showing 7 lines. 
  309.  
  310.      TVX is mostly a programmer's editor, and can can edit any
  311. standard text line file.  On Unix systems, it is an alternative to
  312. standard editors such as ed or vi. 
  313.  
  314.  
  315.  
  316.  
  317.  
  318.  
  319.  
  320.  
  321.  
  322.  
  323.  
  324.  
  325.  
  326.  
  327.  
  328.                                  -5-
  329.  
  330.  
  331.  
  332.  
  333. TVX Reference Manual                                           2/25/86
  334.  
  335.  
  336.                *** Summary of Standard TVX Commands ***
  337.  
  338.  
  339.  
  340.      A key to success when using TVX is to remember that there are two
  341. modes of operation.  The normal mode is command mode.  In this mode,
  342. all keystrokes are interpreted as commands.  When you want to enter
  343. text, you must enter insert mode with the 'I' command.  While in
  344. insert mode, all keystrokes entered will be inserted into the file and
  345. displayed on the screen.  You must exit from insert mode with the
  346. escape key.  When you enter insert mode, the message "### Insert Mode
  347. ###" will be displayed on the last line of the display.  Also, on many
  348. terminals, TVX will change the cursor shape between command and insert
  349. mode. 
  350.  
  351.      The modeless version of TVX (TVX0) uses the same mnemonics as
  352. Standard TVX for the most part.  There is a 1:1 mapping between the
  353. commands.  The modeless names for each command is included in each
  354. description of Standard TVX commands.  Counts for any modeless TVX
  355. command can be entered after the escape.  Thus, "<Esc>10K" will kill
  356. ten lines, while <Esc>10^K" will kill 10 characters. 
  357.  
  358.      Notes: An n preceding a command means optional numeric
  359.      argument may be supplied.  If omitted n will default to 1,
  360.      and n can be zero or negative if appropriate.  '$'
  361.      represents the escape key, and is used as a terminator for
  362.      insert, find, and loops.  Control commands are indicated
  363.      with '^'.  For example, '^K' represents Control-K, and is
  364.      usually entered by simultaneously holding down the CTRL key
  365.      and the K key. 
  366.  
  367.  
  368. nA - Append to Save Buffer
  369.  
  370.      The 'A' command is used to append lines of text to the end of the
  371. save buffer, even if other commands have been used since the last 'A'
  372. or 'S' command.  The append command works exactly like the 'S' command
  373. otherwise. 
  374.  
  375.  
  376. B - Buffer beginning {TVX0: ^B}
  377.  
  378.      A 'B' causes the cursor to be moved to the beginning of the
  379. current buffer. 
  380.  
  381.  
  382. ^B - Beginning of file {<Esc>B}
  383.  
  384.      The '^B' (Control-B) command is used to position the cursor to
  385. the absolute beginning of the file.  The '^B' command will always
  386. write out the rest of the file, then re-read the first buffer full.
  387. This command has the side effect of making a new backup version of the
  388. file.  It should be noted that any text saved in the save buffer will
  389. be preserved during this operation, so that the 'S' save command can
  390. be used to move text from the end to the beginning of a multi-buffer
  391. file.  The search pattern and repeat loops are retained as well.  Note
  392.  
  393.  
  394.                                  -6-
  395.  
  396.  
  397.  
  398.  
  399. TVX Reference Manual                                           2/25/86
  400.  
  401.  
  402. the '^B' file beginning is similar in concept to 'B' buffer
  403. beginning. 
  404.  
  405.  
  406. nC - Change {^C}
  407.  
  408.      'C' can be used to change characters.  Entering 'nC' is exactly
  409. equivalent to entering 'nKI'.  The command will cause 'n' characters
  410. to be killed, and insert mode to be entered.  The escape must be used
  411. to terminate the insert as usual. 
  412.  
  413.  
  414. nD - Down {^D}
  415.  
  416.      'D' moves the cursor down n lines.  The cursor is placed at the
  417. beginning of the new line.  For convenience, the ENTER key performs
  418. the identical function. 
  419.  
  420.  
  421. n^D - Down in column {<Esc>D}
  422.  
  423.      Control-D ('^D') is similar to 'D', except the cursor remains in
  424. the original column.  Columns are defined as characters from the
  425. beginning of the line, so if a line has tab characters in it, the
  426. cursor may appear to move out of column on the screen. 
  427.  
  428.  
  429. E - End of the buffer {^E}
  430.  
  431.      'E' causes the cursor to be placed at the end of the current text
  432. buffer. 
  433.  
  434.  
  435. n^E - Edit repeat buffer n {<Esc>E}
  436.  
  437.      When making repeat loops, it is easy to make a mistake.  The ^E
  438. command allows any of the repeat buffers to be edited, and then the ^R
  439. command can save the corrected repeat buffer back.  If you don't give
  440. a value for n, the currently selected buffer is used.  If n is from 1
  441. to the maximum number of repeat buffers, then that repeat buffer will
  442. be selected for editing. 
  443.  
  444.      The ^E command will insert the contents of the selected repeat
  445. buffer into the current text buffer.  The repeat buffer will be
  446. inserted above the current text line.  The repeat buffer will start
  447. with a sequence of '#n:<', where n will be replaced by the repeat
  448. buffer being edited.  The '#n:' identifies which buffer you are
  449. editing, and is used by the ^R store repeat buffer command to identify
  450. the buffer to save to.  Escapes will be represented by '^[' instead of
  451. the '$' used when entering a repeat buffer initially.  A '>^[^['
  452. identifies the end of the repeat loop. 
  453.  
  454.      It is possible to make as many changes as needed to the repeat
  455. loop.  Escapes can be added by using '27i'.  If you want to save the
  456. loop in a different buffer, you can change the number after the '#'.
  457. It is also important to maintain the '#n:<' start and '>^[^[' ending
  458.  
  459.  
  460.                                  -7-
  461.  
  462.  
  463.  
  464.  
  465. TVX Reference Manual                                           2/25/86
  466.  
  467.  
  468. sequences.  Also, loops are limited to a maximum of 100 characters.
  469. You can have carriage returns within the body of a loop, too.  If you
  470. want to create a new buffer, you can use ^E on an empty repeat buffer
  471. to get the required '#n:<>^[^[' loop sequence. 
  472.  
  473.      After you have edited the repeat buffer, it can be saved with the
  474. '^R' command.  You must place the cursor anywhere on the first line of
  475. the repeat buffer before using '^R'.  When you press ^R, the buffer
  476. will be saved in the buffer indicated right after the '#'.  Thus,
  477. unlike ^E, the ^R command accepts no n value. 
  478.  
  479.  
  480. nF - Find text pattern {^F}
  481.  
  482.      'F' is used to find a text pattern.  When 'F' is entered, the
  483. message 'Find?' is echoed on the bottom line.  You then enter the
  484. pattern to find, terminated with the escape key (echoed as $).  When
  485. the count 'n' is positive (which is the default), find searches the
  486. current buffer from the current position forward.  If 'n' is negative,
  487. then a backwards search is performed starting with the previous line.
  488. (Use '^F' to search across buffers).  Normally, 'F' ignores the case
  489. of the letters in the pattern.  If the ':F' parameter is set with 0,
  490. then 'F' command will match only the exact case.  See the ':' set
  491. parameter command for details of the ':F' parameter.  If the pattern
  492. is not found, "Not found" will be printed and the cursor remain at its
  493. original location.  If the pattern is found, then the cursor will be
  494. placed immediately following the pattern.  The pattern may be at most
  495. 100 characters long.  If the pattern is only an escape, then the
  496. previous pattern will be used again (same as ';'). 
  497.      TVX supports extensive wild card matching.  The ':M' set
  498. parameter controls whether or not wild card matching is turned on.
  499. Normally, it is.  The wild card matching in TVX is based on the
  500. concept of 'sets of special characters'.  TVX predefines 6 sets of
  501. characters, and allows the user to define one additional set.  When a
  502. special control character is included as part of the find pattern,
  503. then any character in the specified set will match the pattern.  The
  504. predefined sets are:
  505.  
  506.     ^A - Alphanumeric characters: a-z, 0-9
  507.     ^D - Digits: 0-9
  508.     ^L - Letters: a-z
  509.     ^O - Other characters: all characters except a-z, 0-9
  510.     ^P - Punctuation: '.', ',', '!', '?'
  511.     ^X - Any character: any printable character
  512.     ^U - User character: any character in user set, set by ':U'
  513.  
  514.      Any of the sets may be specified by entering the proper control
  515. character in the find pattern: Control-A for the ^A set.  Thus,
  516. entering a find pattern of '^L^D' would match any letter followed by
  517. any digit.  Since it may be desirable to match a sequence of one of
  518. the character sets, two prefix characters are supported.  A '^W'
  519. before one of the above sets will match a 'word' of that set.  Thus,
  520. '^W^L' will match any word, and '^N^D' will match any number.  The
  521. find pattern 'st^W^L' would match words starting with 'st'.  The '^N'
  522. prefix is used to make a 'word' of characters NOT included in the
  523. given set.  Thus, '^N^L' will match a 'word' of characters NOT
  524.  
  525.  
  526.                                  -8-
  527.  
  528.  
  529.  
  530.  
  531. TVX Reference Manual                                           2/25/86
  532.  
  533.  
  534. including the letters a-z.  A match 'word' consists of any sequence of
  535. characters (at least one character long) found in the given set, up to
  536. the first character not in the set.  End of lines also terminate all
  537. wild card patterns.  The only real way to adequately understand TVX
  538. wild cards is to use them in practice. 
  539.  
  540.  
  541. ^F- Find across buffers {<Esc>F}
  542.  
  543.      '^F' (Control-F) is the same as Find, except the search will
  544. cross buffer boundaries.  Whenever a buffer is searched without
  545. finding the pattern, the next buffer will be read in.  The screen will
  546. not change until the pattern is found or the file is exhausted.  If
  547. the pattern is not found anywhere, then the entire file will have been
  548. written out, and there will be an empty buffer.  The '^B' command may
  549. be used at that point to get back to the beginning of the file. 
  550.  
  551.  
  552. G - Get saved text {<Esc>G}
  553.  
  554.      'G' is used with 'S' and '^Y' to move text around.  'G' causes
  555. the text in the save buffer to be inserted before the current cursor
  556. position.  The saved text remains in the save buffer.  There must be
  557. at least one line of text in the main buffer before 'G' will get the
  558. text from the save buffer. 
  559.  
  560.  
  561. ^G - Get killed line (unkill) {^G}
  562.  
  563.      The '^G' (Control-G) unkill command can be used to "unkill" one
  564. line, which will be the last line killed with '^K'.  If the last
  565. command was 10^K (kill 10 lines), then '^G' will retrieve only the
  566. last line killed.  The "unkilled" line will be inserted right before
  567. the current cursor position.  It is also possible to move single lines
  568. around the text buffer using '^K' and '^G' - but be cautious.  Any
  569. other '^K' command will reset the last killed line.  '^G' can also be
  570. used to retrieve the entire line involved in a "'" (single quote) or
  571. '"' (double quote) command. 
  572.  
  573.  
  574. nH - Half page {<Esc>H}
  575.  
  576.      'H' is similar to the 'P' Page command.  It causes the cursor to
  577. move down a half screenful.  This will be typically be 12 lines.  A
  578. negative count (e.g.  -h) moves up a half screen. 
  579.  
  580.  
  581. nI - Insert {<Esc>I}
  582.  
  583.      'I' causes the editor leave command mode and enter insert mode.
  584. Following the 'I', all text typed in is inserted into the file until a
  585. terminating escape is typed.  Inserted text is echoed on the screen as
  586. it is inserted.  If any value is supplied for n (the default no n is
  587. not used), then only one character is inserted, and it will have the
  588. ascii value of n. This is the method used to enter characters that
  589. cannot normally be entered in insert mode, such as escape or
  590.  
  591.  
  592.                                  -9-
  593.  
  594.  
  595.  
  596.  
  597. TVX Reference Manual                                           2/25/86
  598.  
  599.  
  600. characters not on the keyboard.  The message "### Insert Mode ###" is
  601. displayed on the bottom line when insert mode is entered (except when
  602. inserting on the very last line of the file).  Many versions of TVX
  603. will change the shape of the cursor when insert mode is entered.
  604. {Insert is useful in the modeless version of TVX for entering either
  605. single characters (<Esc>nI), or when several control characters will
  606. be entered (e.g., ^L).}
  607.  
  608.  
  609. J - Jump back {<Esc>J}
  610.  
  611.      The 'J' command will cause a "jump" back to the line of the
  612. previous cursor position.  Suppose the cursor was positioned somewhere
  613. in the middle of the file.  If the 'E' end command was entered, the
  614. cursor would move to the end of the current buffer.  If the 'J'
  615. command was then used, the cursor would return to the original line.
  616. It makes it convenient to flip back and forth between two points in
  617. the file.  It is also useful if a large cursor movement command is
  618. accidentally entered (like when you thought you were in insert mode). 
  619.  
  620.  
  621. nK - Kill Character forward {^K}
  622.  
  623.      The 'K' command kills or deletes characters in a forward
  624. direction.  '1K' would delete the character the cursor is positioned
  625. over, and '5K' would delete the next 5 characters. 
  626.  
  627.  
  628. n^K - Kill lines {<Esc>K}
  629.  
  630.      '^K' (Control-K) is used to kill an entire line.  n=1 kills the
  631. current line, negative n kills previous lines, while positive n kills
  632. following lines. 
  633.  
  634.  
  635. nL - Left {^L}
  636.  
  637.      'L' moves the cursor n characters to the left. 
  638.  
  639.  
  640. M - Memory and Status {<Esc>M}
  641.  
  642.      The 'M' command is used to display certain status information.
  643. The name of the file currently being edited (where the output will go)
  644. is displayed, followed by the version of TVX.  The number of free
  645. characters currently available in the buffer is then given (this does
  646. not include characters that are free but not compacted yet), followed
  647. by the number of the last line of the file.  Finally, the currently
  648. selected repeat loop buffer and maximum number of repeat buffers
  649. allowed is shown. 
  650.  
  651.  
  652. nN - Note current location {^N}
  653.  
  654.      This command notes the current line location.  Values of 1 to 9
  655. are allowed for n. After entering '3n' for example, you can then move
  656.  
  657.  
  658.                                  -10-
  659.  
  660.  
  661.  
  662.  
  663. TVX Reference Manual                                           2/25/86
  664.  
  665.  
  666. around the buffer, and later use '3^n' to return to the noted
  667. location.  This command really remembers the current line, relative to
  668. the current buffer beginning.  Thus if you edit out lines before the
  669. noted location, you will not return to the same line. 
  670.  
  671.  
  672. n^N - Go back to noted location {<Esc>N}
  673.  
  674.      This command is used to go back to a noted location. 
  675.  
  676.  
  677. nO - Open line for insert {^O}
  678.  
  679.      The 'O' command will cause n blank lines to be inserted, and the
  680. cursor positioned at the beginning of the first new line.  Following
  681. the 'O' command, insert mode is automatically entered.  The 'O'
  682. command is a convenient method for inserting new lines. 
  683.  
  684.  
  685. ^O - Operating System call {<Esc>O}
  686.  
  687.      Some versions of TVX (MS-DOS and Unix, for example), will allow
  688. an operating system command to be executed from inside of the editor.
  689. For example, it might be useful to get a directory listing.  On
  690. MS-DOS, after entering the ^O, the normal 'dir' command is entered.
  691. After the directory is shown by the operating system, pressing any key
  692. will return to the edited file. 
  693.      This command has one particularly valuable application - editing
  694. other files.  For example, you may want to add part of another file to
  695. the file you are currently editing.  Use the '^O' command to edit the
  696. other file, and create a temporary file with the part you want to
  697. add.  Then you can use the '^Y' yank command to read in the file.  For
  698. example: Use '^O' to get enter operating system command prompt.  Then
  699. enter something like 'tvx otherfile -o=tempfile'.  You will get a new
  700. copy of tvx with the otherfile being edited.  Edit it to get the part
  701. you want.  When you exit that copy of tvx, the part you want to add
  702. will be in tempfile.  You can now yank it into the current file. 
  703.  
  704.  
  705. nP - Page {^P}
  706.  
  707.      The 'P' commands is the same as '25D' on 24 line terminals, and
  708. effectively causes a new screenful to be written.  It is a convenient
  709. method for scanning through the file.  The n count argument specifies
  710. the number of 'pages' to scroll.  Negative values for n causes reverse
  711. scrolling. 
  712.  
  713.  
  714. ^P - Print Screen {<Esc>P}
  715.  
  716.      If '^P' (Control-P) is entered, and a printer is on line, the
  717. entire contents of the screen will be sent to the printer.  Several
  718. consecutive sequences of "P^PP^P..." (or a repeat loop: "10<P^P>$$")
  719. can be used to print longer portions of the file.  This command will
  720. not normally work on time shared systems such as Unix. 
  721.  
  722.  
  723.  
  724.                                  -11-
  725.  
  726.  
  727.  
  728.  
  729. TVX Reference Manual                                           2/25/86
  730.  
  731.  
  732. nR - Right {^R}
  733.  
  734.      'R' causes the cursor to move n characters to the right.  For
  735. convenience, the space bar is equivalent to 'R'. 
  736.  
  737.  
  738. ^R - Restore repeat buffer {<Esc>R}
  739.  
  740.      The '^R' command will save an edited repeat buffer and delete the
  741. edited buffer from the text.  See '^E' for a complete summary of
  742. editing repeat buffers. 
  743.  
  744.  
  745. nS - Save text {<Esc>S}
  746.  
  747.      Besides the normal text buffer, TVX has a separate "save"
  748. buffer.  This buffer can be used to move blocks of text from one part
  749. of the file to another.  A simple 'S' command will save the current
  750. line in the save buffer, and move the cursor down one line.  On the
  751. screen, 'S' appears to have the same behavior as 'D'.  If n is
  752. supplied, then n lines will be saved.  'S' can also be used
  753. sequentially.  If no other commands intervene, consecutive 'S'
  754. commands will continue adding lines to the save buffer.  If any other
  755. commands are entered between consecutive 'S' commands, the previous
  756. contents of the save buffer will be lost, and replaced with the new
  757. line.  The 'A' command can be used to append lines to the current save
  758. buffer without losing the previous contents. 
  759.      The '/' command can be used with 'S' and 'G' to move text.  Use
  760. 'S' to save the text to be moved, immediately delete the saved text
  761. with '/', then insert it at the new place with 'G'.  The last line of
  762. the file is can be saved in the save buffer only once, and an error
  763. message will be printed if you attempt to save the last line a second
  764. time. 
  765.  
  766.  
  767. nT - Tidy text {^T}
  768.  
  769.      The 'T' tidy command is specifically designed to improve the
  770. appearance of strictly text files.  When entering letters and
  771. documents, is it usually desirable to have the lines filled to the
  772. right margin.  However, after editing, it is common to find a jumble
  773. of uneven, difficult to read source lines.  The 'T' tidy command will
  774. fill source text using the same right margin currently set for
  775. auto-wrap. 
  776.      Tidy performs essentially the same operation as a word processor
  777. fill function.  Word are combined on one line until the auto-wrap
  778. margin is passed.  The 'n' count refers to the total number of
  779. resulting lines, not the number of original lines.  Specifying a large
  780. 'n' will tidy large sections of a document.  The tidy command
  781. recognizes lines beginning with blanks, tabs, or a period and blank
  782. lines as special.  It will not fill those lines, thus preserving
  783. paragraphs, tables and NROFF-like dot commands. 
  784.      One interesting capability of tidy is to put one word per source
  785. line.  Set the auto-wrap margin to 2, then use the tidy command.  The
  786. result will put one word per line. 
  787.  
  788.  
  789.  
  790.                                  -12-
  791.  
  792.  
  793.  
  794.  
  795. TVX Reference Manual                                           2/25/86
  796.  
  797.  
  798. ^T - TERMINATE - ABORT EDIT SESSION {<Esc>T}
  799.  
  800.      The '^T' (Control-T) command aborts directly to the operating
  801. system.  The original file is left untouched, and no backup file is
  802. created.  This is a fairly dangerous command in that all editing
  803. performed will be lost (unless the '^B' file beginning command was
  804. used).  You will be asked to confirm the '^T' command with a Y or N.
  805. If the '^T' is performed accidentally, the backup log file can be
  806. applied to the current version of the file after the '^T' has been
  807. edited out of the log file (no backup file will have been created
  808. after the '^T').  The '^T' command is most useful when you decide you
  809. don't want to make any changes and want to exit from TVX quickly.
  810. Exiting with the '^T' command is similar to using the 'R' read only
  811. switch at the beginning. 
  812.      If you have used the '^B' command, a work file copy of the
  813. original will have been written out containing all the edits performed
  814. before the '^B'.  When you use '^T' and this work file has been saved,
  815. a message informing you of its existence will be printed.  You can
  816. then either use that file, or delete it at the operating system
  817. level. 
  818.  
  819.  
  820. nU - Up {^U}
  821.  
  822.      The 'U' command moves the cursor up n lines, positioning the
  823. cursor at the beginning of the line. 
  824.  
  825.  
  826. n^U - Up in column {<Esc>U}
  827.  
  828.      The '^U' (Control-U) is the opposite of '^D', and moves the
  829. cursor up in column. 
  830.  
  831.  
  832. nV - Verify the screen {^V}
  833.  
  834.      In regular screen editing mode, the 'V' command causes the screen
  835. to be rewritten.  This is sometimes necessary to get a true version of
  836. the screen after error messages have been written or when editing
  837. lines longer than 80 columns.  On terminals without reverse screen
  838. scroll, the 'V' command forces the cursor to the home display line
  839. (usually line 16).  In screen mode, 'V' ignores any n.
  840.      In tty mode, the 'V' command is used to type lines from the file
  841. on the terminal.  A negative n will type out lines preceding the
  842. current line.  An n of 1 types the current line, with the current
  843. cursor position indicated by '/'.  An n greater than 1 types the
  844. current line, plus the following n-1 lines.  A command '-12v12v' would
  845. type 24 lines on the terminal: 12 before, the current line, and 11
  846. following. 
  847.  
  848.  
  849. n^W - Write out buffer, read next one {<Esc>W}
  850.  
  851.      The '^W' (Control-W) command is used to explicitly go from one
  852. buffer to the next.  By default, when n is >= 0, the entire current
  853. buffer is written to the new version of the file being edited, and the
  854.  
  855.  
  856.                                  -13-
  857.  
  858.  
  859.  
  860.  
  861. TVX Reference Manual                                           2/25/86
  862.  
  863.  
  864. next buffer full of the original file (if any) is read in.  If a
  865. negative n is supplied (any negative value, most easily -^W), then
  866. only the part of the buffer up to (but not including) the current line
  867. is written.  Then as much more of the file as possible is read to the
  868. end of the current buffer.  Thus, a negative n is useful when a file
  869. won't fit, and the split point is at an awkward place.  It is also
  870. useful when a '^Y' yanked file won't fit. 
  871.  
  872.  
  873. ^X - eXit {<Esc>X}
  874.  
  875.      '^X' (Control-X) causes the remainder of the file to be written
  876. out, and the editor exited.  The entire file will be written, no
  877. matter where the cursor happens to be positioned when the '^X' command
  878. is entered.  This is the normal conclusion of an editing session.  All
  879. work files are deleted, the original file renamed to the back up file,
  880. and the newly edited file renamed to the original name.  See the
  881. appendix on tvx file handling conventions for more details. 
  882.  
  883.  
  884. n^Y - Yank text to/from external file (file merge) {<Esc>Y}
  885.  
  886.      A '^Y' (Control-Y) with a positive n is similar to 'S' save, but
  887. the text saved in the save buffer is read in from an external file
  888. instead of from the current buffer.  When '^Y' is entered, the save
  889. buffer is cleared, the buffer compactor invoked, and then the user is
  890. prompted for the name of the file to read.  TVX then will read as much
  891. of the external file into the save buffer as it can.  The 'G' command
  892. can then be used to insert the save buffer text into the current file
  893. at the desired location.  If there is not enough room in the save
  894. buffer to hold the entire file, then only part of the file is read and
  895. a diagnostic message printed.  The '-S' switch can be used when TVX is
  896. first invoked to reserve a large save buffer for merging larger
  897. files.  You can also use the '-^W' command to write out the front part
  898. of the file, and then 'G' to get the saved file.  (Note: '^Y' may not
  899. be used from within a log command file.  See section on backup log
  900. file.)
  901.      A negative n (e.g., '-^Y') can also be used with the yank
  902. command.  If the n is negative, then the contents of the save buffer
  903. will be written to a new file.  After '-^Y' is entered, you will be
  904. prompted for the name of the output file, and then the contents of the
  905. save buffer will be written to that file. 
  906.  
  907.  
  908. nBACKSPACE - Delete previous character {BS}
  909.  
  910.      The BACKSPACE key will delete the previous character on the
  911. screen.  It is also used for editing input keystrokes for Insert,
  912. Find, and repeat loops. 
  913.  
  914.  
  915. n; - Find again
  916.  
  917.      The ';' (semicolon) command causes the previous pattern to be
  918. searched for again.  This is more convenient that entering 'F$'
  919. again.  The 'n' has the same meaning, positive searches forwards,
  920.  
  921.  
  922.                                  -14-
  923.  
  924.  
  925.  
  926.  
  927. TVX Reference Manual                                           2/25/86
  928.  
  929.  
  930. negative backwards. 
  931.  
  932.  
  933. / - delete last thing {<Esc>/}
  934.  
  935.      The '/' (slash) command is useful when used with 'F' (find), 'S'
  936. (save), 'G' (get), 'TAB' (word right), and '{' (word left).  It causes
  937. the last pattern used to be deleted.  Thus "Fxxx$/Iyyzz$" will delete
  938. the pattern 'xxx' and insert 'yyzz'.  When used after an 'S', it
  939. causes the just saved lines to be deleted from the text buffer (but
  940. not the save buffer).  After the G, it causes the text just inserted
  941. from the save buffer to be deleted from the text buffer.  After a
  942. 'TAB' or '{', '/' will delete the word or words just skipped over.
  943. Slash must be used immediately following an 'S', 'G', 'TAB', '{', 'F',
  944. '^F', or ';' command.  This command knows how to take wild card
  945. matches into account. 
  946.  
  947.  
  948. = - delete last thing and enter insert mode {<Esc>=}
  949.  
  950.      The '=' (equals) command is the same as the '/' command, except
  951. insert mode is automatically entered, thus achieving the effect of
  952. '/I' command sequence. 
  953.  
  954.  
  955. ' - Delete previous part of line (single quote) {<Esc>'}
  956.  
  957.      The "'" command will delete all the characters in the current
  958. line before the cursor. 
  959.  
  960.  
  961. " - Delete rest of line (double quote) {<Esc>"}
  962.  
  963.      The '"' command will delete from the cursor forward to the end of
  964. the line.  The "end of line" mark will remain.  Note that the single
  965. quote has one tick, representing the "first" part of the line, while
  966. the double quote has two ticks, representing the "second" part of the
  967. line. 
  968.  
  969.  
  970. , - beginning of line (comma) {<Esc>,}
  971.  
  972.      The ',' command will move the cursor to the beginning of the
  973. current line. 
  974.  
  975.  
  976. . - end of line (period) {<Esc>.}
  977.  
  978.      The '.' command will move the cursor to the end of the current
  979. line. 
  980.  
  981.  
  982.  
  983.  
  984.  
  985.  
  986.  
  987.  
  988.                                  -15-
  989.  
  990.  
  991.  
  992.  
  993. TVX Reference Manual                                           2/25/86
  994.  
  995.  
  996. * - Insert last pattern found {<Esc>*}
  997.  
  998.      The last pattern found with the find command (up to 100
  999. characters) is saved in an internal buffer.  The '*' command will
  1000. insert that pattern into the text at the current cursor location.  If
  1001. the last find pattern included wild card characters, the pattern saved
  1002. will be the actual text matched, and not the wild cards themselves.
  1003. You must be back in command mode to use this command. 
  1004.  
  1005.  
  1006. nTAB, n{ - Skip over words {<Esc>^I, <Esc>{}
  1007.  
  1008.      The 'TAB' (TAB key, CTRL-I) and '{' commands skip over words.  A
  1009. word is any contiguous set of alphabetic characters (a-z) or digits
  1010. (0-9).  'TAB' moves forwards, while '{' moves backwards.  The 'n'
  1011. count may be used to skip over several words at once, and a negative
  1012. count reverses the direction of the move.  A value of 0 for n will
  1013. move the cursor to the beginning of the current word rather than the
  1014. previous word as -{ would.  Note that '{' is usually aliased to '['
  1015. since these are often reversed case on different terminals. 
  1016.  
  1017.  
  1018. n< - begin repeat loop {<Esc><}
  1019.  
  1020.      TVX has up to 9 different repeat loop buffers which allow an
  1021. arbitrary sequence of commands to be repeatedly executed.  When n< is
  1022. typed, the editor echoes 'Repeat: n<' at the bottom of the screen.
  1023. The user then types in any series of commands to be repeated n times.
  1024. The repeat command is terminated with a matching '>' and a double
  1025. escape (echoed as $$).  Repeat loops may not be nested.  The repeat
  1026. loop has two typical useful functions: one is to replace multiple
  1027. occurrences of a string with another (e.g., "10<fone$=two$>$$"), a
  1028. second is to save a complicated sequence of commands to be repeated as
  1029. necessary with the '&' command (i.e., a macro facility).  Each repeat
  1030. loop may have up to 100 characters. 
  1031.      When a repeat loop is entered from the keyboard, it is saved in
  1032. one of up to 9 repeat loop buffers, each identified by an integer
  1033. value.  The repeat buffer which is currently in use can be set with
  1034. the 'n:R' command.  Buffer 1 will be used by default.  The number of
  1035. repeat buffers available and the currently active one can be
  1036. determined by using the 'M' command.  The availability of repeat
  1037. buffers allows the definition of 'edit macros'.  Commonly used
  1038. sequences of editor commands can be saved in a given repeat buffer,
  1039. then selected with 'n:R' and executed with the '&' command. 
  1040.      For example, "3:R<fpat1$>$$" would select repeat buffer 3 and
  1041. enter the repeat command into it (and execute the command once).
  1042. Other "macros" could be entered in other buffers, and then the given
  1043. example used again by "3:R&".  A count 'n' of 0 can be used to enter a
  1044. macro without executing it.  The indirect command file facility ('@'
  1045. command) can also be used to define and load commonly used macros.
  1046. The results of using one repeat buffer from within another is not
  1047. guaranteed, and should be tried only at your own risk. 
  1048.      The '#' command has been provided to simplify the above
  1049. sequence.  Entering '23#4' for example, is exactly the same as
  1050. entering '4:r23&'.  The n value is a count, and the single digit after
  1051. the '#' is the repeat buffer to use. 
  1052.  
  1053.  
  1054.                                  -16-
  1055.  
  1056.  
  1057.  
  1058.  
  1059. TVX Reference Manual                                           2/25/86
  1060.  
  1061.  
  1062. >$$ - End of repeat loop {>$$}
  1063.  
  1064.      The repeat loop is terminated by a '>' and a double escape.
  1065. Note: '$$' represents escape. 
  1066.  
  1067.  
  1068. n& - execute repeat loop {<Esc>&}
  1069.  
  1070.      The '&' command executes the commands in the currently selected
  1071. repeat buffer n times. 
  1072.  
  1073.  
  1074. n#k - execute repeat loop k {<Esc>#}
  1075.  
  1076.      This command is an easy to execute a specified repeat buffer.
  1077. The n is a count and the k is a single digit repeat buffer number.
  1078. This command is exactly equivalent to 'k:rn&'.  Repeat buffer k
  1079. becomes the current buffer after '#' is executed. 
  1080.  
  1081.  
  1082. n~ - change case {<Esc>~}
  1083.  
  1084.      This command chanages the case of the character under the
  1085. cursor. 
  1086.  
  1087.  
  1088. ? - Help {<Esc>?}
  1089.  
  1090.      The '?' command causes help screens to be displayed.  There are
  1091. two help screens.  The first includes a summary of transitory values:
  1092. a summary of settable ':' parameters, the contents of the repeat and
  1093. find buffers, as well as buffer space left.  On 16 bit processors, if
  1094. the space left is greater than 32,000 characters, then 30,000+x will
  1095. be shown, where the total is 30,000 plus x. The first screen also
  1096. shows the last 16 commands you have entered.  This may be useful if
  1097. you entered "commands" while you thought you were in insert mode to
  1098. see what your keystrokes might have done.  The second screen of help
  1099. summarizes the command set. 
  1100.  
  1101.  
  1102. @ - Invoke command file {<Esc>@}
  1103.  
  1104.      Causes a prompt for command file name.  Commands in that file are
  1105. then read in and executed.  See description of backup command files
  1106. below for details.  This command is most useful for loading repeat
  1107. macros. 
  1108.  
  1109.  
  1110. n:P - Set special parameters {<Esc>:}
  1111.  
  1112.      The ':' (colon) command is used to set several TVX
  1113. characteristics.  The value n entered before the ':' is the value to
  1114. set the parameter to, and the character P that follows the ':' defines
  1115. the parameter to set.  Valid parameters include:
  1116.  
  1117. n:A - set autoindent.  A value of 1 turns on autoindent, 0 off.
  1118.  
  1119.  
  1120.                                  -17-
  1121.  
  1122.  
  1123.  
  1124.  
  1125. TVX Reference Manual                                           2/25/86
  1126.  
  1127.  
  1128.    Autoindent is useful for programmers.  When autoindent is on, each
  1129.    new line started while in insert mode will be indented to the same
  1130.    leading tab/blank space as the previous line.  Use blanks or tabs
  1131.    to add indentation, and backspace to backup over indentation. 
  1132.  
  1133. n:C - set cut mode.  When cut mode is enabled (1), killed lines are
  1134.    also saved in the save buffer.  This works for individual kill
  1135.    commands, e.g.  'kkk' will save only the line associated with the
  1136.    3rd k, while '3k' will save 3 lines in the save buffer.  With cut
  1137.    mode off, kill line does not save the lines in the save buffer. 
  1138.  
  1139. n:D - set home "display" line to n. The display line is the line the
  1140.    cursor homes to after a verify command.  (Default home display
  1141.    line: 16 on 24 line terminals, 9 on 16 line terminals.)
  1142.  
  1143. n:E - Expand tab value.  The default value for ':E' is 8, which causes
  1144.    the tab character (^I) to be expanded to multiples of 8 columns.
  1145.    This is the standard used on most systems.  Setting ':E' to 0 will
  1146.    cause tabs to be displayed as '^I' instead.  Other values are
  1147.    possible, but less useful. 
  1148.  
  1149. n:F - Find case mode: n <= 0 sets find mode to search for exact case
  1150.    of pattern, n > 0 (default) set search mode to ignore upper/lower
  1151.    case. 
  1152.  
  1153. n:M - Match wild cards.  (default=1).  If on, then matching of the TVX
  1154.    wild card sets is enabled.  If off, then the wild card control
  1155.    characters will match the actual control characters in the file. 
  1156.  
  1157. :o - set output file name.  When ':o' is entered, you will be prompted
  1158.    for the name of the edited output file.  This overrides the '-o'
  1159.    command line switch, and can be used to change your mind about the
  1160.    name of the edited file.  If the output file name is different than
  1161.    the input file name, the input file will not be renamed to the
  1162.    backup file name. 
  1163.  
  1164. n:R - select repeat buffer n. (default=1).  Repeat buffer n becomes
  1165.    the current repeat buffer executed with the '&' command.  The 'm'
  1166.    status command will show how many repeat buffers are available for
  1167.    a given implementation. 
  1168.  
  1169. n:S - scroll lines: This parameter sets how many lines the cursor will
  1170.    move before the screen scrolls.  The exact effect of the scroll
  1171.    parameter depends on the terminal characteristics.  On terminals
  1172.    that allow a blank line to be inserted at the top, ':S' sets how
  1173.    many lines cursor will move above and below home display line
  1174.    before scrolling.  Default is 0. Changing the scroll value to 4
  1175.    would let the cursor move up and down 4 lines from the home display
  1176.    line before actually scrolling the screen.  Some users might find
  1177.    this update mode more pleasant to use.  This will be almost
  1178.    essential on heavily loaded time shared systems.  For terminals
  1179.    that do not allow a blank line to be inserted at the top (no
  1180.    reverse scroll), 'n:S' sets how many lines cursor will move above
  1181.    the home display line before the screen is rewritten.  Default is
  1182.    14, which causes the cursor to move nearly all the way to the top
  1183.    before rewriting the screen. 
  1184.  
  1185.  
  1186.                                  -18-
  1187.  
  1188.  
  1189.  
  1190.  
  1191. TVX Reference Manual                                           2/25/86
  1192.  
  1193.  
  1194. n:T - tty mode.  A 0 is screen mode, a 1 is tty mode. 
  1195.  
  1196. :U - set User Wild Cards.  After entering :U, you will be prompted for
  1197.    a user wild card set.  You can use backspace to correct your entry,
  1198.    and '<Esc><Backspace>' to enter backspace and '<Esc><Esc>' to enter
  1199.    escape. 
  1200.  
  1201. n:V - virtual window lines.  The 'n:V' will set the virtual window to
  1202.    n lines.  N must be between 3 and the number of hardware lines on
  1203.    the terminal.  A smaller virtual window is extremely useful on busy
  1204.    time shared systems, or when TVX is used over a telephone line at a
  1205.    relatively slow baud rate.  Typically, a virtual window of 7 or 9
  1206.    is big enough to show a reasonable part of the file, yet small
  1207.    enough to reduce the overhead of screen update at slow speeds.  A
  1208.    window of 3 or 5 can even be used if needed.  Note that the virtual
  1209.    window can be set at start up time by using the '-#' switch.  The
  1210.    virtual window will use the top n physical lines of the display.
  1211.    Error messages and prompts will still be displayed on the bottom
  1212.    physical line.  Scanning up with 'u' will cause the lines to be
  1213.    scrolled onto the unused part of the screen, and gives a true
  1214.    picture of the file showing more lines than the window size. 
  1215.  
  1216. n:W - set auto wrap width.  The ':W' parameter sets the column number
  1217.    used for auto wrap mode.  When the auto wrap is set to a value
  1218.    greater that 1, TVX will automatically insert an end of line when
  1219.    the user types the first blank after the given column.  Normally,
  1220.    the user must manually hit the RETURN key to force an end of line.
  1221.    The auto wrap mode allows continuous entry of text without worrying
  1222.    about the right margin.  A good value to use for ':W' is 10 columns
  1223.    less than the screen width (70 on 80 columns screens). 
  1224.  
  1225. An invalid parameter value or name causes an error message. 
  1226.  
  1227.  
  1228.  
  1229.  
  1230.  
  1231.  
  1232.  
  1233.  
  1234.  
  1235.  
  1236.  
  1237.  
  1238.  
  1239.  
  1240.  
  1241.  
  1242.  
  1243.  
  1244.  
  1245.  
  1246.  
  1247.  
  1248.  
  1249.  
  1250.  
  1251.  
  1252.                                  -19-
  1253.  
  1254.  
  1255.  
  1256.  
  1257. TVX Reference Manual                                           2/25/86
  1258.  
  1259.  
  1260.                    *** BACKUP LOG FILE FEATURE ***
  1261.  
  1262.      TVX has a backup log file feature.  When the feature is enabled,
  1263. all commands entered in any given session are saved on a file called
  1264. "BACKUP.LOG" on the current directory or drive.  If for some reason
  1265. you destroy your file during an editing session (like accidentally
  1266. entering "100^K" instead of "100K"), you won't have to manually
  1267. re-edit the backup version of the file.  (By default, the log file is
  1268. disabled.  The 'L' invocation time switch will respectively disable or
  1269. enable the log file feature.)
  1270.  
  1271.      The "BACKUP.LOG" file contains all the commands you entered in
  1272. the last session.  Most commands will appear in the log file as you
  1273. entered them: R, U, D, etc.  However, all control characters,
  1274. backspace, and the atsign are encoded in the log file to make them
  1275. appear as printable characters.  The atsign '@' is used as an encoding
  1276. character.  So, for example, tabs appear as '@I', escapes as '@[',
  1277. RETURNs as '@M', and so on.  Control-A would appear as '@A'.  The '@'
  1278. itself would appear as '@@'.  Backspace appears as '@H'.  These escape
  1279. sequences may be split across the end of a line in the log file.  The
  1280. end of line marks in the log file are not part of the command stream
  1281. and are ignored. 
  1282.  
  1283.      The procedure for using the "BACKUP.LOG" file to restore your
  1284. file is as follows.  When you realize you have made a mistake, enter
  1285. the '^X' exit command.  Copy "BACKUP.LOG" to a temporary working
  1286. file.  Now edit that temporary version of the log file to remove the
  1287. mistakes, which should be near the end of the file. 
  1288.  
  1289.      Once the log file has been edited to remove the bad commands, you
  1290. should then re-edit the original file (the one without the mistakes).
  1291. The latest version of the file will be the one with the mistakes, and
  1292. should usually be killed.  Start TVX and read in the file.  Then enter
  1293. the '@' command and supply the name of the "repaired" log file.  All
  1294. the commands in that log file will be applied to the original file.
  1295. You should be careful to start the '@' command when the cursor is at a
  1296. specific place such as the beginning of the file.  After the '@'
  1297. command is finished, your file will be in the same shape it was before
  1298. the mistake. 
  1299.  
  1300.      For example, suppose you are editing a file called "MYFILE0.TXT"
  1301. and that you accidentally kill 100 lines.  When you realize your
  1302. mistake, you enter '^X' to exit.  Then you should copy or rename the
  1303. BACKUP.LOG file to a new temporary file - say FIX.LOG.  The current
  1304. version of the file you were editing is the bad file and should be
  1305. deleted.  On CP/M and MS-DOS versions, you would rename MYFILE0.BAK to
  1306. be MYFILE0.TXT again.  Then, edit FIX.LOG to remove the command that
  1307. killed 100 lines and the quit command ("100@K@X").  Exit again, and
  1308. re-edit MYFILE0.TXT.  If you then enter the '@' command, and respond
  1309. with FIX.LOG as the name of the command file, your file will be
  1310. brought back to the state it was in right before the '100^K'. 
  1311.  
  1312.      There are some special cases that require special attention when
  1313. using the backup log file.  These cases involve the entry of file
  1314. names or strings, such as for '^Y', ':o', and ':u'.  For 'Y', the file
  1315. read as a part of the given command is read using the same I/O channel
  1316.  
  1317.  
  1318.                                  -20-
  1319.  
  1320.  
  1321.  
  1322.  
  1323. TVX Reference Manual                                           2/25/86
  1324.  
  1325.  
  1326. as the backup log file input, and thus both cannot be used at the same
  1327. time.  If the backup log file contains any '^Y' commands (displayed in
  1328. the log file as '@Y'), you must remove them.  Obviously, this will
  1329. alter the order of the commands in the file, and you will need to use
  1330. a special procedure.  Suppose, for example, that the backup log file
  1331. contained one '^Y' command.  Make two copies of the backup log file.
  1332. Edit the first, and remove all commands following the '^Y' command,
  1333. including the '^Y' command.  Then edit the other copy, and remove all
  1334. commands before the '^Y', including the '^Y'.  Then, edit the backup
  1335. copy of the original file.  First, apply the first backup log file.
  1336. This will get you to the point right before the '^Y'.  Then without
  1337. changing the cursor position, manually enter the '^Y' command and file
  1338. name.  Finally, apply the second copy of the backup log file. 
  1339.  
  1340.      For ':o' and ':u', the filename or user set are not save as part
  1341. of the log file, and you will in fact be prompted for the file name or
  1342. user set while the log file is being executed.  There is no real clean
  1343. way around this. 
  1344.  
  1345.      It is also possible to write log command files of your own to
  1346. carry out specific commands.  This allows the creation of "macros"
  1347. that can be executed as needed.  When creating log files of your own,
  1348. you should remember that control characters and backspaces must appear
  1349. as encoded characters.  The '@' is the encoding character.  Control
  1350. characters will appear as '@' followed by the appropriate letter: '^I'
  1351. = '@I', enter = '@M', etc.  An '@' itself is '@@', and backspace is
  1352. '@H', although you should never need a backspace in your own files
  1353. (use -K). 
  1354.  
  1355.  
  1356.  
  1357.  
  1358.  
  1359.  
  1360.  
  1361.  
  1362.  
  1363.  
  1364.  
  1365.  
  1366.  
  1367.  
  1368.  
  1369.  
  1370.  
  1371.  
  1372.  
  1373.  
  1374.  
  1375.  
  1376.  
  1377.  
  1378.  
  1379.  
  1380.  
  1381.  
  1382.  
  1383.  
  1384.                                  -21-
  1385.  
  1386.  
  1387.