From: <ho...@ya...> - 2003-05-11 17:49:25
|
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 --- Hin-Tak Leung <hin...@ya...> wrote: > Figured out this problem finally. Commited to CVS > but > didn't made into 5.2.3, would be in 5.2.4 , I guess. > > > Hin-Tak Leung wrote: > > Don't know if you have solved this, but I just > found > > somewhat surprisingly that setting TERM to vt100 > > works far better than the default (xterm). Very > strange. > > > > ho...@ya... wrote: > > > >> I tried it on Linux (Mandrake 9.0 2.4.19-16mdk) > and > >> found, > >> - resize works automatically and manually > >> - VI works - "stty rows" works > >> - lynx rows and display are messy if the default > >> terminal is "xterm". However, after I use "cxterm > -tn > >> rxvt -geometry 80x40" or "cxterm -tn vt220 > -geometry > >> 80x40", it seems working correctly. > >> > >> For now I have not tried the latest cygwin. > >> > >> John > >> > > > > Screen corruption problem when using full-screen > programs > like lynx, emacs, or vi: > ======================== > > Thanks to some hints on the web site of Thomas > Dickey > (http://dickey.his.com/xterm/xterm.html) - author of > xterm and > some other programs on Xfree86. Basically he was > complaining > about most of the xterm derivatives on the market > and said none of > them does ANSI escape sequence properly (including > CXterm). And > he explained that xterm in the latest XFree86 does > it far better... > > There's the problem. CXterm uses the xterm > termcap/terminfo entries. > As xterm in XFree86 got better over the years, its > termcap/terminfo > entries had changed; whereas CXterm is essentially > stuck in time > with X Consortium's initial X11R6. In fact X.Org's > latest X11R6.6 > ships the same termcap for their xterm as X > Consortium did 10 years ago, > so the problem is just that XFree86 has moved > onwards a lot. > > CXterm looks for a "cxterm" termcap/terminfo entries > before falling > back to those of xterm's. So to make CXterm work > properly, > just append "cxterm.termcap" to "/etc/termcap", and > run > "tic cxterm.terminfo" as root so that some cxterm > entries get > added to the terminfo database. These two files are > adapted from > X.Org's X11R6.6. > > -- > Hin-Tak Leung <ht...@us...>> # $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, > > # $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: > __________________________________ Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo. http://search.yahoo.com |