Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!evax!cs4344af From: cs4344af@evax.arl.utexas.edu (Fuzzy Fox) Newsgroups: comp.sys.cbm Subject: Re: C128 Programming question Message-ID: <1990Nov16.221620.10964@evax.arl.utexas.edu> Date: 16 Nov 90 22:16:20 GMT References: <1990Nov13.043708.23063@DMI.USherb.CA> <1990Nov13.162259.981@vax5.cit.cornell.edu> <4125.27440883@cc.nu.oz.au> Organization: Computer Science Engineering Univ. of Texas at Arlington Lines: 29 In article <4125.27440883@cc.nu.oz.au> c0037544@cc.nu.oz.au (David Williams) writes: >The escape character (ascii 27) followed by any of the cursor escape sequences >(u,s,e,f) will turn the cursor on in a program on the 80 column screen. As the >cursor may only be a block on the 40 column screen, the u and s sequences are >invalid, but the e and f sequences will still work. Just send these to the >Kernel routine at $ffd2 at the start of the program, and there you are! There are some ROM routines in the Kernel devoted to cursor control on the C128. Compute!'s "Mapping the Commodore 128" lists these routines: CURSORON $CD6F CURSOROFF $CD9F These routines will turn the cursor on or off, accordingly. They will work no matter which screen (40 or 80) is active. When using these routines, you should turn the cursor on, wait for a keypress, then turn the cursor off before printing any characters. For example: GETCHAR: JSR CURSORON LOOP: JSR GETCHAR BEQ LOOP PHA JSR CURSOROFF PLA RTS Happy computing! Fuzzy Fox