Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!usc!apple!uokmax!munnari.oz.au!metro!nuts!cc.nu.oz.au!c0037544 From: c0037544@cc.nu.oz.au (David Williams) Newsgroups: comp.sys.cbm Subject: Re: C128 Programming question Message-ID: <4125.27440883@cc.nu.oz.au> Date: 16 Nov 90 05:40:50 GMT References: <1990Nov13.043708.23063@DMI.USherb.CA> <1990Nov13.162259.981@vax5.cit.cornell.edu> Distribution: na,comp Organization: University of Newcastle Lines: 22 > I have a technical question here. I'm writing an assembler input routine > which needs to work on either the 40 or 80 column screens. To filter out > unwanted characters, I use the GETIN Kernal subroutine ($FFE4). As you > probably know, this routine dos not provide any kind of cursor. It's easy > to turn the cursor on in 80 columns using the ESCAPE F sequence. But I'm > clueless as to how to turn on the 40 column cursor... > Anybody has a suggestion? > Thanks in advance! > Eric T 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! ------------------------------------------------------------------------------- | David Williams | University of Newcastle | | c0037544@cc.nu.oz.au | Department of Computer Science (Undergrad) | |-----------------------------------------------------------------------------| | "The decision of Random Numbers is too important to be left to chance !" | -------------------------------------------------------------------------------