# It works with screen and xterm. If screen is running in X11 (DISPLAY is set)
# and stumpwm is used (it's tested if stumpish is available) then the window
# title is also set in stumpwm using stumpish.
-if [[ $TERM == screen || $TERM == xterm* ]]; then
+if [[ $TERM == screen* || $TERM == xterm* ]]; then
# Set to a non empty value to reset the window name in the next precmd()
# call.
window_reset=yes
# Sets the window title. Works with screen and xterm.
window_title() {
- if [[ $TERM == screen ]]; then
+ if [[ $TERM == screen* ]]; then
print -n "\ek$1\e\\"
# Update window name in stumpwm if running screen in X11 and when