[comp.binaries.apple2] Text Time CDA

aj0@sage.cc.purdue.edu (Eric Mulholland) (10/24/89)

    Text.Time is a cda for the //gs.  It will put the time hh:mm
in the upper right corner of the text screen.  The time will be
displayed in normal or inverse video depending on what's underneath.
This cda is really an update to my text.clock cda that I posted
a long while ago.  Things inproved in this version include: now
willing to share the 1 sec interupt with other programs, aware of
which display mode is currently active, follows more guidelines
(uses more toolbox calls), and a general rewrite of the code.
I'd love to hear your suggestions, comments, and any bug reports.

        Eric

---
FiLeStArTfIlEsTaRt
ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789()
ITEXT.TIME      AMQGAAAAAk74DIAAzeFAXFhNDoxsAMQGAYWC
AAgAAAAACDAAAAQAEogHAAQAAAQAAAAAAAAAAAAAAAAAAEAAAAAAAwCAgAAQgACI
gACIgACIgACIgACIgACICLPIAAQAlRlDgQHetlGVgoTZg42bAAwKAkDAgAAAgknY
pJXRNByYoxWdsx2bk5WYLtIIN06qIkEAN0oRrtKAru0i0jHC0DAA0DAAiCQFiExA
hDAArjm(BAQjA8VjA8vjA4ljAAwr4kMAGA9arhRqA4fjAUB9AAA9AoM9QMgoAAgI
AQf4AQPASQPADIKAAISE6HOANuOaOCAy0Dwx0DgE0DAAiCAuiAxAhDAAtmKKT0IA
0vKAiCgBiMyAhDAAwI8aAYA9jMgoAAgIwIe4AAAXy8KApAOwy84vvCOwAAQDQ7WS
0voIrCO4p06qAmCwtSB0wA8Hc0aBKADwArRrtqAMwA8GctaBAAAA0Djw0DAAiCwF
i8wAhDAALBj4gK6qAUijAciTOOAkgCgIa8qBQAOwf86SQAOwk8qKpEOBAmEgAcRj
5OgoNBwHfCwFgTAJOADiA8RuAcRTEQynIqc4AWOEh86opAOBAmEgAcRjfk7uX0EA
h8JAICOBAKPEf8KiQAOw096KpEuBAmEgAcRj5OgoNBwHfCwFgbAdOADiA8RuAcRT
GQ3nIqc4CWOEv()VgbQcJBYKX0Ig5uLANBwHfCwFgbQcyDBi)vjgAIQ9XEgtCUPA
BMLA1DwHvCgAAcRAAIQ9XEQmCUPABYJA1DwHMCgAAcRAAIQ9fEQiCUPABQIA1DwF
qBgAAcRAAIQ9fEwZCUPABMGA1DwFOBgAAcRAAIQ9fEwSCUPABEEA1DwF(AgAA8RA
AIQ9XEQOCUPABACA1DgIbAgAAcSAAIQ9lEAGCUPABgAA1DwFFAfAAcRAAMQ9NAQ1
CUPAAoKA1DwEnCgAA0KAAIQ94CAnBUPAAkJ81DAuTCgAAcMAAIQ9IDAkCUPAAMHA
1DgywBfAAoMAAIQ9(DgaCUPAAsFA1DgXYBgAA8PAAIQ9fBQVCUPAAIFA1HAA1AgA
A0AAAIQ9NAwLDUPAAMBA1DQOPAwAAsCAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AIFA
-- 
     ____
 Y_,_|[]|   Eric Mulholland
{|_|_|__|   aj0@sage.cc.purdue.edu
//oo--OO    ...!pur-ee!sage.cc!aj0

aj0@sage.cc.purdue.edu (Eric Mulholland) (02/09/90)

Here's another version of my Text Time CDA.  I have found out that
calls to the toolbox to read the clock takes to long for serial
communications above 2400 bps.  As a result, a few characters would
get lost every second.  I find this a bad situation!  Sp this
version of of my clock calls the toolbox at startup and counts time
on its own.  This allows people with fast modems to use my cda
and not curse me.  The only drawback to using this method is, if
an application disables interupts for longer than a second, the
clock will loose time.  Right now, the best way for you to get the
time back in sync with the system is to press control-apple-esc
and exit back out.  Text Time sees you going to the da menu and
desides it's a good time to call the toolbox and sync up.  If
anyone has ideas on how to keep the clock in sync and not interupt
>2400 bps communications, I'd love to hear them.

Text Time for those who are hearing about it for the first time
is a cda that will put the time (HH:MM:SS) in the upper right
corner of the text screen.  It knows the difference between 40
and 80 columns (not like others I've seen) and even handles mixed
text/graphics displays!  As an added bonus, Text Time will display
the time in either normal or inverse video to match the background!
Is it obvious that I'm not a fan of the desktop enviroment?

If you find any problems with this cda, send me email and tell me
about it.  I can't fix it if I don't know about it!  Suggestions
and comments about it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