You are not logged in.

#1 2005-08-09 22:48:35

shadowhand
Member
From: MN, USA
Registered: 2004-02-19
Posts: 1,142
Website

Terminal window title not being set? [zsh/urxvt]

I use zsh in urxvt as my vt, and after 3 days, I've all but given up on how to set the window title properly. I have some lines in my .zshrc that _should_ do it, but don't.

######################################################################
# Decide whether to set title for the screen or window ###############
######################################################################
if [[ "$STY" != "" ]]; then
    local STITLE='%{ kzsh %}'
else
    local STITLE=''
fi


case $TERM in
    xterm*)
      PR_TITLEBAR=$'%{e]0;%(!.-=*[ROOT]*=- | .)%n@%m:%~ | ${COLUMNS}x${LINES} | %ya%}'
    ;;
    *)
      PR_TITLEBAR=''
    ;;
esac

My TERM is set to xterm-xfree86, and I've tried xterm-color and xterm as well.

Also, does anyone have zstyle completion line for pacman? It's the only program I use that zsh doesn't auto complete. sad

Thanks.


·¬»· i am shadowhand, powered by webfaction

Offline

#2 2005-08-16 15:04:14

shadowhand
Member
From: MN, USA
Registered: 2004-02-19
Posts: 1,142
Website

Re: Terminal window title not being set? [zsh/urxvt]

Found it.

Setting window title dynamically in .zshrc:

  case $TERM in
      xterm*)
          precmd () {print -Pn "e]0;%n@%m: %~a"}
          ;;
  esac

·¬»· i am shadowhand, powered by webfaction

Offline

#3 2005-08-16 16:14:56

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: Terminal window title not being set? [zsh/urxvt]

I was gonna say "try man 7 urxvt"... i think urxvt uses a different command than xterm and it's ilk

Offline

#4 2005-08-16 16:52:22

paranoos
Member
From: thornhill.on.ca
Registered: 2004-07-22
Posts: 442

Re: Terminal window title not being set? [zsh/urxvt]

I found some zsh pacman completion in the mailing list. It's not perfect, but it's not bad either. It includes abs, convertdb, gensync, makepkg, makeworld, pacman, and updatesync completions.

i don't remember who wrote it, so i can't give credit...

hmm, well i found it on the gmane archives smile
here's a link

maybe we should put this on AUR and user-contributions or something.

Offline

#5 2005-08-16 20:45:38

klapmuetz
Member
From: Germany
Registered: 2005-03-19
Posts: 75

Re: Terminal window title not being set? [zsh/urxvt]

Your prompt is huge!

Another Phil!'er ;-)


Hello girls, I like rock climbing, mountain biking and rafting! Write me!

Offline

#6 2005-08-17 03:59:49

shadowhand
Member
From: MN, USA
Registered: 2004-02-19
Posts: 1,142
Website

Re: Terminal window title not being set? [zsh/urxvt]

Thanks paranoos, that worked great.


·¬»· i am shadowhand, powered by webfaction

Offline

Board footer

Powered by FluxBB