What Is Your Favorite Terminal Setup?

Matthew Walker mwalker at kydance.net
Thu Oct 14 09:42:36 MDT 2010


On Thu, October 14, 2010 9:26 am, Matthew Walker wrote:
> I've been thinking about it, and I think it may go back to how my prompt itself is set
> up. Need to research. But I think my systems' bash profile only sends that title if it
> detects what it deems to be a 'compatible' terminal type. So it's possible it's not
> including screen in that list.

Hmmm. So. Theory partly correct. Does anyone see anything wrong with this?

###########################
case ${TERM} in
  xterm*|rxvt*|Eterm|aterm|kterm|gnome*|interix)
    PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\007"'
    ;;
  screen)
    PROMPT_COMMAND='echo -ne "\033_${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\033\\"'
    ;;
esac
###########################

That's in my global bashrc, but it is most definitely not setting the title of my tabs
in screen, and I'm not sure why. I've gone over the man pages, and can't figure out what
I would need to do for this to happen. I have this in my .screenrc right now:

###########################
hardstatus alwayslastline
hardstatus string '%{= kG}[ %{G}%H %{g}][%= %{=
kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B} %d/%m %{W}%c %{g}]'
###########################

Any help / advice would be appreciated. :)

-- 
Matthew Walker                          HAM Call Sign: N7TOX
Kydance Hosting & Consulting, Inc. - http://www.kydance.net/
PHP, Perl, and Web Development - Linux Server Administration


More information about the PLUG mailing list