Background
jLogo Programming
- Commanding a Turtle
- Pseudocode
- Adding New Commands
- Iteration & Animation
- Hierarchical Structure
- Procedure Inputs
- Primitive Operators
- Defining Operators
- Words & Sentences
- User Interface Events
- What If? (Predicates)
- Recursion
- Local Variables
- Global Variables
- Word/Sentence Iteration
- Mastermind Project
- Turtles As Actors
- Arrays
Java
- A Java Program
- What's a Class?
- Extending Existing Classes
- Types
- Turtle Graphics
- Control Flow
- Input Events
Appendices
Lastly
Appendix D (Editor)
Introduction
The TG programming environment has a built-in editor. This editor is currently pretty primitive, providing only simple functionality. But, it's use as an interface for the jLogo 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.
Editor Commands
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" (or "Delete" on an Apple Mac). 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] on Windows) |
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] on Windows) ([Delete] on Mac) |
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-s Ctrl-s | 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. |
Go to the Table of Contents
On to Appendix E (Java Tables)