The STAYRES or TSR packages available in the public domain (or shareware)
are examples of Turbo Pascal programs which terminate and stay resident.
You can probably find them on local bboards. Simtel-20 has them in
PD:<MSDOS.SYSTEM-UTIL>, available by anonymous FTP for those on the
ARPANET.
--Pete
-------