Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83 SMI; site cbhydra.uucp Path: utzoo!watmath!clyde!burl!mgnetp!ihnp4!cbosgd!cbhydra!mark From: mark@cbhydra.uucp Newsgroups: net.info-terms,net.unix-wizards Subject: Re: vi and terminfo Message-ID: <120@cbhydra.uucp> Date: Tue, 10-Jul-84 12:05:14 EDT Article-I.D.: cbhydra.120 Posted: Tue Jul 10 12:05:14 1984 Date-Received: Wed, 11-Jul-84 01:28:16 EDT References: <281@wucs.UUCP> Organization: AT&T Bell Laboratories, Columbus Lines: 26 The version of curses/terminfo I have here (and the one distributed with System V Release 2) is upward compatible with termcap at the termlib level. That is, if you have a program that calls tgetent, tgetflag, tgoto, tputs, and so forth, instead of cc foo.c -ltermcap you can type cc foo.c -lcurses and the program will work, using the terminfo database. (Since it brings in the emulation package and the low level terminfo code, it will be a few K bigger than the termcap version. However, it will probably start up faster since terminfo is compiled and there is no quadratic behavior on long descriptions as there is in termcap.) I tried it out by loading vi version 3.7 this way. It worked with no source modifications (although the attempt by vi to build the string "xx|unknown:co#80:bs:am" or some such thing if $TERM isn't set won't work.) I did not use this version extensively. I can't speak for whatever version of vi you have at wucs or the terminfo code distributed by CCA (which I believe is a different implementation) but I would guess that a floating exception means division by zero, which might mean that it thinks you have zero columns on your terminal. vi versions 3.8 and later use terminfo directly, not in emulation mode. Mark Horton