[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference 7.286::atarist

Title:Atari ST, TT, & Falcon
Notice:Please read note 1.0 and its replies before posting!
Moderator:FUNYET::ANDERSON
Created:Mon Apr 04 1988
Last Modified:Tue May 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:1433
Total number of notes:10312

1055.0. "GFA Basic CURSOR Question" by SUBURB::JAMESH (Left Handed People are SUPER Natural) Mon Jan 21 1991 07:04

    I am using GFA Basic for a small specialised terminal emulator for my
    ham radio but cannot get the cursor to show. If I do not use "OPENW 1"
    then the cursor works OK using "~XBIOS(21,2)" and "PRINT CHR$(27)+"e""
    but as soon as I put the OPENW command it doen't show. Any ideas?
    Thanks.
    Howard
T.RTitleUserPersonal
Name
DateLines
1055.1Here is a way to do itBRSTR1::PIGEONAtlantis_WatcherWed Jan 30 1991 16:0125
    I know how to do this...
    
    The only way to get a cursor inside a window is to program a 
    sprite yourself

    I use the following procedures in my programs.
    
    
    
> PROCEDURE curson
  a%=WINDTAB+(window%-1)*12+2
  cux=(CRSCOL-1)*8+DPEEK(a%+2)+1
  cuy=(CRSLIN-1)*8+DPEEK(a%+4)+20
  SPRITE cursor$,cux,cuy
RETURN
> PROCEDURE cursof
  SPRITE cursor$
RETURN
> PROCEDURE cursdef
  cursor$=MKI$(0)+MKI$(0)+MKI$(-1)+MKI$(0)+MKI$(1)  !cursor attributes
  FOR i%=1 TO 8
    cursor$=cursor$+MKL$(&HFC00)
  NEXT i%
  cursor$=cursor$+MKD$(0)+MKD$(0)+MKD$(0)+MKD$(0)
RETURN
1055.2For Hi Res...SUBURB::JAMESHLeft Handed People are SUPER NaturalFri Feb 01 1991 07:456
    Thanks very much, thats great and really appreciated.
    For high res I had to change cuy to be:
    cuy=(CRSLIN-1)*16+DPEEK(a%+4)+45.
    I would never have gotten there on my own.
    Regards.
    ...Howard