In UV 10.0.x and above (IIRC), the COMMAND.EDITOR was ported from Prime
INFORMATION/PIOpen (albeit with more than a few bugs!). This command allows
you to change the TCL prompt with a character string of your choice...

>COMMAND.EDITOR ON ALL "MyAccount> "
MyAccount>

COMMAND.EDITOR Allows you to use function keys (like cursor keys) to edit
not your command-line (TCL), but also in BASIC programs (ie. at INPUT
statements/prompts).

It is also good for new users who keep press all those functions keys that
do nothing except insert escape sequences everywhere! :-)

Unfortunately, it doesn't seem to have implement all the nice features of
the PI version and the keyboard mapping only seems to support "fundamental
mode" (EMACS-style control-keys). Oh, well - you can't have everything!

Regards
David



-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Ray Wurlod
Sent: Tuesday, March 09, 2004 6:48 AM
To: U2 Users Discussion List
Subject: Re: [UV] Change prompt?


If it helps, I can assert with certainty that there is nothing in UniVerse
that allows this. It's easy enough to roll your own; a small BASIC program
into which you trap your users. LOOP
   CRT myprompt
   INPUT command
WHILE command <> 'QUIT'
   GOSUB processcommand
REPEAT
PERFORM "QUIT"
----- Original Message -----
From: Barry Brevik <[EMAIL PROTECTED]>
Date: Mon, 8 Mar 2004 11:42:22 -0800 
To: "U2 list (E-mail)" <[EMAIL PROTECTED]>
Subject: [UV] Change prompt?

> OK, I know about UVPROMPT, but it will only let you specify a single 
> character.
> 
> I work in numerous accounts, and it would be good if the LOGIN PA 
> could change the prompt to have multiple characters so I can see which 
> account I'm in. Believe me, all it takes is one mistake to leave a 
> lasting impression.
> 
> Anyone know of a way to use multiple chars for the prompt without 
> writing my own shell?
>
-- 
u2-users mailing list
[EMAIL PROTECTED]
http://www.oliver.com/mailman/listinfo/u2-users

Reply via email to