-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Quoted from Jesus Sanchez on Sun, May 11, 2008 at 03:59:17AM +0200,: > Stuart Henderson escribis: > >On 2008-05-10, Jesus Sanchez <[EMAIL PROTECTED]> wrote: > > > >>I have set an alias for ls='colorls -GF' (color output) and this causes > >>the problems on a screen session. I have set the TERM="xterm-color" on > >>my /etc/profile. > >> > > > >Why do that? That will override the correct terminal configuration > >and send control codes suitable for an xterm to terminals that can't > >handle it, like screen. > > > > > So, what TERM variable should I use ? > > -Jesus >
Somehow I lost the original message, probably with a fat finger, so replying to this one. Here's the section of my .Xdefaults pertaining to xterm and rxvt: rxvt*loginShell:true rxvt*transparent:true rxvt*shading:40 rxvt*background:Black rxvt*foreground:Cyan rxvt*scrollBar:true rxvt*scrollBar_right:true rxvt*transpscrollbar:true rxvt*saveLines:32767 rxvt*termName:rxvt include: "XTerm" XTerm.termName: nxterm XTerm*font: -schumacher-clean-medium-*-normal-*-13-*-*-75-*-60-*-* *VT100*colorMode: on *VT100*boldColors: on *VT100*dynamicColors: on *VT100*foreground: cyan *VT100*background: gray15 *VT100*colorULMode: on *VT100*colorUL: yellow *VT100*underLine: on *VT100*colorBDMode: on *VT100*colorBD: yellow3 *VT100*color0: black *VT100*color1: red3 *VT100*color2: green3 *VT100*color3: yellow3 *VT100*color4: blue2 *VT100*color5: magenta3 *VT100*color6: cyan3 *VT100*color7: gray90 *VT100*color8: gray50 *VT100*color9: red *VT100*color10: green *VT100*color11: yellow *VT100*color12: rgb:5c/5c/ff *VT100*color13: magenta *VT100*color14: cyan *VT100*color15: white *VT100*color16: gray15 #if PLANES > 8 ! Color the popup menus and the menubar to match: *SimpleMenu.*.background: AntiqueWhite *SimpleMenu.*.foreground: gray15 *VT100.scrollbar.thumb: vlines2 *VT100.scrollbar.width: 14 *VT100.scrollbar.background: gray60 *VT100.scrollbar.foreground: rgb:a/5/5 *VT100.scrollbar.borderWidth: 2 !*VT100.scrollbar.displayList:\ #endif Set the colors according to your personal taste. I have no problem with the term value in the env like that, either in xterm or rxvt. For that matter, there's no conflict either with Eterm. And I can run screen from all of them without any conflicts. And, like some of the other messages mentioned, use wsvt25 in ttys. Also, in my .kshrc file, I have the section commented out like so: #if [ -x /usr/bin/tset ]; then # eval `/usr/bin/tset -sQ \vt220` #fi The ttys and .Xdefaults settings takes care of all of that. Hope this helps you some. Marc Espie made a good point too, in his reply. Leave the system config files alone as much as possible, especially while you're learning. If you can't, at least back up the original. Anytime you can use an 'rc' file in $HOME do it. It's kind of like leaving /etc/rc.conf alone and putting your stuff in /etc/rc.local and rc.conf.local. - -- Denny White All messages scanned by ClamAssassin http://jameslick.com/clamassassin/ =============================================================== GnuPG key : 0x1644E79A | http://wwwkeys.nl.pgp.net Fingerprint: D0A9 AD44 1F10 E09E 0E67 EC25 CB44 F2E5 1644 E79A =============================================================== iD8DBQFIJ7WCy0Ty5RZE55oRAhhtAJ9HfODUTsPlKJtzQCzUDBx0R+tBtACdEVxZ KxlLx4WVCAipFIh4EBr1dbw= =pkNu -----END PGP SIGNATURE-----