1N/A# add to (+), delete from (-), set [=], or print (.) window title
1N/A# arguments are eval'd before printing
1N/A# title text string exported in TITLE_TEXT
1N/Afunction title # [ + | - | = | . ] title ...
1N/A typeset x t="$TITLE_TEXT"
1N/A $TITLE_TEXT) return 1 ;;
1N/A *" $x "*) t="${t%?( )$x*}${t##*$x?( )}" ;;
1N/A $TITLE_TEXT) return 1 ;;
1N/A .) print -r -- "$TITLE_TEXT"
1N/A export TITLE_TEXT="$t"
1N/A 630*) print -nr -- $'\E[?'"${#x}"$';0v'"${x}" ;;
1N/A uwin*|*vt100|xterm*) print -nr -- $'\E]0;'"${x}"$'\a' ;;