Re: Good editor for under the 3270 console interface

2009-01-28 Thread Scott Rohling
When you say 'line editor' - that's exactly what you are forced to use..
for example sed.

You won't be able to use a 'fullscreen' editor unless you use an ascii
console..  vi/vim/nano are all fullscreen editors.

On Wed, Jan 28, 2009 at 11:57 AM, Tom Duerbusch
duerbus...@stlouiscity.comwrote:

 I know this topic has been discussed, but looking thru the archives, I keep
 finding similar topics, but not exactly the same

 Using the 3270 console interface...that is...

 logon Linux68
 when linux is finished coming up, if you hit enter, sometimes you get:

 login:

 Now, you are a line mode device (3215?) being emulated on a 3270 session.
 What is a good line mode editor?

 I thought VI or VIM would be, but you need an ESC key, plus when you vi a
 member, it streams the member out to the console.  And, of course, the
 cursor commands H, J, K and L don't really work in this world.

 I'm looking for options when I bring up the rescue system (sles 10.2).

 Thanks

 Tom Duerbusch
 THD Consulting

 --
 For LINUX-390 subscribe / signoff / archive access instructions,
 send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or
 visit
 http://www.marist.edu/htbin/wlvindex?LINUX-390


--
For LINUX-390 subscribe / signoff / archive access instructions,
send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390


Re: Good editor for under the 3270 console interface

2009-01-28 Thread Jack Woehr

Tom Duerbusch wrote:

What is a good line mode editor?


ex is the traditional Unix line mode editor, written for just such
environments.
It's the dark side of vi :)

man ex

--
Jack J. Woehr# I run for public office from time to time. It's like
http://www.well.com/~jax # working out at the gym, you sweat a lot, don't get
http://www.softwoehr.com # anywhere, and you fall asleep easily afterwards.

--
For LINUX-390 subscribe / signoff / archive access instructions,
send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390


Re: Good editor for under the 3270 console interface

2009-01-28 Thread Edmund R. MacKenty
On Wednesday 28 January 2009 14:01, Scott Rohling wrote:
When you say 'line editor' - that's exactly what you are forced to use..
for example sed.

You won't be able to use a 'fullscreen' editor unless you use an ascii
console..  vi/vim/nano are all fullscreen editors.

Actually, sed is a script editor.  The classic line editor is ed.
And vi is the visual editor.  Why it wasn't called ved, I don't know. :-)
- MacK.
-
Edmund R. MacKenty
Software Architect
Rocket Software
275 Grove Street · Newton, MA 02466-2272 · USA
Tel: +1.617.614.4321
Email: m...@rs.com
Web: www.rocketsoftware.com  

--
For LINUX-390 subscribe / signoff / archive access instructions,
send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390


Re: Good editor for under the 3270 console interface

2009-01-28 Thread Ayer, Paul W
I use sed and also use echo a lot too from the console.
 
Don't forget to use the  to add to file :) else you then need to echo
in every line again.

I'm going to try the ex now that would be great.

-Original Message-
From: Linux on 390 Port [mailto:linux-...@vm.marist.edu] On Behalf Of
Edmund R. MacKenty
Sent: Wednesday, January 28, 2009 2:09 PM
To: LINUX-390@VM.MARIST.EDU
Subject: Re: Good editor for under the 3270 console interface

On Wednesday 28 January 2009 14:01, Scott Rohling wrote:
When you say 'line editor' - that's exactly what you are forced to
use..
for example sed.

You won't be able to use a 'fullscreen' editor unless you use an ascii
console..  vi/vim/nano are all fullscreen editors.

Actually, sed is a script editor.  The classic line editor is ed.
And vi is the visual editor.  Why it wasn't called ved, I don't
know. :-)
- MacK.
-
Edmund R. MacKenty
Software Architect
Rocket Software
275 Grove Street * Newton, MA 02466-2272 * USA
Tel: +1.617.614.4321
Email: m...@rs.com
Web: www.rocketsoftware.com  

