Macintosh

< Show List

Many additional MacOS specific functions and commands are only documented in the Chipmunk Basic quick reference file.

Graphics may require that the preferred memory requirements be increased using the Finder "Get Info" dialog box.


Macintosh Commands


gotoxy VAL, VAL

Set the horizontal and vertical location of the text output cursor. (0,0) is the upper left corner.


moveto VAL, VAL

Sets the (x,y) location of the graphics pen.


lineto VAL, VAL

Draws a line from the current pen location to location (x,y) in the graphics window.


window x, y, char_cols, char_lines

Change the text console window position and size.


morse STRINGVAL { , VAL, VAL, VAL, VAL }

Plays morse code through the speaker. The parame- ters are: dot-speed-wpm, volume{0..100}, word-speed-wpm, frequency (in Hz or cps).


sound VAL, VAL, VAL

The parameters are: frequency (in Hz), seconds duration, volume (0..00).


say STRINGVAL

Speaks STRINGVAL if the Speech Manager Extension is resident. Try "say a$,200,46,1" for faster speech.


open SFGetFile for input as #FNUM

open SFPutFile for output as #FNUM

Puts up a standard file dialog for the file name.


files { STRINGVAL }

Displays a listing of files in the named or current directory.


Macintosh functions


fre

Returns the amount of memory left for program use.


date$

Returns a string corresponding to the current date. Works in the Mac OS X command line version as well.


time$

Returns a string corresponding to the current time. Works in the Mac OS X command line version as well.


pos(VAL)

Returns the horizontal position of the text cursor. If VAL is negative returns the vertical position.


errorstatus$

Also returns the full path name of the program and files opened by SFGetFile and SFPutFile. (Only under System 7 and also only if the name fits in a string variable.) See standard errorstatus$.