[comp.sys.atari.st] cursor question

IGW@PSUVMB.BITNET (09/14/87)

hi
    just one question:
     
      How do you make the blinking block cursor into a nice
       no-blinking underline?
     
                              thanks
                              jim
                              igw@psuvmb
     

sc_dra@ux63.bath.ac.uk (Dave Allum) (09/16/87)

The cursor may be changed by calling the xbios routine Cursconf,

   int Cursconf(function, rate) int function, rate ;

Values for function are,

   0  disable cursor
   1  enable cursor
   2  flash cursor
   3  steady cursor
   4  set flash rate
   5  get flash rate

The rate parameter is only used for function 4 and is the flash frequency
required.  Cursconf returns the current flash rate if function is set to 5.

For assembler programmers Cursconf is xbios (trap 14) function 21.

apratt@atari.UUCP (09/16/87)

in article <20109IGW@PSUVMB>, IGW@PSUVMB.BITNET says:
>
>       How do you make the blinking block cursor into a nice
>        no-blinking underline?

You don't.  You can make the blinking block into a non-blinking block,
or the blinking block into nothing at all, but you can't make it an
underline.  Sorry.  The only solution is to disable the cursor
and write your own cursor handler (not a pretty thing).

You can make the cursor go away entirely by printing the sequence 'ESC-f'
and it will appear again if you print 'ESC-e'.  You can make the cursor
steady (non-blinking) with the XBIOS call Cursconf() -- see your manual
for details.

/----------------------------------------------\
| Opinions expressed above do not necessarily  |  -- Allan Pratt, Atari Corp.
| reflect those of Atari Corp. or anyone else. |     ...lll-lcc!atari!apratt
\----------------------------------------------/