This happened because window_preexec() is only defined if TERM is
screen*, xterm* or rxvt*. On other TERMs the call to window_preexec() in
"RUN COMMANDS" failed.
# Add the preexec() and precmd() hooks.
add-zsh-hook preexec window_preexec
add-zsh-hook precmd window_precmd
# Add the preexec() and precmd() hooks.
add-zsh-hook preexec window_preexec
add-zsh-hook precmd window_precmd
+else
+ # Fallback if another TERM is used, necessary to run screen (see below in
+ # "RUN COMMANDS").
+ window_preexec() { }