The BFOIT Introduction to Programming Class
Appendix C
(TurtleTalk Editor)


The TurtleGraphics applet and application (TG) have a built-in editor called the TurtleTalk Editor.  This editor is currently pretty primitive, providing only simple functionality.  But, it's use as an interface for the TurtleTalk interpreter provides functionality that's better than a simple input stream.

This appendix provides tips on how to use the editor efficiently, e.g., some techniques are presented that cut down what you need to type to get things done.  A table of editor commands is also provided.


TurtleTalk Editor Commands Table

In the following editor command descriptions, the convention of characters inside square brackets means the key with a label equal to the characters inside the brackets.  As an example, [Backspace] means the key labeled "Backspace." The notation: "Ctrl-x" means to hold the [Ctrl] key down and press the key labeled "x."

Command Description
Ctrl-a
[Home]
Moves the cursor to the beginning of the current line.
Ctrl-b
[left arrow]
Moves the cursor backwards one character.
Ctrl-c Copys highlighted text (the current selection) to a temporary holding area.
Ctrl-d
[Delete]
Deletes the character to the right of the cursor.
Ctrl-e
[End]
Moves the cursor to the end of the current line.
Ctrl-f
[right arrow]
Moves the cursor forward one character.
Ctrl-h
[Backspace]
Deletes the character to the left of the cursor.
Ctrl-k Deletes all characters on the current line to the right of the cursor unless the cursor is at the end of the line. In this case, the following line is joined with the current.
Ctrl-n
[down arrow]
Moves the cursor down to the next line.
Ctrl-o Opens a blank line above the line containing the cursor.
Ctrl-p
[up arrow]
Moves the cursor up to the previous line.
Ctrl-r Reverse search, i.e., search backwards for a sequence of characters, toward the first character in the buffer. An [Esc] aborts the search.
Ctrl-r Ctrl-r Repeat reverse search.
Ctrl-s Search for a sequence of characters. A search prompt bar pops up for entering the desired sequence of characters. An [Esc] aborts the search.
Ctrl-r Ctrl-r Repeat search.
Ctrl-v Inserts the contents of the temporary holding area in front of the cursor.
Ctrl-x Copys highlighted text (the current selection) to a temporary holding area and then deletes it.
[Esc] < Move the cursor to the first line in the buffer.
[Esc] > Move the cursor to the last line in the buffer.
[Page Down] Replaces the lines displayed with the lines below them, i.e., the next page.
[Page Up] Replaces the lines displayed with the lines above them, i.e., the previous page.


Back to Table of Contents