-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On Tuesday, May  4 at 03:59 PM, quoth Jamie Griffin:
> There are quite a few entries in /etc/termcap already for xterm-*, 
> including xterm-color.

Good!

> I tried setting TERM=xterm-color in ~.cshrc (obviously using the 
> correct environment setting syntax for csh) but it made things worse 
> by mangling up the display on the console of my FreeBSD machine, and 
> didn't improve the display on the Mac either. Perhaps i did that 
> wrong?

Probably not.

First of all, your console is obviously NOT an xterm, so pretending 
that it IS an xterm will produce bad results (for obvious reasons); 
for that reason (among others), it's almost always a bad idea to 
unconditionally set your TERM in your cshrc. This is one of those 
environment variables that is supposed to be set correctly by each 
terminal (whether it's your console or your GUI terminal or whatever), 
and then passed along by ssh whenever you connect to a remote system 
(the reason ssh passes the TERM setting along is that TERM is supposed 
to describe the terminal that is being used, so that console 
applications (such as mutt) know how to correctly manipulate your 
terminal).

As far as why setting TERM to xterm-color messed up your ssh 
connections as well... what's most likely the issue is a disagreement 
among your various systems over what constitutes xterm-color. On some 
systems, "xterm-color" is a synonym for xterm-256color, while on 
others its a synonym for xterm-16color or something even more 
restricted. I believe it's an issue of philosophy: should the 
xterm-color termcap file reflect the local system's xterm and its 
maximum capabilities, or should the xterm-color termcap file represent 
the minimum color xterm's capabilities. Since many systems default to 
the max-capabilities of their own copy of xterm, I find that it's 
usually more useful to be specific about what kind of xterm I'm using. 
So, I almost always use xterm-16color as my TERM setting when using 
xterm, because that's enough colors for me and because most color 
xterms can handle 16 colors---many cannot handle 256 colors, and if 
you try to use 256 colors with an xterm that can only handle 16, 
you'll probably get weird-looking results.

What terminal program are you using on your Mac? Apple's Terminal or 
an honest-to-god xterm or something else?

~Kyle
- -- 
It is only possible to live happily ever after on a day-to-day basis.
                                                    -- Margaret Bonnano
-----BEGIN PGP SIGNATURE-----
Comment: Thank you for using encryption!

iQIcBAEBCAAGBQJL4EjaAAoJECuveozR/AWeuyEP/RtSwFaNvbAsFlkBE6mlgpFc
NHmGS890e3sqwFBkYu7OAeJkXoC7wltQ//8bBGW8L1P9Izwzr6lPQJGuMxqmP8LG
xnrpL6bTHCFdfkVlq6l1vDpoX84b9an787hBpzbMHwh+eCPT9ebtKDNegGAPI9hc
PpNNhDuaLXz/Cx/qozs+1H1H0I9C0NL9h1s1SfPqrvd7ftLSniGpzwkNoBx5BQ/O
RuZNf/ndi6fVdgp0LWLz09IdJwL1m86W+C69Uiscm+XqDVCef0IfZ7uSZb3wFZrX
8iv9nytIvMm+s8GDRG4I9dtEqQpB5bF4RodzNE9y5woTUAJOLucb+CkUcgoyZQiU
jYCrprOK9fGzluBJmy//TM2a/vaQ0eo2UnOUm6C3N1SWJNXF+ZloZKreXlH9xRRT
Whz0vRLVkmna8BX9RiBkzPiVX0KaJkHFXhLAHOAMq6lGvA19HSh6RUOV06UniGnT
5/EzMz4ZTBME5u12L/3t0p2j/9HWEp5Ci0MbO30D5t4RbheckNVNx8KrfhLn/DKa
QJXC6ZmXVZqUL+xCEVG6ZnHsl4xdjwTR8gny8EXYn/JejrWaVcQXISnvX76feS2o
gqUNtDVZuDSklhoFZco07+UC5ALUZXp0bd0SL/2DXEWU7wwsrztx+pKHXJ781gn3
DuJS0k+dkiHLvH9UD7He
=Do2D
-----END PGP SIGNATURE-----

Reply via email to