RE: [UV] Change prompt?

2004-03-09 Thread Adrian . Womack
I could share the code - but it is specifically for the TeemTalk emulator.

The program simply prints an escape sequence which causes TeemTalk to run a
script. The escape sequence is followed by an argument which contains the 
required title for the window (in this case @WHO). The Teemtalk script then 
sets the window title to the value of the passed argument.

AdrianW

-Original Message-
From: Karl L Pearson [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 9 March 2004 14:48
To: U2 Users Discussion List
Subject: RE: [UV] Change prompt?


Could you share the source of the small program?

I use putty, a freeware download, which gives very tight control over it's 
size, appearance, etc. It supports transparent printing, too, if your app 
has hooks ( @(-23) for auxon and @(-24) for auxoff) to print a screen.

Karl

On Tue, 9 Mar 2004 [EMAIL PROTECTED] wrote:

 I also change the title of the terminal emulator window (via a small
program
 run from the LOGIN paragraph) - a side benefit being you get the account
 name on the task bar button as well, which makes finding the correct
session
 a breeze.
Disclaimer.  This e-mail is private and confidential. If you are not the
intended recipient, please advise us by return e-mail immediately, and
delete the e-mail and any attachments without using or disclosing the
contents in any way. The views expressed in this e-mail are those of the
author, and do not represent those of this company unless this is clearly
indicated. You should scan this e-mail and any attachments for viruses. This
company accepts no liability for any direct or indirect damage or loss
resulting from the use of any attachments to this e-mail.
-- 
u2-users mailing list
[EMAIL PROTECTED]
http://www.oliver.com/mailman/listinfo/u2-users


Re: [UV] Change prompt?

2004-03-09 Thread stuart . astley
This basic code works in Uv 10.0.8:

ASSIGN 1 TO SYSTEM(4001)   
ASSIGN @WHO TO SYSTEM(4002)

Stuart Astley
GeoPost UK IT

- Original Message -
From: Barry Brevik [EMAIL PROTECTED]
Date: Monday, March 8, 2004 7:42 pm
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 
 couldchange 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
 



**
Information contained in this email or any attachment may be of a confidential nature 
which should not be disclosed to, copied or used by anyone other than the addressee. 
If you receive this email in error, please delete from your computer.
Virus Warning: Although this email and any attachments have been virus checked, it 
is the responsibility of the recipient to ensure that they are virus free. 
No responsibility is accepted by Geopost UK Limited for any loss or damage arising 
in any way from their receipt, opening or use.
We do not authorise the making of contracts via email or the Internet. Opinions
expressed in this email or any attachment may not necessarily represent the views of
Geopost UK Limited.
All emails received and sent by Geopost UK Limited may be monitored to protect 
Geopost UK's business interests.
**

-- 
u2-users mailing list
[EMAIL PROTECTED]
http://www.oliver.com/mailman/listinfo/u2-users


RE: [UV] Change prompt?

2004-03-09 Thread Barry Brevik
Because we use wIntegrate, I settled (at least for now) on a BASIC program
in each account's LOGIN PA (see program below) which changes the window
title.

The only drawback is when you LOGTO another account that does not have the
magic LOGIN paragraph, the window title does not change. If only you could
set an exit account event.

* Sets the text of the wIntegrate title bar to show the current ACCOUNT.
RUN.SCRIPT = 0
IF TRANS('VOC','WIN.HSCRIPT',@ID,'X') THEN RUN.SCRIPT += 1 ELSE PRINT
'HDR2ACCT: this account lacks WIN.HSCRIPT'
IF TRANS('VOC','WIN.SETLIST',@ID,'X') THEN RUN.SCRIPT += 1 ELSE PRINT
'HDR2ACCT: this account lacks WIN.SETLIST'
IF TRANS('VOC','WIN.COMSUB',@ID,'X') THEN RUN.SCRIPT += 1 ELSE PRINT
'HDR2ACCT: this account lacks WIN.COMSUB'
IF RUN.SCRIPT EQ 3 THEN
  XSCRIPT = ''
  XSCRIPT-1 = 'configure'
  XSCRIPT-1 = 'store Title = ':UPCASE(@WHO):' / ':DOWNCASE(@LOGNAME):'  -
@ is |'
  XSCRIPT-1 = 'update'
  CALL WIN.HSCRIPT(XSCRIPT)
END
STOP
END
-- 
u2-users mailing list
[EMAIL PROTECTED]
http://www.oliver.com/mailman/listinfo/u2-users


Re: [UV] Change prompt?

2004-03-09 Thread Clifton Oliver
It is already there at release 10.

--

Regards,

Clif

~~~
W. Clifton Oliver, CCP
CLIFTON OLIVER  ASSOCIATES
Tel: +1 619 460 5678Web: www.oliver.com
~~~
Ray Wurlod wrote:

Or you could hassle IBM to add PI/open's COMMAND.EDITOR to UniVerse.
--
u2-users mailing list
[EMAIL PROTECTED]
http://www.oliver.com/mailman/listinfo/u2-users


RE: [UV] Change prompt?

2004-03-09 Thread Adrian . Womack
Ray Wurlod wrote:
Or you could hassle IBM to add PI/open's COMMAND.EDITOR to UniVerse.

Clifton Oliver wrote:
It is already there at release 10.

Yes, but full of bugs and basically unusable.

AdrianW
Disclaimer.  This e-mail is private and confidential. If you are not the
intended recipient, please advise us by return e-mail immediately, and
delete the e-mail and any attachments without using or disclosing the
contents in any way. The views expressed in this e-mail are those of the
author, and do not represent those of this company unless this is clearly
indicated. You should scan this e-mail and any attachments for viruses. This
company accepts no liability for any direct or indirect damage or loss
resulting from the use of any attachments to this e-mail.
-- 
u2-users mailing list
[EMAIL PROTECTED]
http://www.oliver.com/mailman/listinfo/u2-users


Re: [UV] Change prompt?

2004-03-08 Thread Ray Wurlod
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
 

-- 
u2-users mailing list
[EMAIL PROTECTED]
http://www.oliver.com/mailman/listinfo/u2-users


Re: [UV] Change prompt?

2004-03-08 Thread John Hester
Barry Brevik wrote:

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?
I had the same concern a few years ago.  We have a development account 
which is a verbatim copy of yesterday's production environment so it's 
pretty easy to forget where you are.  I ended up writing a basic program 
that replaces the UV prompt with the currect directory name.  I also 
added code to duplicate all the command stack functionality (.X, .C, .D) 
because I use those commands frequently.  I'd be happy to share the 
code.  Email me off-list if you're interested.

-John

--
u2-users mailing list
[EMAIL PROTECTED]
http://www.oliver.com/mailman/listinfo/u2-users


RE: [UV] Change prompt?

2004-03-08 Thread Glenn Herbert
Yep.  Sure do.  You could fix that with:

0001 PQ
0002 M
0003 IF #S Oany_text:+
0004 IF S Oany_text+
0005 IP #1
0006 P
0007 GO B
At 03:16 PM 03/08/2004, you wrote:
Seems however, you lose your marker that a select list is active.

George

-Original Message-
From: Glenn Herbert [mailto:[EMAIL PROTECTED]
Sent: Monday, March 08, 2004 3:10 PM
To: U2 Users Discussion List
Subject: Re: [UV] Change prompt?


You could also use a very handy and small bit of proc code
hooked directly
into your LOGIN entry or called from there:

001 PQ (or PQN)
002 M
003 Oyour_text_here+
004 IP #1
005 P
006 GO B

This code (M)arks an entry point, outputs whatever text you want while
inhibiting any line feed, and waits for the user input, which
is stored
into the output buffer (IP #1) then executed (P), after which
it loops back
to the (M)ark point.

At 02:48 PM 03/08/2004, you wrote:
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
 

--
u2-users mailing list
[EMAIL PROTECTED]
http://www.oliver.com/mailman/listinfo/u2-users

--
u2-users mailing list
[EMAIL PROTECTED]
http://www.oliver.com/mailman/listinfo/u2-users

--
u2-users mailing list
[EMAIL PROTECTED]
http://www.oliver.com/mailman/listinfo/u2-users
--
u2-users mailing list
[EMAIL PROTECTED]
http://www.oliver.com/mailman/listinfo/u2-users


RE: [UV] Change prompt?

2004-03-08 Thread djordan
Another method if you are using a terminal emulator is to use the login
paragrah to change the title of the session at the top of the screen.  I
also try to change the screen color, ie Red background is the live
account which you should also be able to set through the login paragraph

Regards

David Jordan
Managing Consultant
[EMAIL PROTECTED]

Dacono Holdings Pty Ltd
Business  Technology Consulting
PO Box 909
Lane Cove 
NSW 2066
Australia
Ph 61 2 9418 8329
Fax 61 2 9427 2371
www.dacono.com.au 



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Barry Brevik
Sent: Tuesday, 9 March 2004 6:42 AM
To: U2 list (E-mail)
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

-- 
u2-users mailing list
[EMAIL PROTECTED]
http://www.oliver.com/mailman/listinfo/u2-users


RE: [UV] Change prompt?

2004-03-08 Thread Hona, David S

Just a minor correction. Provided you have set your terminal type to a
matching entry in the SYS.TERMINALS file, the correct keybindings will be
mapped. For example, if your terminal type is set to vt220, this load the
VT220.IKBIND from SYS.TERMINALS. This is the only one I have tested.

Regards
David



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Hona, David S
Sent: Tuesday, March 09, 2004 10:19 AM
To: 'U2 Users Discussion List'
Subject: RE: [UV] Change prompt?



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

-- 
u2-users mailing list
[EMAIL PROTECTED]
http://www.oliver.com/mailman/listinfo/u2-users


RE: [UV] Change prompt?

2004-03-08 Thread Karl L Pearson
Could you share the source of the small program?

I use putty, a freeware download, which gives very tight control over it's 
size, appearance, etc. It supports transparent printing, too, if your app 
has hooks ( @(-23) for auxon and @(-24) for auxoff) to print a screen.

Karl

On Tue, 9 Mar 2004 [EMAIL PROTECTED] wrote:

 I also change the title of the terminal emulator window (via a small program
 run from the LOGIN paragraph) - a side benefit being you get the account
 name on the task bar button as well, which makes finding the correct session
 a breeze.
 
 -Original Message-
 From: djordan [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, 9 March 2004 05:44
 To: 'U2 Users Discussion List'
 Subject: RE: [UV] Change prompt?
 
 
 Another method if you are using a terminal emulator is to use the login
 paragrah to change the title of the session at the top of the screen.  I
 also try to change the screen color, ie Red background is the live
 account which you should also be able to set through the login paragraph
 
 Regards
 
 David Jordan
 Managing Consultant
 [EMAIL PROTECTED]
 
 Dacono Holdings Pty Ltd
 Business  Technology Consulting
 PO Box 909
 Lane Cove 
 NSW 2066
 Australia
 Ph 61 2 9418 8329
 Fax 61 2 9427 2371
 www.dacono.com.au 
 
 
 
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 On Behalf Of Barry Brevik
 Sent: Tuesday, 9 March 2004 6:42 AM
 To: U2 list (E-mail)
 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?
 

-- 
Karl L. Pearson
Director of IT,
ATS Industrial Supply
Direct: 801-978-4429
Toll-free: 888-972-3182 x29
Fax: 801-972-3888
http://www.atsindustrial.com
[EMAIL PROTECTED]

-- 
u2-users mailing list
[EMAIL PROTECTED]
http://www.oliver.com/mailman/listinfo/u2-users