[comp.os.vms] Setting your prompt inside a program.

hydrovax@nmtsun.nmt.edu (M. Warner Losh) (07/22/88)

Around Christmas I asked how to set your prompt from inside a program
without needing the CMKRNL privilege.  The answer is to use
LIB$DO_COMMAND('$ SET PROMPT="something"') as the last command in your
program.  Since you are only going to "see" the last prompt set anyway,
this technique works well.  It is reasonably fast, because DCL just has 
to call one of it's internal routines.  This technique should work on 
any version of VMS that has the LIB$DO_COMMAND system call (4.x, 5.0,
earlier you couldn't set the prompt at all.)

Warner
-- 
M. Warner Losh           My spelling and views are my own, my employer
                         dosen't know I can speak, so how can I speak for them?
bitnet: warner@hydrovax.nmt.csnet csnet:warner@hydrovax.nmt.edu
arpa:   warner%hydrovax.nmt@relay.cs.net uucp: uunet!nmtsun!warner%hydrovax