[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re:xterm&title



Hello, to all of you

What I have understand is that thereis a little problem with terminfo, that's why some OS could not recognize /033 and /007.The solution is probably using the (Crtl-V then press Esc) instead of /033 and (Crt-V then Ctrl-G) instead of /007, at least it works for me

In my .tcshrc (or /etc/skel/.tcshrc)

switch ($TERM)
case "{dtterm,xterm*,rxvt*}":
alias precmd 'echo -n "ESC]0;${USER}@${HOST} `date +%A\ \[%d\]\ \ %B`^G"'
set prompt="%n:%c03%#"
breaksw
default:
set prompt="%n:%c4%#"
breaksw
endsw

This is tested in solaris 7,Debian,FreeBSD, RedHat

Really good trick for anyone who works simultaneously to many systems !!

 


Reply to: