Operating System - HP-UX
1753716 Members
4737 Online
108799 Solutions
New Discussion юеВ

Modified terminfo, curses complains.

 
Paul Glass
Advisor

Modified terminfo, curses complains.

I'm using a ba80-08 terminal emulation (ba80 was a Nixdorf term similar to vt-220).

I've made a copy of the .ti file (ba80-08w.ti) and changed the cols and lines from 80,24 to 140,32. Then used tic to compile it.

Most programs work fine but curses programs exit with "Sorry, I need to know a more specific terminal type than "ba80-08w"."

cscope exits with "Error opening terminal: ba80-08w."

What have I done wrong?
4 REPLIES 4
Steven Schweda
Honored Contributor

Re: Modified terminfo, curses complains.

> [...] but curses programs [...]

Are they using (unimproved) termcap instead
of (improved) terminfo?
Paul Glass
Advisor

Re: Modified terminfo, curses complains.

> Are they using (unimproved) termcap instead
of (improved) terminfo?

I don't think so. There is no termcap for the (working OK) ba80-08 term either, as I brought its terminfo across when migrating from an old nixdorf unix box.

Paul

Thomas Dickey
New Member

Re: Modified terminfo, curses complains.

Probably you only renamed the file.
tic does not care about the filename.
It creates entries based on the names
in the first line of the entry, separated
by "|" characters.
Paul Glass
Advisor

Re: Modified terminfo, curses complains.

> Probably you only renamed the file.

No, I did change the term name in the first line.

It seems that the problem is not with the changes I made. Recompiling the original unchanged ba80-08.ti file also produces a broken binary.

I have had to recover the original binary from a backup and use untic to get a good ba80-08.ti. After this my changes work fine.

strange, because infocmp says that the good and bad binaries are identicle in functionality.