Editing Programs And Procedures; Operating Hints - AMSTRAD cpc 6128 User Instruction

Integrated computer/disc system
Hide thumbs Also See for cpc 6128:
Table of Contents

Advertisement

Editing programs and procedures
Dr. LOGO allows us to correct typing mistakes and to alter procedures we have
defined. The editing keys to use are:
The cursor keys
0-'0-<][;
which move the cursor by one character or line at a time.
The cursor keys
oo~Q
pressed at the same time as holding down
[CONTROL]
will move the cursor up and down a page, and to the left and right of a
line.
[ClR]
deletes the character under the cursor,
[DEL]
deletes the character to the left of
the cursor.
[RETURN]
tells Dr. LOGO that you have finished editing a line of commands, or
makes a new line if you are editing a procedure.
[ESC]
means abandon, and
[COPy]
tells Dr. LOGO that you have finished editing a
procedure.
When typing in commands or new procedures, simply edit the text in front of you on
the screen. Characters will be inserted into the text at the cursor position.
To edit an already existing procedure, use the command ed, and Dr. LOGO will
display the old version of the procedure on the screen. You may then use the
previously described methods to move the cursor around the screen, and change the
text.
Try editing the procedure' pat t ern' by typing:
ed "pattern
Experiment with the editing keys.
If,
when you have finished, you press [ESCl, then
Dr. LOGO will abandon what is on the screen and give you back the original unedited
version.
Type e d " pat t ern again, and after changing the number 4 to 8, press
[COPy]
to
exit, then re-run the procedure and see how the screen output has changed.
Remember to set the initial value into: e d 9 e
Operating hints
The workspace used by Dr. LOGO is divided into nodes. You can see how many are
left by typing:
nodes
Chapter 6 Page 6
Introduction to Logo

Advertisement

Table of Contents
loading

Table of Contents