I think my system do the things right using terminfo instead of termcap.

Indeed, if I remove the terminfo file:
$ rm -rfv ~/.terminfo/

Then I got problems using terminal applications:
$ less todo.txt 
WARNING: terminal is not fully functional
$ infocmp
infocmp: couldn't open terminfo file /usr/share/terminfo/r/rxvt-unicode.

But If I add the terminfo file:
spierre@samson:~$ infocmp vt100 > vt100.cmp                
spierre@samson:~$ sed -i s/vt100/rxvt-unicode/g vt100.cmp 
spierre@samson:~$ tic vt100.cmp                           

Then I got no problems using terminal applications:
$ less todo.txt
$ infocmp                                 
#       Reconstructed via infocmp from file: 
/home/yugiohjcj/.terminfo/r/rxvt-unicode
rxvt-unicode|rxvt-unicode-am|dec rxvt-unicode (w/advanced video),
        am, mc5i, msgr, xenl, xon,
        cols#80, it#8, lines#24, vt#3,
        acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
        bel=^G, blink=\E[5m$<2>, bold=\E[1m$<2>,
        clear=\E[H\E[J$<50>, cr=^M, csr=\E[%i%p1%d;%p2%dr,
        cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=^J,
        cuf=\E[%p1%dC, cuf1=\E[C$<2>,
        cup=\E[%i%p1%d;%p2%dH$<5>, cuu=\E[%p1%dA,
        cuu1=\E[A$<2>, ed=\E[J$<50>, el=\E[K$<3>, el1=\E[1K$<3>,
        enacs=\E(B\E)0, home=\E[H, ht=^I, hts=\EH, ind=^J, ka1=\EOq,
        ka3=\EOs, kb2=\EOr, kbs=^H, kc1=\EOp, kc3=\EOn, kcub1=\EOD,
        kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, kent=\EOM, kf0=\EOy,
        kf1=\EOP, kf10=\EOx, kf2=\EOQ, kf3=\EOR, kf4=\EOS, kf5=\EOt,
        kf6=\EOu, kf7=\EOv, kf8=\EOl, kf9=\EOw, lf1=pf1, lf2=pf2,
        lf3=pf3, lf4=pf4, mc0=\E[0i, mc4=\E[4i, mc5=\E[5i, rc=\E8,
        rev=\E[7m$<2>, ri=\EM$<5>, rmacs=^O, rmam=\E[?7l,
        rmkx=\E[?1l\E>, rmso=\E[m$<2>, rmul=\E[m$<2>,
        rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, sc=\E7,
        
sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;m%?%p9%t\016%e\017%;$<2>,
        sgr0=\E[m\017$<2>, smacs=^N, smam=\E[?7h, smkx=\E[?1h\E=,
        smso=\E[7m$<2>, smul=\E[4m$<2>, tbc=\E[3g,

Also, I added an entry into my /etc/termcap file:
rxvt-unicode rxvt-unicode compatible:\
        :im@:mi@:al@:dl@:ic@:dc@:AL@:DL@:IC@:DC@:\
        :tc=vt102:

But I got long commands on multiple lines...

The only solution which works for the moment is to set TERM=vt100.

Why it isn't possible to get the correct behavior by using terminfo/termcap 
files instead of set this TERM variable ?


----- Mail original -----
De: "Marc Lehmann" <[email protected]>
À: "Zsbán Ambrus" <[email protected]>
Cc: [email protected]
Envoyé: Dimanche 5 Août 2012 12:53:05
Objet: Re: Long commands on multiple lines

On Fri, Aug 03, 2012 at 01:27:01PM +0200, Zsbán Ambrus <[email protected]> 
wrote:
> > If I set TERM=rxvt, then I have this strange behavior (long commands on a
> > single line) :(
> 
> Try to set TERM=rxvt-unicode instead.  You have an "rxvt-unicode"
> terminfo entry, but possibly no "rxvt" terminfo entry.

As additional info, some antique systems *cough* fedora *cough* still link
bash and other shells against the obsolete termcap libraries. On these
outdated systems one also needs to add create and add a termcap entry to
/etc/termcap (the process is described in the FAQ).

-- 
                The choice of a       Deliantra, the free code+content MORPG
      -----==-     _GNU_              http://www.deliantra.net
      ----==-- _       generation
      ---==---(_)__  __ ____  __      Marc Lehmann
      --==---/ / _ \/ // /\ \/ /      [email protected]
      -=====/_/_//_/\_,_/ /_/\_\

_______________________________________________
rxvt-unicode mailing list
[email protected]
http://lists.schmorp.de/cgi-bin/mailman/listinfo/rxvt-unicode

_______________________________________________
rxvt-unicode mailing list
[email protected]
http://lists.schmorp.de/cgi-bin/mailman/listinfo/rxvt-unicode

Reply via email to