RE: [U2] [UV] up-arrow w/command stack

2006-09-05 Thread John Hester
 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf Of Kym Harvey
 Sent: Sunday, September 03, 2006 1:53 AM
 To: u2-users@listserver.u2ug.org
 Subject: RE: [U2] [UV] up-arrow w/command stack
 
 Hi,
 
 I tried the code listed below and whilst it changed the 
 command prompt to 
 be preceeded by the path, I had no success with the up-arrow 
 scroll-through-command-stack ... which is what I was really after.
 I am using Universe PE  Dynamic Connect. Any help would be greatly 
 appreciated.
 
 Kym

Check your terminal emulation.  We use both VT220 and ADDS, but the
up-arrow function only works with VT220.

-John
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] [UV] up-arrow w/command stack

2006-09-03 Thread Kym Harvey

Hi,

I tried the code listed below and whilst it changed the command prompt to 
be preceeded by the path, I had no success with the up-arrow 
scroll-through-command-stack ... which is what I was really after.
I am using Universe PE  Dynamic Connect. Any help would be greatly 
appreciated.


Kym



At 07:19 AM 31/08/2006, you wrote:

Cool, just tried it, what version of UV is this available from?

Or scroll forward or left and right to edit the command.

Ain't life great!

Roy

I've been using a variation of the code snippet Bob Woodward posted a
couple of weeks ago to change my UV prompt to display the current
account:

0001: ACCOUNT = FIELD(@PATH,'/',DCOUNT(@PATH,'/'))
0002: STELPROMPT = ACCOUNT:''
0003: STELPROMPT2= ACCOUNT:''
0004: STELPROMPT3= '+'
0005: ASSIGN 1 TO SYSTEM(4001)
0006: ASSIGN STELPROMPT TO SYSTEM(4002)

I just discovered that if you use this with VT220 emulation, your
up-arrow will let you scroll back through the command stack and execute
a previous command by pressing enter.  This discovery has made my day
:).
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/

---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


Re: [U2] [UV] up-arrow w/command stack

2006-08-31 Thread Symeon Breen
Is there an equivalent in udt ?

On 31/08/06, Womack, Adrian [EMAIL PROTECTED] wrote:

 Rather than writing a program and using SYSTEM(4001)  SYSTEM(4002), a
 slightly easier way is to use:

 COMMAND.EDITOR ON ALL acct name

 PI/Open had the COMMAND.EDITOR command years ago, and it was documented.
 The version in Universe is not documented and is most likely not
 supported.  When we switched from PI/Open a few years back, we
 determined that the Universe implementation of COMMAND.EDITOR was buggy
 (which is probably why it's undocumented). We just ended up writing our
 own emulator to do everything the PI/Open version did. (We also wrote
 our own version of EDFS without the bugs).

 AdrianW



 DISCLAIMER:
 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
 u2-users@listserver.u2ug.org
 To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] [UV] up-arrow w/command stack

2006-08-30 Thread Roy
Or scroll forward or left and right to edit the command.

Ain't life great!

Roy

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of John Hester
Sent: Wednesday, August 30, 2006 2:48 PM
To: u2-users@listserver.u2ug.org
Subject: [U2] [UV] up-arrow w/command stack

I've been using a variation of the code snippet Bob Woodward posted a
couple of weeks ago to change my UV prompt to display the current
account:

0001: ACCOUNT = FIELD(@PATH,'/',DCOUNT(@PATH,'/'))
0002: STELPROMPT = ACCOUNT:''
0003: STELPROMPT2= ACCOUNT:''
0004: STELPROMPT3= '+'
0005: ASSIGN 1 TO SYSTEM(4001)
0006: ASSIGN STELPROMPT TO SYSTEM(4002)

I just discovered that if you use this with VT220 emulation, your
up-arrow will let you scroll back through the command stack and execute
a previous command by pressing enter.  This discovery has made my day
:).

-John

