Operating System - HP-UX
1832227 Members
2713 Online
110041 Solutions
New Discussion

Problem with HPterm window

 
Ron Bromwell
Frequent Advisor

Problem with HPterm window

I'm having a problem with an HPTerm window launched from the CDE desktop. When the user logs in and clicks on the HPterm icon, the window opens and then hangs with the following line

Term = (hp)

If i hit the return button I will get a prompt.

Any ideas?
life's a journey, not a destination
4 REPLIES 4
Darren Prior
Honored Contributor

Re: Problem with HPterm window

Hi,

It's likely that the user's .profile contains a couple of lines to request the terminal type, where it suggests the most likely type and allows you to accept that or choose another. It's normal behaviour, but you could consider hardcoding it in the user's .profile if they always use a particular terminal type.

regards,

Darren.
Calm down. It's only ones and zeros...
Stuart Abramson_2
Honored Contributor

Re: Problem with HPterm window

This comes, I think, from the "tset" command below. Your ".profile" files should be set up to NOT do a "tset" command if CDE has already set the terminal type. here is mine (It says "vue" in it, but I think the same logic applies to CDE.):

# Be sure that VUE does not invoke tty commands

if [ ! "$VUE" ]; then

# Set up the terminal:
if [ "$TERM" = "" ]
then
eval ` tset -s -Q -m ':?hp' `
else
eval ` tset -s -Q `
fi
stty erase "^H" kill "^U" intr "^C" eof "^D"
stty hupcl ixon ixoff
tabs

echo
echo "Value of TERM has been set to \"$TERM\". "
export TERM

EDITOR=vi
export EDITOR

fi # if !VUE
Steve Steel
Honored Contributor

Re: Problem with HPterm window

Hi

Because $TERM is not set for user.


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Alex Glennie
Honored Contributor

Re: Problem with HPterm window

What's the O/S here, are the users $HOME nfs mounted and are they using ksh by any chance ?

Advise is :

a) install latest CDE patch

b) if nfs involved : this maybe a known issue the hanging behavior can be manifested
into the inability to display a prompt in a terminal window. Therefore, to
resolve this issue, please set the user's HISTFILE environment variable to point
to a locally mounted directory such as /tmp/.sh_hist.$LOGNAME.


If the user continues to experience problems, please check the following :

1. Does this problem reoccur if the user attempts to start a new dtterm
terminal window say from the CDE front panel?

2. Is root affected .

3. See earlier questions ;-)