You are on page 1of 5

^

Chapter 9

Your Workspace
As you interact with Logo and give words mean ing Logo puts these new words in what we refer to as your workspace. If you want to see what you have in your work space, Logo provides several ways to do so. For example, you can print out the title lines of all the procedures you have written or you can print out their definitions. Printing Out Procedures p o t s prints out the title lines of each of the proce dures in the workspace. Type
POTS PrintOut Titles

Logo responds
TO S Q U A R E TO S Q U A R E S T A R

and so on. prints out the definitions of all the proce dures in the workspace. Type
po ps

POPS

PrintOut Procedures

Logo responds
TO S Q U A R E FD 3 0 RT 9 0 FD 3 0 RT 9 0 FD 3 0 RT 9 0 FD 3 0 RT 9 0 END

PO PS

61

TO S Q U A R E S T A R REPEAT 8 [SQUARE END

RT

45]

and so on. You can print out the definition of any particular procedure with p o (PrintOut). For example, type
*P 0 "SQUARESTAR*

PO " S Q U A R E S T A R

Logo responds
TO S Q U A R E S T A R REPEAT 8 [SQUARE END
?P0 'SQ U AR ESink TO SQUARESTAR REPEAT 8 CSQUARt R< >.)

RT

45]

PO "S Q U A R E S T A R

can also be given a list of procedure names. For example, p o [s q u a r e s q u a r e s t a r d i a m o n d ] would r print out the definitions of the three procedures whose names are in the input list.
po

Erasing From the Workspace You can erase procedures from your workspace. If you have not saved these procedures on a disk ette, you will have to type them in again. So, make sure you really want to erase. There are several Logo commands to erase your work. The most commonly used is e r a s e , whose short form is e r

62

ERASE

"DIAMOND
d ia m o n d

e ra ses th e p roced ure


ERASE [SQUARE

SQUARESTAR]

e r a s e s a ll t h e p r o c e d u r e s n a m e d in t h e in p u t lis t .
ERPS

e r a s e s a ll p r o c e d u r e s fr o m t h e w o r k s p a c e

Bug Box Some of these workspace commands can take an additional input. We do not discuss that use in this manual, but to avoid any problems we sug gest that you use these commands by themselves with no other command following them on that line. Logo Vocabulary Full Name
ERASE ERPS PO POTS POPS

Short Name
ER

You might also like