home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gold Fish 1
/
GoldFishApril1994_CD1.img
/
d1xx
/
d146
/
blanker2
/
readme
< prev
next >
Wrap
Internet Message Format
|
1988-05-27
|
2KB
From: joe@vixen.uucp (Joe Hitchens)
Blanker2 -- by Joe Hitchens -- v1.27.88
A screen blanking program that turns the screen black after 90
seconds of keyboard and mouse inactivity. Adds a tiny event
handler to the input.handler event stream and watches the events
go by. If it doesn't see a mouse or keyboard event after 900
timer events (10 per second), it turns the screen black by turning
off DMA for rasters and the copper.
If run from the CLI, a message will be printed out saying how long
the blank time is set to.
If run from (my cool) icon, nothing will appear to happen, but 90
seconds later you will be able to tell if it installed itself ok.
This program cannot be removed once installed, so if you have a
problem with it, all I can say is "Stop using it".
I realize that it would be a lot nicer to have a true task running
in the background and message ports between the handler and the task
so the handler could be programmed and removed from the outside,
but, I opted to not do this because as it is, Blanker2 will take up
less than 256 bytes of ram, and doesn't require any more when it
attempts to blank the screen (via opening black screens, etc.).
It's tiny and it does the job. I think that may be worth alot to
most users.
This program is PUBLIC DOMAIN.
Do me a favor though, and leave my name on it so I can get a little
recognition.
Usage: blanker2 [n]
n = number of seconds of inactivity after which blanking
occurs. If n is not given, a default of 90 is used.
NOTE: blanker2 need not be 'run'. It will install an event
handler and leave it behind when exiting.
Also, the CLI window it may have been run from can be
closed after installation.
Exit codes
0 Normal exit, everything went fine.
1 CreatePort() failed.
2 CreateStdIO() failed.
3 OpenDevice() on "input.device" failed.
4 Memory Allocation for Interrupt structure failed.
5 Memory Allocation for Blanker structure failed.
6 Memory Allocation for event handler code space failed.
Please report any bugs you may find to me, so that I can try to
fix them.
j.h. joe@sally.utexas.edu