From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11593 invoked from network); 4 Dec 2000 16:38:34 -0000 Received: from sunsite.dk (HELO sunsite.auc.dk) (130.225.51.30) by ns1.primenet.com.au with SMTP; 4 Dec 2000 16:38:34 -0000 Received: (qmail 1087 invoked by alias); 4 Dec 2000 16:38:26 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 13222 Received: (qmail 1079 invoked from network); 4 Dec 2000 16:38:24 -0000 From: "Bart Schaefer" Message-Id: <1001204163807.ZM19828@candle.brasslantern.com> Date: Mon, 4 Dec 2000 16:38:07 +0000 In-Reply-To: <20001203154842.B23776@dman.com> Comments: In reply to Clint Adams "PATCH: termcap/terminfo support in modules" (Dec 3, 3:48pm) References: <20001203154842.B23776@dman.com> X-Mailer: Z-Mail (5.0.0 30July97) To: Clint Adams , zsh-workers@sunsite.auc.dk Subject: Re: PATCH: termcap/terminfo support in modules MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Dec 3, 3:48pm, Clint Adams wrote: } Subject: PATCH: termcap/terminfo support in modules } } This is my attempt to get the echotc builtin out of the core } and to provide a terminfo equivalent, as well as a terminfo parameter. Lots of errors for me: ../../../zsh-3.1.6/Src/Modules/terminfo.c: In function `bin_echoti': ../../../zsh-3.1.6/Src/Modules/terminfo.c:68: warning: assignment makes pointer from integer without a cast ../../../zsh-3.1.6/Src/Modules/terminfo.c:43: warning: unused variable `argct' ../../../zsh-3.1.6/Src/Modules/terminfo.c:42: warning: unused variable `u' ../../../zsh-3.1.6/Src/Modules/terminfo.c:42: warning: unused variable `buf' ../../../zsh-3.1.6/Src/Modules/terminfo.c: In function `getterminfo': ../../../zsh-3.1.6/Src/Modules/terminfo.c:140: warning: return makes pointer from integer without a cast ../../../zsh-3.1.6/Src/Modules/terminfo.c:142: warning: return makes pointer from integer without a cast ../../../zsh-3.1.6/Src/Modules/terminfo.c:166: warning: assignment makes pointer from integer without a cast ../../../zsh-3.1.6/Src/Modules/terminfo.c: In function `scanterminfo': ../../../zsh-3.1.6/Src/Modules/terminfo.c:185: warning: `return' with a value, in function returning void And then: Modules/terminfo.o: In function `bin_echoti': /usr/src/local/zsh/zsh-3.1.6-build/Src/Modules/../../../zsh-3.1.6/Src/Modules/terminfo.c:51: undefined reference to `tigetnum' /usr/src/local/zsh/zsh-3.1.6-build/Src/Modules/../../../zsh-3.1.6/Src/Modules/terminfo.c:56: undefined reference to `tigetflag' /usr/src/local/zsh/zsh-3.1.6-build/Src/Modules/../../../zsh-3.1.6/Src/Modules/terminfo.c:68: undefined reference to `tigetstr' Modules/terminfo.o: In function `getterminfo': /usr/src/local/zsh/zsh-3.1.6-build/Src/Modules/../../../zsh-3.1.6/Src/Modules/terminfo.c:158: undefined reference to `tigetnum' /usr/src/local/zsh/zsh-3.1.6-build/Src/Modules/../../../zsh-3.1.6/Src/Modules/terminfo.c:162: undefined reference to `tigetflag' /usr/src/local/zsh/zsh-3.1.6-build/Src/Modules/../../../zsh-3.1.6/Src/Modules/terminfo.c:166: undefined reference to `tigetstr' It appears that configure on my RH5.2 box decides that only -ltermcap is necessary, but the tiget* functions are in libcurses. I find it somewhat disappointing that zsh now has to be linked with curses; the line editor has so studiously avoided using curses for screen management ... -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net