Path: utzoo!attcan!uunet!elroy.jpl.nasa.gov!mahendo!wlbr!lonex.radc.af.mil!ratazzie From: ratazzie@lonex.radc.af.mil (Edward P. Ratazzi) Newsgroups: comp.unix.questions Subject: Re: vi question - unknown terminal type Keywords: vi, termcap Message-ID: <1991Mar1.194441.5276@lonex.radc.af.mil> Date: 1 Mar 91 19:44:41 GMT References: <1991Jan31.160558.815@lonex.radc.af.mil> <967@twg.bc.ca> <1991Mar01.091710.25962@pilikia.pegasus.com> Organization: RADC Lines: 27 In article <1991Mar01.091710.25962@pilikia.pegasus.com> art@pilikia.pegasus.com (Art Neilson) writes: >In article <967@twg.bc.ca> bill@twg.bc.ca (Bill Irwin) writes: >>ratazzie@lonex.radc.af.mil (Edward P. Ratazzi) writes: >> >>} Recently, I added some new termcap entries to the end of our /etc/termcap >>} file. Everything seems to work O.K. with these terminals, EXCEPT vi. >>} When vi is started, we get an 'Unknown terminal type' message. The terminal >>} name IS in /etc/termcap. Where else does vi look? What might be the problem? >> >>I've also seen situations where a previous termcap description >>does not terminate correctly, thereby including your new terminal >>definition as part of the previous one. > >Or perhaps the system Edward is on has terminfo. >If his system does have terminfo, vi probably uses it. >-- Yup, that's it. I had just upgraded from SunOS 4.0.3 to SunOS 4.1.1. In that upgrade, vi goes from being termcap-dependent to terminfo-dependent. So, after I modified termcap, I had to "tic" (see man tic) the termcap into the terminfo database. --> Problem solved. -- E. Paul Ratazzi | ratazzie@lonex.radc.af.mil Microelectronics Reliability Division | COMPMAIL: e.ratazzi Rome Laboratory | (315) 330-2946 "Exploring the Invisible Frontier" | DSN 587-2946