Francois Rigaut wrote:
[]
>> if ("$TERM_PROGRAM" == "Apple_Terminal") then
>>     alias settermtitle 'echo -n ""'
>> endif
>>
>> which fails if TERM_PROGRAM is not set, i.e. if tcsh is not started 
>> from a Terminal.app window.
> 
> 
> Martin,
> I encountered the same problem after installing 10.2, and ended up putting
> setenv TERM_PROGRAM Apple_Terminal
> in my .tcshrc
> It does not seem to be required by any other application anyway, so can 
> not really harm, and this way I get rid of this annoying error message.
> Do you have a better solution ?
> Francois

There are several solutions possible:

1. Remove all three lines if you don't see their utility.
(To be fair, one should point out that the middle line is not the 
nonsensical

 >>     alias settermtitle 'echo -n ""'

that you get from dumping the aliases file one the screen. In reality it 
contains control characters that hide themselves. If you look at it in 
emacs, you see that it is

     alias settermtitle 'echo -n "^[]2;\!:1^G"'

where ^[ stands for ESC and ^G for BEL or Ctrl-G. So it is really

     alias settermtitle 'echo -n "Esc-]2;\!:1Ctrl-G"'

which makes sense in that it puts the working directory in the window 
title bar.)

2. Remove the "if" and "endif" lines. I don't think an alias 
settermtitle will hurt anything that doesn't use this command.
3. If you want to keep the three lines, enclose them between

     if ($?TERM_PROGRAM) then
and
     endif

That's what Apple should have done in the first place.

-- 
Martin




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Fink-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to