1827318 Members
5654 Online
109961 Solutions
New Discussion

Re: Terminal problem

 
SOLVED
Go to solution
yyghp
Super Advisor

Terminal problem

I met a problem when i finished install Pico within Pine depot:
When I tried to run "pico" under "/usr/local/bin", it always printed out:
"Unknown terminal type hpterm!", even I have tried to set TERM to "hpterm",
"vt100".
Any good idea for that ?
Thanks a lot !
11 REPLIES 11
harry d brown jr
Honored Contributor

Re: Terminal problem

Have you tried to set your "DISPLAY" variable?

live free or die
harry
Live Free or Die
yyghp
Super Advisor

Re: Terminal problem

yes, i have set the "DISPLAY" correctly.
Michael Schulte zur Sur
Honored Contributor

Re: Terminal problem

Hi,

have you done
TERM=vt100
export TERM
?

greetings,

Michael
Mark Greene_1
Honored Contributor

Re: Terminal problem

run this:

if [ "$TERM" = "" -o "$TERM" = "hp" ]
then
eval ` tset -h -s -Q `
else
eval ` tset -s -Q `
fi

and then echo $TERM to see what it gets set to.

mark
the future will be a lot like now, only later
harry d brown jr
Honored Contributor
Solution

Re: Terminal problem

I just installed it and it gave the same error it gave you.

It appears that you need to set the following to get it to work:

export TERMCAP=/usr/share/lib/termcap

live free or die
harry
Live Free or Die
yyghp
Super Advisor

Re: Terminal problem

harry d brown jr:

Thanks a lot !
You are so cool !!!
Yes, after i setup the TERMCAP, it worked!

so, i need to setup these to make pico work:

export TERM=vt100
export TERMCAP=/usr/share/lib/termcap

Thanks once again !
harry d brown jr
Honored Contributor

Re: Terminal problem

No problem. Besides, I haven't used pine in 5 years so I thought I'd give the install a whirl.

live free or die
harry
Live Free or Die
Michael Schulte zur Sur
Honored Contributor

Re: Terminal problem

Hi,

if Harry is so cool, would you be so kind to give at least him some points for his solution? ;-)

thanks,

Michael
yyghp
Super Advisor

Re: Terminal problem

10 points added !
Thanks again !
Todd McDaniel_1
Honored Contributor

Re: Terminal problem

Assignation of points is a great way to judge the value of each post...

no points here, but it is good etiquette to assign a value from zero to 10 for all posts...

Thanks and gratz on your solution to your problem.
Unix, the other white meat.
yyghp
Super Advisor

Re: Terminal problem

I found that the solution above didn't apply to DOS Prompt.
Although I add the following to the profile:
export TERM=vt100
export TERMCAP=/usr/share/lib/termcap
It's working within Putty or Reflection, but not DOS PROMPT.
Our developers want to use regular telnet from Dos Prompt ( run "cmd" ), then login to Unix to edit their files with Pico, but have the same error:

$ /usr/local/bin/pico
Unknown terminal type vt100!

So, what can I do ?
Thanks !