[comp.sys.atari.st.tech] Where is my cursor?

hohr@cernvax.cern.ch (roger hoh) (11/11/90)

 Hi netters,

 How can I know the coordinates of the text cursor?
 An other solution than the VDI call vq_curaddress()
 would realy help me.
 Thanks in advance.
 Roger

darekm@microsoft.UUCP (Darek MIHOCKA) (11/17/90)

In article <3063@cernvax.cern.ch> hohr@cernvax.cern.ch (roger hoh) writes:
>
> Hi netters,
>
> How can I know the coordinates of the text cursor?
> An other solution than the VDI call vq_curaddress()
> would realy help me.
> Thanks in advance.
> Roger

Try the line A variables CUR_X and CUR_Y. Offsets -28 and -26 (decimal) from
the line A base pointer. In assembler, you could do...

  dc.w $A000
  move.w -28(a0),cur_x
  move.w -26(a0),cur_y

- Darek