John Hester
System  Network Administrator
Momentum Textiles, Inc.
(949) 833-8886 x623
http://www.memosamples.com
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] [UV] up-arrow w/command stack

2006-08-30 Thread phil walker
Cool, just tried it, what version of UV is this available from?

Or scroll forward or left and right to edit the command.

Ain't life great!

Roy

I've been using a variation of the code snippet Bob Woodward posted a
couple of weeks ago to change my UV prompt to display the current
account:

0001: ACCOUNT = FIELD(@PATH,'/',DCOUNT(@PATH,'/'))
0002: STELPROMPT = ACCOUNT:''
0003: STELPROMPT2= ACCOUNT:''
0004: STELPROMPT3= '+'
0005: ASSIGN 1 TO SYSTEM(4001)
0006: ASSIGN STELPROMPT TO SYSTEM(4002)

I just discovered that if you use this with VT220 emulation, your
up-arrow will let you scroll back through the command stack and execute
a previous command by pressing enter.  This discovery has made my day
:).
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] [UV] up-arrow w/command stack

2006-08-30 Thread Womack, Adrian
Rather than writing a program and using SYSTEM(4001)  SYSTEM(4002), a
slightly easier way is to use:

COMMAND.EDITOR ON ALL acct name

PI/Open had the COMMAND.EDITOR command years ago, and it was documented.
The version in Universe is not documented and is most likely not
supported.  When we switched from PI/Open a few years back, we
determined that the Universe implementation of COMMAND.EDITOR was buggy
(which is probably why it's undocumented). We just ended up writing our
own emulator to do everything the PI/Open version did. (We also wrote
our own version of EDFS without the bugs).

AdrianW



DISCLAIMER:
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
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] [UV] up-arrow w/command stack

2006-08-30 Thread Hona, David S
Yes, Prime INFORMATION had this function well over ten years ago.

COMMAND.EDITOR is not really fully supported and was ported by a
third-party for specific IBM clients to migrate from PI/Open.

The current version (10.1.x and above) is much better than the first
release (10.0.x), which had a habit of crashing and dropping you out of
UniVerse. IBM says not to use it 10.0.x!

NB: Don't use the ALL option if you have you own keyboard handling
routines for cursor or function keys. This command will take control of
those key sequence trappings before your application can get them.

In additional to command-line editing at the TCL prompt, the ALL options
enables the same functionality in BASIC programs too. It will allow:
A) input editing, by default,
B) can enable field-level editing of input variables in BASIC code, if
you use the INPUT @(col, row):variableName statement.

Line wrapping isn't handled too well either!

If you're using most of sort of VT-terminal emulations, usually your
keyboard gets set to application mode too. That is, the numeric pad no
longer outputs numerics, but escape key sequences. Some modification of
your UV terminfo definitions will be required to prevent this (or your
emulator could provide a solution too).

For those of you that still use/remember EMACS screen editor, that's the
default editing command set for the navigating too. Other keyboard
mappings supposedly are defined like in PI or PI/Open using
SYS.TERMINALS for the *.IKBIND keyboard definitions too. Sadly,
GET.TERM.TYPE and SET.TERM.TYPE don't work like they did in PI.

It's not perfect, but at it's free and may help some people. ;-)


Regards
David 


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Womack, Adrian
Sent: Thursday, August 31, 2006 10:54 AM
To: u2-users@listserver.u2ug.org
Subject: RE: [U2] [UV] up-arrow w/command stack

Rather than writing a program and using SYSTEM(4001)  SYSTEM(4002), a
slightly easier way is to use:

COMMAND.EDITOR ON ALL acct name

PI/Open had the COMMAND.EDITOR command years ago, and it was documented.
The version in Universe is not documented and is most likely not
supported.  When we switched from PI/Open a few years back, we
determined that the Universe implementation of COMMAND.EDITOR was buggy
(which is probably why it's undocumented). We just ended up writing our
own emulator to do everything the PI/Open version did. (We also wrote
our own version of EDFS without the bugs).

AdrianW
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/