chapter  5
32 Pages

Interactive techniques

The CLEARTEXT command is the text screen equivalent of CLEARSCREEN. CLEARTEXT erases the text screen and moves the cursor to a standard position, in this case the top left corner of the display. If Logo is in split-screen mode, CLEARTEXT will leave the cursor at the top of the text portion at the bottom half of the screen. To use the entire screen for text and put the cursor on the top line of a clean, screen it is convenient to use a procedure like CLS:

TO CLS TEXTSCREEN CLEARTEXT END

5.1.1. PRINT and TYPE Commands So far we have used the PR I NT command to display information on the Logo

text screen. We saw that PRINT takes any Logo object as an input, prints it on the next available screen line, and then moves the cursor to the following line. When PRINT is given several inputs (surrounded by parentheses), it prints a space character after each input, as in this example:

? ( PR I NT CA STITCH! [ I N TIME] "SAVES 9 ) A STITCH IN TIME SAVES 9

The TYPE command allows more control over the appearance of information on the screen. It works just like PRINT with two exceptions: (1) It does not skip to a new line. After a T Y P E command, the cursor remains at the end of whatever was typed. (2) It does not automatically insert spaces between inputs when there are two or more inputs.