Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!spool2.mu.edu!samsung!rex!ames!haven!adm!news From: ZCCBJSB%EB0UB011.BITNET@cunyvm.cuny.edu (Josep Sau B.) Newsgroups: comp.lang.pascal Subject: Patching a process in prompt Message-ID: <25493@adm.brl.mil> Date: 14 Jan 91 14:26:07 GMT Sender: news@adm.brl.mil Lines: 25 Has anyone any idea/code to achieve that every time system PROMPT appears a program gets called before? I have thought of doing some patch in COMMAND.COM just before the code that emits system PROMPT, or some resident program that intercepts it and executes the external program just before PROMPT is emitted. The program objective is to emit a different sentence before every system PROMPT. These sentences should be chosen randomly from a text file on disk by the program. The idea is taken from a program called FORTUNE, that is accessible in TRICKLE at 4TUNE.ZIP by L.Favaro. This program chooses a sentence and inserts it in system PROMPT, but just ONCE. Any pertinent answer very welcome. --Josep Sau B. ------------------------------------------------------------------ 'Every science needs the right words to be expressed the right way' Raimundus Lulius (Catalan philosopher) ------------------------------------------------------------------