www.riscos.com Technical Support: |
|
The ScreenBlank module provides the facilities needed to support screen blanking. There are two service calls so that applications can tell when the screen is blanked and when it is restored.
There is also a * Command with which you can override the default time of inactivity before the screen blanks. The default time itself is set using the Configure application; there is no defined programmers' interface to do so.
The ScreenBlank module also provides a SWI for internal use by the Portable module; you must not use it in your own code.
This module is not available in RISC OS 2.
R1 = &7A (reason code)
All registers must be preserved.
This service call is issued by the screen blanker, after the screen has been blanked This service call should not be claimed.
R0 = 0, or flags passed in R4 to ScreenBlanker_Control 2
R1 = &7B (reason code)
All registers must be preserved.
This service call is issued by the screen blanker, after the screen has been restored. This service call should not be claimed.
R0 is normally zero. If however the call results from a flash cycle, then it will be set to the value of R4 that was passed to ScreenBlanker_Control 2.
This SWI is for internal use by the Portable module. You must not use it in your own code.
*BlankTime [W|O] [time]
W - writing to the screen finishes screen blanking
O - writing to the screen does not finish screen blanking
time - time of inactivity before the screen blanks
*BlankTime sets the time in seconds before the screen blanks. If, during this time, there is no activity (ie no keyboard or mouse input is received, and - with the W option - there is no writing to the screen) the screen then blanks. This saves 'burn in' on the phosphor of your monitor, which occurs when the monitor consistently displays a particular image, such as the desktop.
Screen blanking finishes as soon as there is activity (see above).
If no option is specified, O is assumed.
The blank time is only retained until the next reset.
*BlankTime W 600 - blanks the screen if neither input nor output occur for 10 minutes
None
None