Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Terminal type in the environment variable, for PASE

522 views
Skip to first unread message

Soterro

unread,
May 15, 2003, 7:51:02 AM5/15/03
to
Hello,

I'm trying to use basic unix programs like 'vi' and 'more' on this
AS400 V5R1.
Don't blame me for trying, I'm more familiar with the Unix world and
if 'vi' is installed there, I thought it should work somehow :)
So when I log into the machine, from the terminal, telnet or from
client access emulator, 'vi' exits complaining it does not have a
terminal type.
The message is in german, but the idea is it thinks it has a terminal
called 'unknown'.

#
vi
ex: 0602-108 unknown wird als Terminal-Typ nicht erkannt.

OK, I looked around for the terminfo database, found it, there were
only aixterm and xterm. So I did the following:

#
TERM=aixterm
#
vi
ex: 0602-108 unknown wird als Terminal-Typ nicht erkannt.

As you see, absolutely nothing changed. Same if using xterm, or even
vt200 which was not in terminfo. I would have expected to see
'0602-108 vt200 wird...'.
Which is the environment variable which holds the terminal type? I
tried both TERM and TERMINAL_TYPE (later one found in qsh
documentation), but nothing at all. They are in the environment, 'set'
or 'echo $TERM' shows them, but 'vi' cannot find anything.

I tried both the 'ksh' (by starting with 'call qp2term' I get the
/QOpenSys/usr/bin/sh shell) and 'qsh' (by starting with STRQSH), same
thing.

Thank you for any hints,
S

Etienne Richards

unread,
May 15, 2003, 9:21:05 PM5/15/03
to
Soterro,

You can do this (kind of).

1. Install PASE (Option 33)
2. Install VNC http://www-919.ibm.com/developer/factory/tools/vnc.html (it
will work after trying enough)
3. Start the VNC server
4. Start VNC (X-Windows like) client
5. Set display in PASE session (QP2TERM)
6. Start X-Windows application in PASE session
7. Use mouse etc. on your workstation.

This should be enough to get you started.

Etienne
"Soterro" <send_lotsa...@yahoo.com> wrote in message
news:1a63f162.03051...@posting.google.com...

Soterro

unread,
May 16, 2003, 6:17:47 AM5/16/03
to
"Etienne Richards" <etie...@comcast.net> wrote in message news:<3ec43916$1...@corp-news.newsgroups.com>...

> 1. Install PASE (Option 33)
> 2. Install VNC http://www-919.ibm.com/developer/factory/tools/vnc.html (it
> will work after trying enough)
> 3. Start the VNC server
> 4. Start VNC (X-Windows like) client
> 5. Set display in PASE session (QP2TERM)
> 6. Start X-Windows application in PASE session
> 7. Use mouse etc. on your workstation.

Good suggestion, I didn't think about VNC as I have never seen it.
However, for the small tasks I have to do, I'm not very eager to get
into installing lots of things. By the way, vi is not a X-Windows
application anyway, that's why I said I need to set the terminal (not
the display). Installing VNC would not get me any further, vi will
still refuse to start in its own terminal window (this time I should
need the setting TERM=xterm). So there's no need for mouse anyway.
I just needed to get 'vi' running, because I need editing, vi is
there, I've read about people using it, so there ought to be a way to
set that terminal :)

Thank you very much,
S

George Timms

unread,
May 16, 2003, 1:24:55 PM5/16/03
to
"Soterro" <send_lotsa...@yahoo.com> wrote in message
news:1a63f162.03051...@posting.google.com...

I'm afraid it won't do you any good to set terminal type if you are using a
5250 display interface (QP2TERM, QSH, etc.) because vi requires tty (or pty)
support and the combination of 5250 hardware limitations and system software
doesn't provide tty support.

You need to use VNC or some other X-Windows server, in combination with a
pty program such as xterm or aixterm (both shipped with OS/400 PASE in V5R2)
to run vi or any other utility that requires tty support.

P.S. FYI, CL command EDTF provides a stream file editor that works with
5250 devices (although it's a far cry from the power of vi)

George Timms
IBM Rochester

0 new messages