home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / vol_100 / 179_01 / tvx_refa.doc < prev    next >
Text File  |  1986-01-27  |  50KB  |  1,124 lines

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