1820592 Members
1782 Online
109626 Solutions
New Discussion юеВ

stty setting

 
Philip Hardy_1
New Member

stty setting

I'm looking for some help with setting the terminal settings in our Reflections terminal emulators when we move from Tru64 unix to HPUX/itanium. Tru64 unix has an "stty dec" setting that sets up the session for a DEC terminal like a VT220. On Tru64, the left and right arrow keys work on the unix command line and the up arrow scrolls back through previous commands and the down arrow scrolls forward through commands. Is there some way to set it for this emulation in the .profile and/or .login file? Thanks much.
Ph
4 REPLIES 4
Steven Schweda
Honored Contributor

Re: stty setting

"man stty" is pretty uninformative, but I'd
assume that you could look at the report from
"stty -a" on the two systems, and see what
you need/want to change.

> On Tru64, the left and right arrow keys
> work on the unix command line and [...]

This behavior is supplied by the shell you
use, not the OS itself. (And you don't seem
to have disclosed that datum. For either
system.)

"HPUX/itanium" doesn't reveal the HP-UX
version, either, but I assume that you'll get
an informative complaint (from vi, probably)
if your TERM variable is set to something
which is unknown to your version of HP-UX:

td194> vi xxx
vt300: Unknown terminal type
I don't know what kind of terminal you are on - all I have is 'vt300'.
[Using open mode]
Steven E. Protter
Exalted Contributor

Re: stty setting

Shalom,

stty -a > file.true64

stty -a > file.hpux

On respective systems.

You might be able to sort the data and identify the changes that need to be made.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
OldSchool
Honored Contributor

Re: stty setting

I know you can get the arrow key mapping to work with the bash shell. AFAIK, that doesn't come out of the box on HP-UX.

It also may require that you fiddle with bashrc or inputrc files to map the arrow keys to the corresponding Control character sequences.

the ksh does have command history and file name completion...although you need to enter the control codes via the keyboard instead of using arrow keys.

note that roots default shell should *not* be changed...if you want to run either of the above, start it from the command line after you login.
OldSchool
Honored Contributor

Re: stty setting

also have a look at "stty -g"...which reports stty settings in a form that can be used as input to another stty command.

If its available on both systems, you could extract the info from the tru64 system and use it to set the hp system