home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.barnyard.co.uk
/
2015.02.ftp.barnyard.co.uk.tar
/
ftp.barnyard.co.uk
/
robot-pd
/
12400.ZIP
/
12400B.DSK
/
manual04.txt
< prev
next >
Wrap
Text File
|
1998-04-30
|
10KB
|
315 lines
C H A P T E R F O U R
4. Transient Programs
4.2 CTX - Centrox Text Editor
Description :Centrox TeXt Editor
Format :CTX [+<line.number>][<source file path>
[<dest file path>]]
On invocation, if no file paths are given, CTX will simply
enter control mode and wait for the user to issue some
command.
If a source file path is given, the file will be loaded
into memory from the disk. If the destination file path is
given, CTX will default to this name when saving files,
instead of defaulting to the source name.
Note:As far as single drive users are concerned the source
and destination files do NOT have to be on the same disk
as they won't be open at the same time.
The construct "+<line number>" can be used to make CTX
place the cursor at a specific line in the text after it
has been loaded. This feature is useful when debugging
compiler source code.
NB:Due to Centrox translation, the double quote character
is not displayed as such, instead it looks similar to a
single forward quote..see SYMBOL in the previous chapter.
4.3 Control Mode
The control mode operates as a command interpreter. This
implies that each request is invoked by typing its name
and arguments in response to a prompt. In practice, the
arguments to a command do not need to be supplied with the
name-CTX will prompt for any missing parameters. Commands
may be abbreviated by truncating the name and adding a
dot.
Shell commands are freely available, but at present
require that the Shell be running in Permanent mode, and
present in memory. The next version of Centrox may well
rectify this problem.
4.3.1 The SAVE Command
Format :SAVE <file path>
Instructs CTX to tidy the text and save the result to
disk. The tidying up operation can take a significant time
to complete if the text in memory is quite long.
The current output file path can be selected by entering a
NULL file path at the destination prompt. The current
input (and output) file names are displayed on the left of
the status window.
4.3.2 The LOAD Command
Format :LOAD <file path>
Instructs CTX to delete the text currently in memory and
load a new file from disk. If an error occurs when
specifying the file path, the text in memory will not be
deleted. However, if the requested file does not exist,
the text WILL be deleted. The output file name will be set
to the input file name as passed to LOAD by the user.
There is no way to change the default output using the
LOAD command, so see OUTPUT.
The current input (and output) file names are displayed on
the left side of the status window.
4.3.3 The QUIT Command
Format :QUIT
Instructs CTX to exit back to Centrox. No check is
performed to ensure that the text has been saved first. It
is assumed that the QUIT command can't be invoked by
accident.
4.3.4 The OUTPUT Command
Format :OUTPUT <dest file path>
This allows the user to change the default destination
name for the text. This function is described under the
SAVE section.
The current input (and output) lines are displayed on the
left side of the status window.
4.3.5 The EDIT Command
Format :[RETURN]
Pressing [RETURN] at the prompt will return the user to
text edit mode.
4.3.6 Centrox Commands
Shell commands can be executed from within CTX by typing
the standard command line at the prompt. Note, however,
that the ALIAS function will no longer work, nor will the
DO command history be updated. DO can, however, still be
used to access previous commands. External commands can
not be invoked-instead the error message "Command
unavailable" will be returned.
If the Shell is running in Transient mode, all its
commands become "unavailable".
4.3.7 The GOTO Command
Format :GOTO <line number>
Positions the cursor at the given line of text. This
function can be pre-requested by using the "+" invocation
option. Note that "GOTO $" moves the cursor to the last
line of text.
4.3.8 The FETCH Command
Format :FETCH <file path>
This is similar to LOAD except that the new text is
inserted into the text in memory at the current cursor
position. The cursor position will not be altered.
4.3.9 The CLEAR Command
This clears all text from memory. WARNING:THERE IS NO
CONFIRMATION FOR THIS COMMAND-IT IS ASSUMED THAT YOU WON'T
TYPE CLEAR BY ACCIDENT !
4.4 Edit Mode
Edit mode allows the user to alter the text currently in
memory. It is entered by typing [RETURN] at the control
prompt.
Edit mode operates in two ways. The first way is INSERTION
mode. In this mode, space is made for characters as they
are typed into a line. Words that are pushed off the end
of a line "wrap round" onto the line below. In OVERWRITE
mode characters simply obliterate those they are typed
over.
The current entry mode is displayed in the middle of the
status window, on the bottom line.
If no keys are pressed for three `blinks' of the cursor,
the amount of free memory, and position of the cursor will
be displayed in the top status window.
4.5 Edit Control Keys
All the following keys must be pressed while the [CONTROL]
key is being held down.
4.5.1 "D" - End Of Data
<CONTROL>+<D> causes an EOD signal to be emitted. This is
trapped by CTX and recognised as a request to return to
the Control mode. Edit mode can be re-entered by typing
<RETURN>
4.5.2 "I" - Insert Mode
This causes INSERTION mode to be entered. This mode is
described in section (4.4).
4.5.3 "O" - Overwrite Mode
This causes OVERWRITE mode to be entered. This mode is
described in section (4.4).
4.5.4 "U" - Upper Case
This forces the letter under the cursor to change to upper
case. After the operation, the cursor will move one
position to the right.
4.5.5 "L" - Lower Case
This performs the reverse operation to <CONTROL>+<U>.
4.5.6 "Y" - Insert Line
This causes a new blank line to be inserted at the current
line. WordStar users may have noticed that CTX is not
entirely WordStar compatible...!
4.5.7 "P" - PCC Request
This allows the user to enter PCCs (Printer Control
Characters) into the text. Each of the PCCs can be defined
by the user. This is only relevant to FORMAT and will be
discussed in that section of the manual.
In the mean time, note that there are twenty six PCCs.
They are represented by the letters "A" to "Z". When shown
on screen they will appear in inverse video - except when
the cursor is on top of them. A capital letter turns a
function on while the corresponding lower case letter
turns the function off.
Note that the PCCs are not affected by the <CONTROL> +<U>
/ +<L> commands. Also note that the following PCCs have
special "reserved" meanings:-
A : Elite
B : Proportional
C : Condensed
D : Enlarged
E : NLQ
F : Bold
G : Double Strike
H : Italics
I : Superscript
J : Subscript
K : Underlined
4.5.8 <CURSOR KEYS>
When unshifted, these move the cursor around the screen as
expected. When SHIFTed, UP and DOWN jump a screen of text
in the required direction. LEFT & RIGHT move one word in
the required direction. [CONTROL] with LEFT and RIGHT move
the cursor to the START / END of the current line. When
pressed with [CONTROL] UP and DOWN move to the START/ END
of the text respectively.
4.5.9 [DEL],[RETURN] & [CLR]
These work as normal expect that [CONTROL]+[DEL] deletes
the current line, and [RETURN] moves to the first NONE
SPACE character of the next line. Note that if the cursor
is not at the left edge of a line (and if the current line
is not blank) when [CONTROL] & [DEL] is pressed, then only
the contents of the line will be deleted-the line will
still exist (as a blank line).
4.5.10 "X" - Compress Text
This causes CTX to remove all surplus spaces from the ends
of lines and to re-establish the true end of text. This
function is interrupt driven as it may take some time to
complete. Text alterations can continue while the
operation is working. When it has finished, the size of
the file and cursor position are displayed.
SAVE invokes this operation automatically.
4.5.11 [TAB]
Pressed with [SHIFT] sets or unsets a tab stop. Pressing
[TAB] moves the cursor to the next tab stop. Pressing
[CONTROL] and [TAB] moves the cursor back to the previous
tab stop. TAB stops are shown on the bars both above and
below the main text window. Note that attempting to unset
the left (and right) edge stops will clear all OTHER stop
positions-in particular, attempting to change the right
edge tab stop will return the tab stops to their default
setting.
4.5.12 "G" - Where Am I ?
This shows the current cursor position and the free memory
available for text. It is recommended that the user press
these keys occasionally to allow the computer to "reclaim"
unused areas of its memory.
Alternatively, the position update brought about by
allowing the cursor to blink three times is just as
effective.
╩C H A P T E R F O U RΩ
╩4. Transient ProgramsΩ
╩4.2 CTX - Centrox Text EditorΩ
╩DescriptionΩ :