AMIGA LOGO COMMANDS AND PRIMATIVES QUICK REFERENCE Typed in by SIDEWINDER for LSD. Edited by PARASITE. This is for use with the AMIGA LOGO package which is included with the CLASS OF THE 90's package, which isn't copy protected! Use of this reference assumes familiarity with the basics of Logo and the operating features of the Commodore Amiga computer. COMMANDS CURSOR MOVEMENT KEYS FUNCTION CTRL-F or RIGHT-ARROW Forward a character CTRL-B or LEFT-ARROW Back a character CTRL-A or SHIFT-LEFT-ARROW Beginning of line CTRL-E or SHIFT-RIGHT-ARROW End of line CTRL-N or DOWN-ARROW Next line CTRL-P or UP-ARROW Previous line CTRL-W Forward a word CTRL-Q Back a word CTRL-I Tab Forward SCROLLING CTRL-V Scroll forward 1/2 page CTRL-R Scroll back 1/2 page CTRL-L Scroll line to center NEW LINE CTRL-J Start new line (split line) CTRL-M or RETURN Start new line CTRL-O Start line above current line DELETING CTRL-D or DEL Delete character CTRL-H or BACKSPACE Delete previous character CTRL-K Delete to end of line INSERTING CTRL-Y Yank back characters EXITING CTRL-G Exit editor & do not save content of buffer CTRL-C Exit editor & save content of buffer CTRL-T Toggle between edit and graphic windows EXECUTION CTRL-G Stop execution CTRL-Z Pause execution PRIMITIVES Complete functional descriptions of the primitives can be found in the LOGO manual. PRIMITIVE FUNCTION SCREEN, TEXT, AND EDITOR ClearText, CT Clear text window and home text cursor Cursor Output position of text cursor DumpEdit, DE Dump contents of text cursor DumpText, DT Dump entire text window to printer Edit Start or resume Logo editor session name, name-list EditAll,EdAll Edit everything in workspace or packages package, package-list EditFile, EdF Edit Logo file file EditNames, EdNs Edit all variables in workspace or packages package, package-list EditProcs, EdPs Edit all procedures in workspace or packages package, package-list FullScreen, Fs Display Graphics window only SaveEdit, SaveFile Save editor buffer to file file SetCursor Set text cursor position column row SplitScreen, SS Display both graphic and text windows TextScreen, TS Display text window only GRAPHICS Aspect, Scunch Output aspect ratio of screen Back, Bk distance Move turtle backwards a distance Background, Bg Output color-number of screen Clean Clear graphics screen, no affect on turtle ClearScreen, CS Clear graphic screen, home turtle Dot (x,y) Put dot at X,Y position, no affect on turtle DumpGraphics, DG Dump graphic screen to printer Fence Restrict turtle to moving only on graphic screen Fill Fill area bounded by current pen color Fillin Fill area bounded by color Forward, Fd distance Move turtle forward by distance GraphicsType, GrType Print text to graphics screen object Heading Output heading angle of turtle HideTurtle, HT Remove turtle pointer from screen Home Center turtle on screen and zero heading Left, LT angle Rotate turtle counter-clockwise Pen Output list of pen state and pen color PenColor, PC Output color-number of pen PenDown, PD Put pen into draw state PenErase, PE Put pen into erasing state PenReverse, PX Put pen into reverse state PenUp, PU Put pen into no-draw state Position, Pos Output position of turtle as X,Y list RGB color-number Output list of RGB color components of color-numbers Right, Rt angle Rotate turtle clockwise by angle SetAspect, SetScrunch Set aspect ratio of screen number SetBackground, SetBg Set screen to color of color-number color-number SetHeading, SetH angle Set heading angle of turtle SetPen Set pen to new state and color pen-state, color number SetPenColor, SetPC Set pen to color of color-number color-number SetPosition, SetPos (x,y)Move turtle to X,Y position SetRGB color-number Assign color-number to an RGB color [red green blue] SetX x Set X position of turtle SetY y Set Y position of turtle Shown?, ShownP Output TRUE if turtle pointer is showing ShowTurtle, ST Display turtle pointer Towards (x,y) Output heading angle needed to face X,Y position Window Give turtle unrestricted movement Wrap Make turtle movement wrap at edge of screen XPos, XCor Output current X position of turtle YPos, YCor Output current Y position of turtle FLOW OF CONTROL AND LOGIC And pred pred(....) Output TRUE if all inputs are TRUE Catch name run-list Trap error or result of Throw Continue, Co Resume execution after pause Error Output information about last error Go label Go to specified label If If pred is TRUE, execute 1st list; else, execute 2nd PRED RUN-LIST RUN-LIST IfFalse, IfF run-list If test was FALSE, execute list Label name Associates names with line in procs for use with G Not pred Output TRUE when FALSE, and FALSE when TRUE Or Output TRUE if any inputs are TRUE Output, Op object Return object as output from procedure Pause Suspend execution of current procedure Repeat Execute list number of times number run-list Run run-list Execute list Stop Return from procedure Test pred Save condition for later use in IfFalse and IfTrue Throw name Pass control back to matching Catch TopLevel Pass control back to top level of Logo Wait number Delay execution for number of 60th of a 2nd interval WORDS AND LISTS ASCII character-word Output ASCII numbers representing character ButFirst, BF object Output all but first element of object ButLast, BL object Output all but last element of object Char number Output ASCII character represented by number Count object Output numbers of element in object Empty?, EmptyP object Output TRUE if object has no element Equal?, EqualP Output TRUE if input objects are equal object object First object Output first element of object FirstPut, FPut Output first object combined to front of second object object GetProp, GProp Output specified property of name name properly Item number object Output element of object Last object Output last element of object LastPut, LPut Output first object combined to end of second object object List object object (....)Output List containing input objects as elements List?,ListP object Output TRUE if object is a list Member?,MemberP Output TRUE if first object is member of second PropList, PList name Output list of all properties associated with name PutProp,PProp For name, create property and value from name name property object RemProp name property Remove property and value from name Sentence, Se Output list containing words of input objects object object (...) Word word word (....) Output word composed ofthe input words combined Word?,WordP object Output TRUE if object is a word NUMBERS + (Add) Output sum of input numberds number number(...) - (Subtract) Output difference of input numbers number number(...) * (Multiply) Output product of input numbers number number(...) / (Divide) Output the quotient of the input numbers number number(...) < (Less than) Output TRUE if first numbers less than second number number number > (Greater than) Output TRUE if first number Greater than 2nd number number number = (Equal to) Output TRUE if objects are equal object object Abs number Output absolute value of number ArcTangent, ArcTan Output angle whose tangent is the input number number Cosine, Cos angle Output cosine of angle Difference Output difference of input numbers number number Integer number Output integer part of number Number?,NumberP object Output TRUE if input is a number Product number (....) Output product of input numbers Quotient number number Output quotient of input numbers Random number Output random number Remainder Output integer remainder of divide number number Rerandom Restart sequence of random numbers Round number Output number rounded to nearest integer Sine, Sin angle Output sine of angle SqRt number Output square root of number Sum number number (....) Output sum of input numbers Tangent, Tan angle Output tangent of angle READING, PRINTING, AND SENSING Button?, ButtonP number Output TRUE if left mouse button pressed Key?,KeyP Output TRUE if character ready to be read Mouse Output X,Y position of mouse Print, Pr object Print object, then start new line ReadChar, RC Output Character typed on keyboard ReadList, RL Output list from line typed on keyboard Show object Print object, then start new line Type Print object but do not start new line VARIABLES AND DEFINITIONS CopyDef name name Copy procedure definitive to new name Define name list Make definition list into procedure Define?, DefineP object Output TRUE if input object is a procedure End Terminate procedure definition Local name (....) Make name local to a procedure Make name object Make variable and give it value Name object name Attach value to variable name Name?,NameP object Output TRUE if object has a value Primitive?, PrimitiveP Output TRUE if input is name of a Logo primitive object End.