Path: utzoo!utgpu!water!watmath!clyde!att-cb!att-ih!pacbell!ames!ll-xn!mit-eddie!uw-beaver!cornell!rochester!PT.CS.CMU.EDU!cadre!pitt!cisunx!rnmst1 From: rnmst1@cisunx.UUCP (Mingo) Newsgroups: comp.os.vms Subject: Setting prompt to time Keywords: prompt, time Message-ID: <8281@cisunx.UUCP> Date: 2 Apr 88 21:04:19 GMT Reply-To: rnmst1@cisunx.UUCP (Mingo) Organization: National Uvula Association Lines: 34 I am accustomed to having the current time as my prompt using the extended prompt facilities of tcsh, and was wondering if it was possible if I could have something similar set up on VMS. I realise that it would have to be done something like the following command procedure: $! A procedure to set the prompt to the current time. $! $ set noon $ esc[0,8] = 27 $ loop: $ prompt = esc + "[7m" + f$extract(0,5,f$fao("!%T",0)) + esc + "[m" $ read/prompt="''prompt' " sys$output line $ spawn/nolog 'line' $ goto loop The problems are 1) this procedure has to keep running all the time, and 2) it has to spawn processes all the time. That's because it couldn't do some things like MAIL or PHONE. Is there a better way to set a VMS prompt to the current time? Thanks ahead of time, Mingo -- | Mingo, | ...!pitt!cisunx!rnmst1 | I bet I | |University| rnmst1%unix.cis.pittsburgh.edu@vb.cc.cmu.edu | can eat more | | of | RNMST1%VMS.CIS.PITTSBURGH.EDU@VB.CC.CMU.EDU | doughnuts | |Pittsburgh| RNMST1@PITTVMS.BITNET | than you. |