Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PATCH: termcap/terminfo support in modules



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   



Messages sorted by: Reverse Date, Date, Thread, Author