1753808 Members
8238 Online
108805 Solutions
New Discussion юеВ

HexEdit and TERM Problem

 
John J Archer
Occasional Contributor

HexEdit and TERM Problem

I have installed the binary copy of hexedit 0.9.7 on my 11.11 system. Now when I try to execute the program I get 'Error opening terminal:' with any value that I have set TERM to. What should I look for?
7 REPLIES 7
Caesar_3
Esteemed Contributor

Re: HexEdit and TERM Problem

Hello!

Check the value of the TERM variable
you may need to change it to other like
hpterm or xterm

Caesar
John J Archer
Occasional Contributor

Re: HexEdit and TERM Problem

I have tried that before and this is what I get:
pms:/home/akron/john> export TERM=hpterm
pms:/home/akron/john> hexedit
Error opening terminal: hpterm.
pms:/home/akron/john> export TERM=xterm
pms:/home/akron/john> hexedit
Error opening terminal: xterm.
A. Clay Stephenson
Acclaimed Contributor

Re: HexEdit and TERM Problem

Have you installed ncurses?
If it ain't broke, I can fix that.
John J Archer
Occasional Contributor

Re: HexEdit and TERM Problem

That was a good question. (I still don't have this unix s/w from anywhere idea down yet.)
I have now installed ncurses (binary version marked for 11.0), What do I set so that hexedit will work (Istill get the same error.)?
Sridhar Bhaskarla
Honored Contributor

Re: HexEdit and TERM Problem

I believe it is trying to find ncurses somewhere other than where it is installed. I would suggest to recompile hexedit. You may have to copy the *.h files of ncurses into the source directory of hexedit. And you would need 'gcc'.


-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Sridhar Bhaskarla
Honored Contributor

Re: HexEdit and TERM Problem

Hi,

I compiled hexedit for the heck of it. See if this works for you. By default it is trying to find the ncurses header files from /opt/ncurses/include.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
A. Clay Stephenson
Acclaimed Contributor

Re: HexEdit and TERM Problem

There is no need to recompile hexedit - the binaries will work just fine. The problem is that hexedit is lookiing for the ncurses terminfo database and that is located in /usr/local/lib/terminfo but the normal terminfo location is /usr/lib/terminfo.

Try this, it should work:

1) export TERMINFO=/usr/local/lib/terminfo
hexedit
There might be a problem between HP's implementation of curses and terminfo and Gnu, so ....

2) This will definitely fix you.

unset TERMINFO
/usr/bin/untic dtterm > /tmp/dtterm.txt
export TERMINFO=/usr/local/lib/terminfo
/usr/local/bin/tic /tmp/dtterm.tic
unset TERMINFO
hexedit
(This will install a compiled dtterm entry in the ncurses default TERMINFO location.)
If it ain't broke, I can fix that.