home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Interactive Guide
/
c-cplusplus-interactive-guide.iso
/
c_ref
/
csource3
/
179_01
/
tvx_refb.doc
< prev
next >
Wrap
Text File
|
1986-01-28
|
34KB
|
1,125 lines
TVX Reference Manual 11/27/85
the mistake, all the edit commands before the last '^B' as well as the
'^B' should be removed from the log file before applying it to the
previous version since '^B' created a backup copy of the file. This
means that all the editing commands entered before the '^B' will
already be saved, and thus should not be restored. Failure to take
this into account will result in a randomly edited file!!!
The other case involves the '^Y' yank external file command. The
external file read as a part of the '^Y' command is read using the
same I/O channel as the backup log file input, and thus both cannot be
used at the same time. If the backup log file contains any '^Y'
commands (displayed in the log file as '@Y'), you must remove them.
Obviously, this will alter the order of the commands in the file, and
you will need to use a special procedure. Suppose, for example, that
the backup log file contained one '^Y' command. Make two copies of
the backup log file. Edit the first, and remove all commands
following the '^Y' command, including the '^Y' command. Then edit the
other copy, and remove all commands before the '^Y', including the
'^Y'. Then, edit the backup copy of the original file. First, apply
the first backup log file. This will get you to the point right
before the '^Y'. Then without changing the cursor position, manually
enter the '^Y' command and file name. Finally, apply the second copy
of the backup log file.
It is also possible to write log command files of your own to
carry out specific commands. This allows the creation of "macros"
that can be executed as needed. When creating log files of your own,
you should remember that control characters and backspaces must appear
as encoded characters. The '@' is the encoding character. Control
characters will appear as '@' followed by the appropriate letter: '^I'
= '@I', enter = '@M', etc. An '@' itself is '@@', and backspace is
'@H', although you should never need a backspace in your own files
(use -K).
-18-
TVX Reference Manual 11/27/85
*** USER CUSTOMIZATION of TVX ***
A program called TVCONFIG is also provided with most versions of
TVX. It allows you to customize TVX to a great extent. The program
generates a file called CONFIG.TVX. When TVX is started with a
command line of the form: 'TVX filename -c=config.tvx", the values
defined in CONFIG.TVX will be used instead of the defaults. (Warning:
TVCONFIG is may not be implemented for all systems. Specifically, the
default Unix distribution does not provide TVCONFIG capabilities.)
TVCONFIG is mostly self explanatory. It allows you to change the
following:
1. Commands. All of the approximately 50 commands can be redefined.
There are some restrictions: all commands must be a single letter, and
case is ignored. The '@', ESCAPE, and '<>' commands cannot be
changed. Commands cannot be a number, including a '-'.
2. Synonyms. You may define some synonyms, such as space for right,
or RETURN for down. You cannot duplicate previously defined
commands.
3. Function Keys. Up to 50 function keys may be defined to be
equivalent to any command (in fact any letter or character). When a
function key is pressed, TVX will translate it to the character you
specify. If your function keys use an ESCAPE as a prefix character,
you will have to redefine a function key to be ESCAPE!
4. Parameters. You may change the default for any of the ':'
parameters.
After you have built a suitable working version of CONFIG.TVX,
another program called TVPATCH has been provided (for MS-DOS systems
only) to allow TVX.EXE (or TVX.COM) to be permanently patched with the
options set by TVCONFIG. This means you won't have keep track of the
CONFIG.TVX file any more, and won't need the '-c' switch.
-19-
TVX Reference Manual 11/27/85
*** Error Messages ***
*** Abort, are you sure?
This message is displayed after the "abort" command has been
entered. A reply of y or Y will cause the session to be terminated.
*** Bad O= switch
An incorrect format was specified for the O= switch.
*** Bad @ name
An invalid file name was specified. Re-enter.
*** Bad command: x
The command is not a valid TVX command.
*** Bad file name
An invalid file name was specified. Re-enter.
*** Bad output file: filename
An invalid output file was specified.
*** Bad par (val | name)
An invalid value or parameter name was specified.
*** Bad switch
An invalid switch was specified. Re-enter file name and
switches.
*** buffer empty
Information message. Displayed after a new file has been
created, or when the write buffer command is executed and the text
buffer is empty.
*** Can't create new name
TVX was unable to create a new name for the output file. Free
some disk space, rename the file, try again.
*** Can't insert that
There are three values that TVX uses internally, and thus are not
valid as user inserted characters in the text buffer.
*** Compacting buffer
Information message. Displayed when TVX is compacting the
buffer. The compaction process may take several seconds.
*** Compacting done
Information. The compaction is complete.
*** Compactor lost: quit now!
An internal error has been discovered. Exit TVX immediately, and
preserve the backup copy. Try the session again.
*** Create? (y/n)
The file name specified does not exist. A y answer will cause
the file to be created. A n answer will allow the file name to be
respecified.
-20-
TVX Reference Manual 11/27/85
*** Error reopening
Something has gone wrong with the 'File beginning' command.
Exit, and try editing the file again. Be careful since an empty file
may have been created.
*** File only part read
There was not enough room in the save buffer to hold the entire
external file specified in the 'merge' command. Try re-editing using
the 's' big buffer switch.
*** lines filled
TVX has run out of room to add more lines. Use the 'write
buffer' or 'file beginning' command to get more space for new lines.
*** no get room
There is not enough room in the text buffer to insert all the
text in the save buffer. Use the 'file begin' or 'write buffer'
commands, and try again. The '-^W' command is often useful.
*** no more lines for insert
See "lines filled".
*** no nesting
TVX does not allow nested repeat loops: "<<..>>".
*** no save room
There is not enough room left to save any more text in the save
buffer. Try saving smaller blocks, or use the 'file begin' command to
get more space.
*** No! buffer empty
Many TVX commands are not allowed on an empty buffer. Sometimes,
just inserting a blank line will allow the desired command to be
used.
*** No: read only
'File beginning' command invalid when the 'r' read only switch
was used.
*** not found
The current find pattern was not found.
*** Not last line!
TVX will allow you to save the last line of the file only once.
*** reading file...
Displayed while TVX is reading in the file.
*** rename fai