--
For LINUX-390 subscribe / signoff / archive access instructions,
send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or
visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

--
For LINUX-390 subscribe / signoff / archive access instructions,
send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390


Re: Good editor for under the 3270 console interface

2009-01-28 Thread Tom Duerbusch
man ex
gives me the man page for vi.
ex being an short way to start up vi and put it in ex mode.

And when I try ex, yep, that's vi G.

Tom Duerbusch
THD Consulting

 Jack Woehr j...@well.com 1/28/2009 12:58 PM 
Tom Duerbusch wrote:
 What is a good line mode editor?

ex is the traditional Unix line mode editor, written for just such
environments.
It's the dark side of vi :)

man ex

--
Jack J. Woehr# I run for public office from time to time. It's like
http://www.well.com/~jax # working out at the gym, you sweat a lot, don't get
http://www.softwoehr.com # anywhere, and you fall asleep easily afterwards.

--
For LINUX-390 subscribe / signoff / archive access instructions,
send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

--
For LINUX-390 subscribe / signoff / archive access instructions,
send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390


Re: Good editor for under the 3270 console interface

2009-01-28 Thread Dave Jones

Tom, for most 'simple' file editing that needs to be done from the 3270 console 
(i.e.,
before the network is available), I've found that the 'ed' editor works well. 
It's command
set is small and easy for me to remember.

Jack Woehr wrote:

Tom Duerbusch wrote:

What is a good line mode editor?


ex is the traditional Unix line mode editor, written for just such
environments.
It's the dark side of vi :)

man ex

--
Jack J. Woehr# I run for public office from time to time.
It's like
http://www.well.com/~jax # working out at the gym, you sweat a lot,
don't get
http://www.softwoehr.com # anywhere, and you fall asleep easily afterwards.

--
For LINUX-390 subscribe / signoff / archive access instructions,
send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or
visit
http://www.marist.edu/htbin/wlvindex?LINUX-390


--
DJ

V/Soft
  z/VM and mainframe Linux expertise, training,
  consulting, and software development
www.vsoft-software.com

--
For LINUX-390 subscribe / signoff / archive access instructions,
send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390


Re: Good editor for under the 3270 console interface

2009-01-28 Thread Tom Duerbusch
However, it is not on the rescue system.

Tom Duerbusch
THD Consulting

 Dave Jones d...@vsoft-software.com 1/28/2009 1:39 PM 
Tom, for most 'simple' file editing that needs to be done from the 3270 console 
(i.e.,
before the network is available), I've found that the 'ed' editor works well. 
It's command
set is small and easy for me to remember.

Jack Woehr wrote:
 Tom Duerbusch wrote:
 What is a good line mode editor?

 ex is the traditional Unix line mode editor, written for just such
 environments.
 It's the dark side of vi :)

 man ex

 --
 Jack J. Woehr# I run for public office from time to time.
 It's like
 http://www.well.com/~jax # working out at the gym, you sweat a lot,
 don't get
 http://www.softwoehr.com # anywhere, and you fall asleep easily afterwards.

 --
 For LINUX-390 subscribe / signoff / archive access instructions,
 send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or
 visit
 http://www.marist.edu/htbin/wlvindex?LINUX-390 

--
DJ

V/Soft
   z/VM and mainframe Linux expertise, training,
   consulting, and software development
www.vsoft-software.com 

--
For LINUX-390 subscribe / signoff / archive access instructions,
send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

--
For LINUX-390 subscribe / signoff / archive access instructions,
send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390


Re: Good editor for under the 3270 console interface

2009-01-28 Thread Adam Thornton

On Jan 28, 2009, at 2:03 PM, Tom Duerbusch wrote:


However, it is not on the rescue system.



Well, then, submit that to the vendor as a requirement.

After all, ed is the standard text editor.

