Atari ST series Technical Reference Manual page 39

Hide thumbs Also See for ST series:
Table of Contents

Advertisement

XBIOS Device and System Functions
Character Device Configuration Functions
The XBIOS character functions are more device-specific than
those in the BIOS. One group of functions enables you to set
the configuration of specific devices. For example, there are
two functions that affect the performance of the console de­
vice. They allow you to
• Control the screen display's cursor
• Configure the keyboard portion of the console device
First, the function that allows you to control the screen
display's cursor:
int rate, mode, newrate;
rate = Cursconf(mode, newrate);
where mode is a flag that indicates which cursor function you
wish to change. Possible choices are:
Mode
Number
0
Turn cursor off
1
Turn cursor on
2
Turn cursor blink on
3
Turn cursor blink off
4
Change rate of cursor blink to newrate
5
Read cursor blink rate
The first four settings should be self-explanatory.
They're used to either show or hide the cursor and to change
it from a blinking block to a solid block. In these modes, the
value of newrate is unimportant, and this parameter need not
be passed.
When the cursor is blinking, you can also change the
rate at which it blinks by the value you pass in newrate. This
is a number from 0-255, that determines the time for each
complete blink cycle (cursor on once, cursor off once) accord­
ing to the following formula:
Duration of a single blink (in seconds) = 2 * rate / cycles
Cycles is a value that depends on the monitor and the video
system used. Its value is 70 for the monochrome monitor, 60
for the U.S. color monitor, and 50 for the European color
monitor. The default rate setting is 30. For the monochrome
monitor, this makes the cursor blink every (2 * 30 / 70) sec­
onds, or every .86 seconds. For the U.S. color monitor, the
Cursor Setting
31

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents