Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: xterm title setting



According to jarausch@xxxxxxxxxxxxxxxxxxx:
> Maybe the print -Pn doesn't get where it's assumed to.

I use this:

-=-=-
if [ x$TERM != x ]; then
    if [ $TERM = xterm  -o $TERM = xterm-color ]; then
        chpwd() {
            print -n -P "\033]2;%n@%M:%/ - tty%l\007\033]1;tty%l@%m\007"
        }
    fi
    PS1="%h [%T] %B%n%b@%m:%B%2.%(#.#.>)%b "
    export PS1
-=-=-
-- 
Ollivier ROBERT -=- Eurocontrol EEC/ITM -=- roberto@xxxxxxxxxxxxxx
The Postman hits! The Postman hits! You have new mail.



Messages sorted by: Reverse Date, Date, Thread, Author