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

Re: Mail notification



I think the backslash may be coming from my precmd ... has something changed
that would reduce the number of backslashes required to quote a backslash?

Possibly relevant fragment; this is happening with TERM=screen:

if [[ "$TERM" = screen ]]
then
    # Set top to introduce titlebar change
    top='^'
    # Set back to end titlebar change
    back='\\\\'
    # Set aka so screen can find the prompt
    aka() { print -n 'k\\' }
    precmd() { title ; aka }
elif [[ "$TERM" = xterm* ]]
then
    # Set top to introduce titlebar change
    top=']0;'
    # Set back to end titlebar change
    back=''
    precmd() { title }
else
    return
fi

title() { print -nP "%{$top%m.%l:%2c - %t$back%}" }

-- 
Bart Schaefer                     Vice President, Technology, Z-Code Software
schaefer@xxxxxxxxxx                  Division of NCD Software Corporation
http://www.well.com/www/barts           http://www.ncdsoft.com/ZMail/




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