http://www.gnu.org/fun/jokes/ed.msg.html

Adam

--
For LINUX-390 subscribe / signoff / archive access instructions,
send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390


Re: Good editor for under the 3270 console interface

2009-01-28 Thread Tom Duerbusch
Ok got around the problem of ed not being on the rescue system.

Use ed from the installed system (duh).

/mnt/bin/ed filename

So far, my testing using the rescue system, ed is the right tool.

Thanks

Tom Duerbusch
THD Consulting

 Dave Jones d...@vsoft-software.com 1/28/2009 1:39 PM 
Tom, for most 'simple' file editing that needs to be done from the 3270 console 
(i.e.,
before the network is available), I've found that the 'ed' editor works well. 
It's command
set is small and easy for me to remember.

Jack Woehr wrote:
 Tom Duerbusch wrote:
 What is a good line mode editor?

 ex is the traditional Unix line mode editor, written for just such
 environments.
 It's the dark side of vi :)

 man ex

 --
 Jack J. Woehr# I run for public office from time to time.
 It's like
 http://www.well.com/~jax # working out at the gym, you sweat a lot,
 don't get
 http://www.softwoehr.com # anywhere, and you fall asleep easily afterwards.

 --
 For LINUX-390 subscribe / signoff / archive access instructions,
 send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or
 visit
 http://www.marist.edu/htbin/wlvindex?LINUX-390 

--
DJ

V/Soft
   z/VM and mainframe Linux expertise, training,
   consulting, and software development
www.vsoft-software.com 

--
For LINUX-390 subscribe / signoff / archive access instructions,
send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

--
For LINUX-390 subscribe / signoff / archive access instructions,
send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390


Re: Good editor for under the 3270 console interface

2009-01-28 Thread Rick Troth
'vi' will come up clean on a (dialed) 3270 (or the console if you did a
#CP TERM CONMODE 3270  before bringing up Linux).  You will still have
pain w/r/t the Esc key.  The 3270 driver honors the cursor positioning
and text highlighting protocol used by a DEC VT220 (roughly ANSI X3.64).


With a (dialed) 3270, the PF keys will also work,
so one could easily write a full-screen text-mode ASCII application
that works equally well on either an ASCII terminal or on the 3270.
No one seems to get this.  UTS had (has!) the same capability.
This is nothing new!


-- R;   

--
For LINUX-390 subscribe / signoff / archive access instructions,
send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390


Re: Good editor for under the 3270 console interface

2009-01-28 Thread Scott Rohling
Wow - thanks Rick - I hadn't played with conmode 3270 or dialing..  thanks
for reminding us --

Scott

On Wed, Jan 28, 2009 at 3:26 PM, Rick Troth r...@casita.net wrote:

 'vi' will come up clean on a (dialed) 3270 (or the console if you did a
 #CP TERM CONMODE 3270  before bringing up Linux).  You will still have
 pain w/r/t the Esc key.  The 3270 driver honors the cursor positioning
 and text highlighting protocol used by a DEC VT220 (roughly ANSI X3.64).


 With a (dialed) 3270, the PF keys will also work,
 so one could easily write a full-screen text-mode ASCII application
 that works equally well on either an ASCII terminal or on the 3270.
 No one seems to get this.  UTS had (has!) the same capability.
 This is nothing new!


 -- R;   

 --
 For LINUX-390 subscribe / signoff / archive access instructions,
 send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or
 visit
 http://www.marist.edu/htbin/wlvindex?LINUX-390


--
For LINUX-390 subscribe / signoff / archive access instructions,
send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390


Re: Good editor for under the 3270 console interface

2009-01-28 Thread Rick Troth
On Wed, 28 Jan 2009, Tom Duerbusch wrote:
 ...
 Use ed from the installed system (duh).

 /mnt/bin/ed filename


nice   ...:-)


-- R;   

--
For LINUX-390 subscribe / signoff / archive access instructions,
send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390