From: <ho...@ya...> - 2003-05-18 23:38:01
|
Finally :) I got it right. I tried with the latest CXTERM code in CVS after updating Cygwin to the latest version. Termcap and terminfo are patched. Everything works fine now. Vi and Lynx works with any number of rows. Even resize works in realtime. Thank you very much. John --- Hin-Tak Leung <hin...@ya...> wrote: > 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 > > > > ATTACHMENT part 2 image/png name=vi-syslog.png > ATTACHMENT part 3 image/png name=lynx-yahoo.png > # $Xorg: termcap,v 1.3 2000/08/17 19:55:10 cpqbld > Exp $ > # > cvs|cxterm|cxterm-24|cxterms|cvs100|cxterm terminal > emulator (X Window System):\ > :is=\E7\E[r\E[m\E[?7h\E[?1;3;4;6l\E[4l\E8\E>:\ > :rs=\E7\E[r\E[m\E[?7h\E[?1;3;4;6l\E[4l\E8\E>:\ > > :AL=\E[%dL:DL=\E[%dM:DC=\E[%dP:DO=\E[%dB:UP=\E[%dA:\ > :LE=\E[%dD:RI=\E[%dC:\ > :al=\E[L:am:\ > :bl=^G:\ > > :bs:cd=\E[J:ce=\E[K:cl=\E[H\E[2J:cm=\E[%i%d;%dH:co#80:\ > :cs=\E[%i%d;%dr:ct=\E[3g:\ > :dc=\E[P:dl=\E[M:\ > :ho=\E[H:\ > :im=\E[4h:ei=\E[4l:mi:\ > :ks=\E[?1h\E=:ke=\E[?1l\E>:\ > :k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:\ > > :k5=\E[15~:k6=\E[17~:k7=\E[18~:k8=\E[19~:k9=\E[20~:\ > :k;=\E[21~:\ > > :F1=\E[23~:F2=\E[24~:F3=\E[25~:F4=\E[26~:F5=\E[28~:\ > > :F6=\E[29~:F7=\E[31~:F8=\E[32~:F9=\E[33~:FA=\E[34~:\ > :kn#20:\ > :@0=\E[1~:kI=\E[2~:kD=\E[3~:\ > :*6=\E[4~:kP=\E[5~:kN=\E[6~:\ > :km:\ > :kb=^H:ku=\EOA:kd=\EOB:kr=\EOC:kl=\EOD:\ > :li#24:md=\E[1m:me=\E[m:mr=\E[7m:ms:nd=\E[C:pt:\ > :eA=\E)0:as=^N:ae=^O:\ > :ml=\El:mu=\Em:\ > :sc=\E7:rc=\E8:sf=\n:so=\E[7m:se=\E[m:sr=\EM:\ > :ti=\E7\E[?47h:te=\E[2J\E[?47l\E8:\ > :up=\E[A:us=\E[4m:ue=\E[m:xn: > cv2|cxterm-65|cxterm with tall window 65x80 (X > Window System):\ > :li#65:tc=cxterm: > cvb|cxterm-bold|cxterm with bold instead of > underline (X Window System):\ > :us=\E[1m:tc=cxterm: > cvb|cxterm-boldso|cxterm with bold for standout (X > Window System):\ > :so=\E[1m:tc=cxterm: > # > # vi may work better with this entry, because vi > # doesn't use insert mode much > cvi|cxterm-ic|cxterm-vi|cxterm with insert character > instead of insert mode:\ > :im=:ei=:mi@:ic=\E[@:IC=\E[%d@:tc=cxterm: > > # $Xorg: terminfo,v 1.3 2000/08/17 19:55:10 cpqbld > Exp $ > # meml locks memory above the cursor; memu unlocks > (ala HP terminals) > # > cxterm|cxterm-24|cxterms|cvs100|cxterm terminal > emulator (X Window System), > is2=\E7\E[r\E[m\E[?7h\E[?1;3;4;6l\E[4l\E8\E>, > rs2=\E7\E[r\E[m\E[?7h\E[?1;3;4;6l\E[4l\E8\E>, > am, bel=^G, > cols#80, lines#24, > clear=\E[H\E[2J, cup=\E[%i%p1%d;%p2%dH, > csr=\E[%i%p1%d;%p2%dr, > cud=\E[%p1%dB, cud1=\n, cuu=\E[%p1%dA, cuu1=\E[A, > cub=\E[%p1%dD, cub1=\b, cuf=\E[%p1%dC, cuf1=\E[C, > el=\E[K, ed=\E[J, > home=\E[H, ht=^I, ind=^J, cr=^M, > km, > smir=\E[4h, rmir=\E[4l, mir, > smso=\E[7m, rmso=\E[m, smul=\E[4m, rmul=\E[m, > bold=\E[1m, rev=\E[7m, blink@, sgr0=\E[m, msgr, > enacs=\E)0, smacs=^N, rmacs=^O, > smkx=\E[?1h\E=, rmkx=\E[?1l\E>, > kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS, > kf5=\E[15~, kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, > kf9=\E[20~, > kf10=\E[21~, > kf11=\E[23~, kf12=\E[24~, kf13=\E[25~, kf14=\E[26~, > kf15=\E[28~, > kf16=\E[29~, kf17=\E[31~, kf18=\E[32~, kf19=\E[33~, > kf20=\E[34~, > kfnd=\E[1~, kich1=\E[2~, kdch1=\E[3~, > kslt=\E[4~, kpp=\E[5~, knp=\E[6~, > kbs=\b, kcuu1=\EOA, kcud1=\EOB, kcuf1=\EOC, > kcub1=\EOD, > meml=\El, memu=\Em, > smcup=\E7\E[?47h, rmcup=\E[2J\E[?47l\E8, > sc=\E7, rc=\E8, > il=\E[%p1%dL, dl=\E[%p1%dM, il1=\E[L, dl1=\E[M, > ri=\EM, > dch=\E[%p1%dP, dch1=\E[P, > tbc=\E[3g, > xenl, > cxterm-65|cxterm with tall window 65x80 (X Window > System), > lines#65, > use=cxterm, > cxterm-bold|cxterm with bold instead of underline (X > Window System), > smul=\E[1m, use=cxterm, > cxterm-boldso|cxterm with bold for standout (X > Window System), > smso=\E[1m, use=cxterm, > # > # vi may work better with this entry, because vi > # doesn't use insert mode much > cxterm-ic|cxterm-vi|cxterm with insert character > instead of insert mode, > smir@, rmir@, mir@, ich1=\E[@, ich=\E[%p1%d@, > use=cxterm, > __________________________________ Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo. http://search.yahoo.com |