home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga MA Magazine 1998 #6
/
amigamamagazinepolishissue1998.iso
/
coders
/
jËzyki_programowania
/
logo
/
powerlogo
/
logo-startup.doc
< prev
next >
Wrap
Text File
|
1992-11-10
|
6KB
|
206 lines
LOGO-Startup.doc
The default 'LOGO-Startup' file loads all project files specified, and
provides the following:
Menu items:
Load Load a LOGO program file. Gets a file name from the
file requester.
Save This saves contents of all unprotected variables to a
LOGO program file. Gets the file name from the file
requester.
Edit Switch to text editor.
Edit File Edit a LOGO program file. Gets a file name from the
file requester.
Turtle Prepare screen, window, and turtle for turtle graphics.
This loads the 'Turtle-Shell' file.
Interrupt Interrupt a program. This is like the break key (CTRL G)
except you may continue by giving the command 'stop'.
Top Level Stop a program. This is similar to the break
key (CTRL G).
Quit Exit from LOGO.
Utility procedures:
all
Output list of all variable names.
allnames
Output list of names that contain something other than procedures.
allprocs
Output list of names that contain procedures.
clean-quit
Exit LOGO.
closeall
Close all files, turtles, windows, and screens.
combine object object
object = Any list or word.
Concatenates the objects using `se' or `word' as appropriate based
on the second input.
command text ( port-name host-name file-ext )
text = Word or list containing instruction to be run
by the command destination.
port-name = Name of destination port, default 'REXX'.
host-name = Name of port to get commands back from ARexx,
default output of 'hostport'.
file-ext = File name extension ARexx will use to find
command, default 'LOGO'.
LOGO command to send an ARexx command.
create-message
Allocate an ARexx message.
delete-message
deallocate an ARexx message.
ed name
name-list
name = Word, a variable name.
name-list = List of names.
Edit the contents of specified variables. This procedure works by
calling the 'QED' text editor by Darren M. Greenwald, or by calling
'C:ED'.
edf file-name
file-name = An Amiga DOS file name (word or list).
Edit the contents of specified file. This procedure works by
calling the 'QED' text editor by Darren M. Greenwald, or by calling
'C:ED'.
edit ( name )
( name-list )
name = Word, a variable name.
name-list = List of names.
Edit the contents of specified variables. This procedure works by
calling the 'QED' text editor by Darren M. Greenwald, or by calling
'C:ED'.
emptyof object
object = Any list or word.
Returns the empty word if the `object' is a word, or the empty list if
`object' is a list.
existp name
Output true if name is a variable.
filter test object
test = A comparison instruction (word or list).
object = Any list or word.
Outputs an object that contains only those items that satisfy the
test. Example, `filter [ < 10 ] [ 9 11 13 3 ]' produces `[ 11 13 ]'.
flush
Erase all unprotected names.
ignore object ( object... )
object = Any word or list.
Does nothing. Ignores the output of an operation.
interupt
A LOGO command shell that may be run from within other procedures.
names
Output list of unburied names that contain something other than
procedures.
pots name
name-list
name = Word, a variable name.
name-list = List of names.
Print out procedure titles. Prints names, inputs, and optional inputs.
procs
Output list of unburied names that contain procedures.
prosave file-name name
file-name name-list
file-name = An AmigaDOS file name (word or list).
name = Word, a variable name.
name-list = List of names.
Save names, their bindings, and their protection (bury) status to
file with an icon.
remove object object
object = Any list or word.
Output second object after removing any items that are also in the
first object. Example, `remove "aeiou "hello' produces `"hll'.
reset
Close everything, erase all names but the 'LOGO-Startup' file.
reverse object
object = Any word or list.
Reverse the order of the items in the object.
say object ( object )
object = Any word or list.
Uses the Amiga's speech capabilities to `say' the object, by printing to
the 'SPEAK:' device.
set-turtle ( view-modes bit-planes )
view-modes = Number, viewport modes, sum of:
1 = hires
2 = lace
bit-planes = Number of bit planes (1 to 6) .
Prepare screen, window, and turtle for turtle graphics. This loads the
'Turtle-Shell' file.
sort test list
test = A compare instruction (word or list).
list = Any list.
Sort list based on test.
spr object
object = Any word or list.
Print out sorted contents of lists verticaly.
switch number list
number = Index into list.
list = List of instruction-lists.
Run numbered instruction-list from the list.
vpr object
object = Any word or list.
Print out contents of lists verticaly.
Examples:
To print a list of all variable names currently in use, type this command:
vpr all
To list just the names of the procedures:
vpr allprocs
To list them alphabetecally:
vpr sort [ alphap ] allprocs
or:
spr allprocs
or just names:
spr names
To save the contents of all variables currently in use:
prosave filerequest all