+# Test for "modern" terminal
+function axzsh_is_modern_terminal {
+ [[ "$TERM" = screen* ]] && return 0
+ [[ "$TERM" = tmux* ]] && return 0
+ [[ "$TERM" = xterm* ]] && return 0
+ return 1
+}
+
+# Resize terminal window (when possible)
+function axzsh_resize_terminal {
+ printf '\e[8;%d;%dt' "$2" "$1"
+}
+