Re: ? detect terminal emulator software (183 Views)
Reply
Regular Advisor
Alexey Borchev
Posts: 150
Registered: ‎05-03-2003
Message 1 of 6 (183 Views)
Accepted Solution

? detect terminal emulator software

My users are working on my Tru64 5.1b with Telnet. They logging in from Windows workstations using some old terminal emulator software.
I want to migrate my users to PuTTy.
I have to adjust my application to use PuTTy.

Can I somehow detect from Tru64, with which terminal emulator software I had logged in?

I've found following info in PuTTy documentation:
"Most servers you might connect to with PuTTY are designed to be connected to from lots of different types of terminal. In order to send the right control sequences to each one, the server will need to know what type of terminal it is dealing with. Therefore, each of the SSH, Telnet and Rlogin protocols allow a text string to be sent down the connection describing the terminal.

PuTTY attempts to emulate the Unix xterm program, and by default it reflects this by sending xterm as a terminal-type string. If you find this is not doing what you want - perhaps the remote system reports ‘Unknown terminal type’ - you could try setting this to something different, such as vt220.

If you're not sure whether a problem is due to the terminal type setting or not, you probably need to consult the manual for your application or your server.
"
- I.e. Tru64 should know about terminal.
The fire follows shedule...
Please use plain text.
Honored Contributor
Ralf Puchner
Posts: 1,657
Registered: ‎04-22-2003
Message 2 of 6 (183 Views)

Re: ? detect terminal emulator software

maybe the TERM variable reflect your terminalid?

But I think it is important what terminal type will be emulated by your windows software and depending on the used type you can set the terminal emulation on unix side - which is a standard (the windows application itself is not a standard, it is only an emulation of a standard terminal like VT100, VT200 etc.)
Help() { FirstReadManual(urgently); Go_to_it;; }
Please use plain text.
Regular Advisor
Alexey Borchev
Posts: 150
Registered: ‎05-03-2003
Message 3 of 6 (183 Views)

Re: ? detect terminal emulator software

Yes, I've found 2 solutions:
1) It is possible in PuTTy to specify terminal type (xterm by default), any other will do the trick (but Tru64 may complain on 'terminal type is unknown')
In Unix You can see it in $TERM variable.

2) PuTTY can set environment variable on the host upon login.
Make variable Putty=Y
and check it in script.

I've hit another problem - it cannot show
ASCII symbols 1-32 (old terminal shows misc. faces&arrows). But it's unlikely Tru64 problem.
The fire follows shedule...
Please use plain text.
Honored Contributor
Ralf Puchner
Posts: 1,657
Registered: ‎04-22-2003
Message 4 of 6 (183 Views)

Re: ? detect terminal emulator software

use stty -a to check parameters between a working and non-working session.

Does it work if you specify another terminal type (like vt220?)
Help() { FirstReadManual(urgently); Go_to_it;; }
Please use plain text.
Regular Advisor
Alexey Borchev
Posts: 150
Registered: ‎05-03-2003
Message 5 of 6 (183 Views)

Re: ? detect terminal emulator software

1) Tank for stty -a.
It does show lots of info, I have to RTFM to understand whats it all about.

2) If I specify VT200 to Putty - connection - terminal type string, this value is successfully translated to UNIX.
I.e.
host> set
...
TERM=vt220
...
host>
and it seems working OK with command prompt.

My problems are futher down - my application (Concorde XAL) using screen with colours,
linedrawing and keyboard with ALT, CTRL and Russian language.

I had to launch my application with another options to operate against PuTTy.
The fire follows shedule...
Please use plain text.
Honored Contributor
Ralf Puchner
Posts: 1,657
Registered: ‎04-22-2003
Message 6 of 6 (183 Views)

Re: ? detect terminal emulator software

1) RTFM is always an option ;-)
but why not stty -a >file1 and the same for a working terminal session. Using diff to get the differences between them? Then reading "man termios" to get an explanation.
Life could be so easy!
Help() { FirstReadManual(urgently); Go_to_it;; }
Please use plain text.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation