From: Hin-Tak L. <hin...@ya...> - 2003-05-11 19:09:54
|
That's very wierd... I just did it (attached screenshots). At first my vi looked broken, but then I remember I only had the terminfo installed, so I checked vi and indeed vi is linked against termcap, rather than ncurses, so I quickly appended the termcap as well, and it worked like a charm. I can even resize *after* launching either application to have the content resizing dynamically. (vi does resize dynamically, lynx just needs scrolling down and up again to pursuade it to do so). With these termcap and terminfo files, you should set TERM to "cxterm" (TERM is set to cxterm by default, in fact, if the termcap/terminfo entries are found - otherwise it is set to xterm which is very broken, because Xfree86's xterm is very much more advanced than the version of xterm from which cxterm derived, and current Xfree86's xterm termcap/terminfo entry is very wrong for cxterm which is almost 8 years older). The correct way to install the termcap file is just to append to the system one ( "cat cxterm.termcap >> /etc/termcap"), and for terminfo, just to do "tic cxterm.terminfo". (The latter can be done by an ordinary user, in which case the terminfo file is installed under "$HOME/.terminfo/" rather than system-wide "/usr/share/terminfo" for installation by root). ================================================================= > ldd /usr/bin/vi libtermcap.so.2 => /lib/libtermcap.so.2 (0x4001d000) libresolv.so.2 => /lib/libresolv.so.2 (0x40022000) libc.so.6 => /lib/libc.so.6 (0x40033000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000) > ldd /usr/bin/lynx libz.so.1 => /usr/lib/libz.so.1 (0x4001d000) libncurses.so.5 => /lib/libncurses.so.5 (0x4002b000) libssl.so.0 => /usr/lib/libssl.so.0 (0x40067000) libcrypto.so.0 => /usr/lib/libcrypto.so.0 (0x40098000) libc.so.6 => /lib/libc.so.6 (0x40195000) libdl.so.2 => /lib/libdl.so.2 (0x402c8000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000) > lynx --version Lynx Version 2.8.4rel.1 (17 Jul 2001) libwww-FM 2.14, SSL-MM 1.4.1, OpenSSL 0.9.7a Built on linux-gnu Mar 2 2003 15:40:43 > vi --version elvis 2.1_4 Copyright (c) 1995-1999 by Steve Kirkendall ================================================================ ho...@ya... wrote: > Thank you. I tried with 5.2.2 by appending the termcap > and converting the terminfo file with no error. But vi > and lynx still behave the same, only 25 lines. Resize > still doesn't work. Since my system is a little bit > messy right now, I will continue trying (cvs 5.2.4). > Thanks again. > > John > |