Path: news1.icaen!news.uiowa.edu!chi-news.cic.net!cs.utexas.edu!howland.erols.net!newsxfer3.itd.umich.edu!portc01.blue.aol.com!audrey01.news.aol.com!not-for-mail From: mikew50@aol.com (MikeW50) Newsgroups: comp.sys.apple2.programmer Subject: Re: New Apple IIGS BASIC Date: 4 Feb 1997 03:42:26 GMT Organization: AOL http://www.aol.com Lines: 74 Message-ID: <19970204034200.WAA10985@ladder01.news.aol.com> References: <19970122020001.VAA09303@ladder01.news.aol.com> NNTP-Posting-Host: ladder01.news.aol.com X-Admin: news@aol.com Part 5 Input/Output ------------ CRSLIN (returns the cursor line) DATA data [ ',' data ]* GET identifier (read a key from the keyboard) HOME HTAB expression (set the cursor column) INPUT [ string expression ] ';' l-value [ ',' l-value ]* INVERSE MOUSETEXT NORMAL POS (returns cursor column) READ l-value [ ',' l-value ] RESTORE PRINT [ expression | SPC '(' expression ')' | TAB '(' expression ')' [ ',' ';' ] ]* PRINT USING line [ expression [ ',' expression ] ] SPEED= expression TEXT VTAB expression (set the cursor line) High-Res Graphics ----------------- All high-res graphics commands use the 320x200, 16 color Apple IIGS graphics screen. The will function on the 640x200 screen as well, but toolbox calls must be used to set up that screen. QuickDraw II graphics commands may be used without initializing the tools, setting up desktop programs, and so forth so long as HGR is used at least once before the first QuickDraw II call. HCOLOR= '(' expression ')' HGR HPLOT expression ',' expression [ TO expression ',' expression ] Utility Statements ------------------ FRE ( expression ) PEEK expression POKE expression ',' expression Some memory allocation and dispose routines, similar to Pascal's NEW/DISPOSE or C's malloc() free() will be provided. Disk I/O -------- CHDIR directory-name (change directory) CLOSE file DIR$ (return a list of files) EOF file KILL file-name (delete a file) INPUT #file [ ',' l-value ]+ MKDIR directory-name (create a directory) NAME file-name AS file-name (rename a file) OPEN file-name FOR [ OUTPUT | INPUT | APPEND ] AS file PRINT #file [ expression | SPC '(' expression ')' | TAB '(' expression ')' [ ',' ';' ] ]* PRINT #file USING line [ expression [ ',' expression ] ] RMDIR directory-name (delete a directory) SEEK #file ',' expression (set the read or write position) Some form of binary read and write for quickly reading and writing chunks of memory will also be provided.