[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: hard drive indicator lights in menu bar



>>If anybody wants a small project, all the INIT does is watch for GS/OS
>>Read and Write calls (0012/0013/2012/2013) and put up a little green dot
>>or a red dot to the left of the apple in the menubar.  Also, it puts up
>>an 'R' or a 'W' on the text screen.  The original pixels and text char
>>are replaced afterward.

That could really be hell. Your letters will get trashed all the time. Don't
forget that writing to the screen is writing. It could scroll your letters
off, overwrite them... The letters will always be displayed! (Somebody is
always reading or writing!).

You would have to check that the read/write is really happening on a block
device. Then, you would have to worry about GNO. (I think GNO is important!)
A process switch could occur while a little letter is displayed.
 ______________________________________________________________________
|~~~~~~~~~~~~~~~~|~~~~~~~~~~~~~~~~|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
| Phillip Vandry | Vandry@Cam.Org | Suicide (n.): What to do if Macs   |
|________________|________________|_______________take over the world__|
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~