On Thu, 27 Dec 2007 04:27:06 -0500
Post by Charles LavinHi --
I cannot change the TERM value on users' profiles because that would screw
up their logons at the office or when using other telnet clients. The system
as set up now has no trouble adjusting the TERM value depending on the
emulation in use by the telnet client -- except when that telnet client is
Microsoft's.
As it is, logging in as an ANSI device represents a loss of functionality,
but one that is acceptable for the purposes for which I want to be able to
use the MS telnet client. Using the ANSI emulation on a MS telnet client
costs us wide screen displays, function key control, slave printing and
other features of the IBM 3151 upon which the software is built.
Use PuTTY. PuTTY fixes Windows. You can download binary on desktop
without administrator rights and just run it. It does not attempt to
touch Windows registry. PuTTY will set TERM=xterm which is pretty close
to what AIX thinks an xterm is. We use lots of F* or AIDx keys on
PuTTY.
The ADDS 3153 with Ethernet option is one thin client we use. The Sun
Ray xterm-sun is the other thin client we use.
Post by Charles LavinAnd if I do manually change the TERM value from inside AIX, then I get the
basic functionality I need from the telnet program.
But the users are not at liberty to make that change. Their profiles take
them straight to the application menu, which looks like crap when rendered
for a vt100.
I can replicate this problem from several Windows XP and Windows Vista PCs
here, to half a dozen AIX and SCO boxes of various OS levels.
Additionally, I had a colleague at another firm replicate this problem using
Windows XP and Windows 2000 clients onto several other AIX boxes. He also
informed me that this problem has bitten him in the past as well.
If this telnet client does indeed support the four emulations it claims to,
then the only thing I can think of is that it is identifying itself to AIX
as something AIX doesn't understand. But I still need to figure out what
that could be ...
A Microsoft support rep skirted the question of why the four emulations all
wind up looking like a vt100 to a Unix host by telling me to change the TERM
value on the host.
That is because all Microsoft TELNET.EXE can do is broken vt100.
It also does not do the TELNET protocol and is more like a NetCat with
bad vt100 emulator. In your profile match TERM to what ever TELNET.EXE
sets and then set TERM to a low function vt100. This is a last resort
you should have if the Windows PC has no client software whatsoever.
You can forget about printing.
I could only presume that Microsoft have left TELNET.EXE a bit broken
to try and break character cell applications which are still popular for
transaction entry.
I manually set TERM=vt100 if I use a PC without www.
If I have www I install PuTTY.
Perhaps the ansi entry or what ever TELNET.EXE now uses should be
reviewed and made to match the reduced functionality of TELNET.EXE.
Check that your curses app matches local terminfo before the AIX one.
We have similar problems with the Sun xterm clients. It does TELNET
protocol, but the attribute sm* and rm* terminal emulation are like the
original VT100 rather than the later ones. It sets TERM=xterm so we
match peer IP to Sun Ray servers and then map this to xterm-sun which
we have customised. TERM=vt100 also works with Sun xterm.
Our global profile as a lot of 'case "$TERM" in ... esac' testing.
We also maintain a lot of terminfo entries.
Post by Charles LavinThanks,
CL
Post by Charles LavinHi --
I posted this to a managed Microsoft ng, but I'm getting nowhere.
Has anyone had any success using the MS telnet client as shipped in
Windows XP to connect to an AIX box as anything other than a vt100
terminal?
According to telnet's own help, as well as several pages of docs I've
VT100, VT52, ANSI and VTNT.
The command "telnet -t ansi hostname" supposedly connects to the host
using the ANSI emulation (which is what I need).
An alternate way to do this is with the telnet command "set term ansi".
However, four different AIX hosts (one AIX 3.2.5, one AIX 4.1, two AIX
5.2) set their TERM values to vt100 when I log in from the MS telnet
client, no matter which terminal emulation I select on the telnet command
line.
Other programs, such as TinyTERM and puTTY, don't have this problem
setting up telnet sessions with these hosts.
Does anyone know how to get the MS telnet program to properly identify
itself so that AIX sets it up as an ansi device?
Thanks,
CL
As I mentioned in the MS newsgroup I have no problems getting this to work
as you want. You mentioned different servers giving you the same results,
is this also true with different PCs? Maybe trying a laptop that has not
been changed from the default configuration.
I asked before if you could changed the .profile file for your login to
set and export the TERM variable. Were you able to do this?
Slave printing works with PuTTY. This is the script being used on
GNU/Linux. The AIX one is very similar. Look up mc5 and mc4, but
default to "\033[5i" and "\033[4i".
***@thot:~$ cat -vt /usr/local/bin/ttyprint
#! /bin/dash
#! /bin/sh
#
# ttyprint - print to printer attached to terminal or PC running PuTTY - AB
ptr_on=`tput mc5`
ptr_off=`tput mc4`
echo -n "${ptr_on:=^[[5i}"
cat
echo -n "${ptr_off:=^[[4i}"
exit 0