Showing current directory in Terminal's title, using tcsh I'd like the title bar of Terminal to always show the directory I'm in.  I don't want it shown in the prompt.  I found some magic trick code online, and have this in my .tcshrc:


set prompt = "%B%m:%n %?====>%b "
alias cwdcmd 'echo -ne "\033]0;$cwd\007"'


It sort of works except for two things: 1) the cwd isn't shown in the title bar, and 2) the cwd along with some gibberish is printed at the command line.  I figured maybe the quoting wasn't right, or some other syntax issue, but experimenting didn't lead to improvement.   

For reasons unspecified, I must use tcsh not bash. The latter, I can get working fine.
This is the prompt I use in tcsh.  It sets the window title to the full path (which as Chris Page answered, gains extra functionality in Lion).  The prompt itself is essentially [$HOST:$PWD] $USER% using tcsh % syntax.

set prompt = '%{\e]2;%~\a%}%S[%m:%c3] %n%#%s '