Dr Logo for the Tatung Einstein, showing a rosette drawn by the turtle
← Back to Modules
module
28

Appendix I - The screen editor's keys

The keys that move the cursor about in ed, and the two that get you out.

S10 uses a handful of these. The rest are here so that you are not stuck when the one you want is not the one S10 taught you.

Getting out

PressWhat happens
CTRL-CKeep the changes. The procedure is redefined and you go back to ?
ESCThrow the changes away. Prints Stopped! and goes back to ?

Both leave the editor. There is no way to save without leaving.

Moving about

The Einstein's two cursor keys move the cursor here. They are the grey pair at the right-hand end of the QWERTY row: the horizontal key moves one character right, or left with SHIFT held; the vertical key moves down a line, or up with SHIFT. In MAME they are Tab and the Down arrow.

The three keys marked with a single arrow are character keys, not cursor keys. At the ? prompt ← and → give you [ and ], but once ed is open they neither type brackets nor move the cursor. In MAME they are your Left, Right and Up arrows, which is why the arrows seem dead in the editor.

Everything below works as well, with CONTROL:

PressMoves the cursor
the horizontal cursor keyOne character right; with SHIFT, left
the vertical cursor keyDown one line; with SHIFT, up
CTRL-HOne character left
CTRL-DOne character right
CTRL-ATo the start of the line
CTRL-ETo the end of the line
CTRL-JDown one line
CTRL-KUp one line

When ed opens, the cursor is at the end of the first line, after the procedure's name, not at the start of it.

Tatung's own manual describes the two cursor keys this way, and MAME's Einstein agrees with it. What they do in Dr Logo was checked in MAME, not on a real Einstein. If you have one and it behaves differently, please let us know and this page will be corrected.

Changing the text

PressWhat happens
CTRL-YDeletes the character before the cursor
typingInserts at the cursor. Nothing is ever overwritten

The editor is always inserting. There is no overtype mode to get stuck in, and nothing you type will replace what is already there; to replace something you delete it first and then type.

A worked change

Say to star is on the screen and you want the body, on the second line, to turn by 72 rather than 144:

to star
repeat 5 [fd 60 rt 144]
end
  • CTRL-J to get down to the second line.
  • CTRL-E to get to the end of it.
  • CTRL-Y four times, which takes off 144]; the closing bracket counts.
  • Type 72].
  • CTRL-C to keep it.

Count the deletes carefully. Three would leave rt 1, and typing 72] after that gives you rt 172], which is a different shape and not an obvious mistake to spot afterwards.

Deleting from the end of the line and retyping is usually less fiddly than counting characters to get to the middle of one.

What is not here

The manual for Dr Logo lists around twenty more control codes, covering things like deleting to the end of a line, opening a blank line, paging up and down through a long definition, and recalling text you have just deleted.

They are not listed here because they have not been tried. Everything in this appendix has been run on the machine and does what it says.

Get the Newsletter

New guides, disk images and community finds, roughly once a quarter. No spam, we promise, this isn't Tatung's marketing department.
Your subscription could not be saved. Please try again.
Your subscription has been successful.

Newsletter

Subscribe to our newsletter and stay updated.