summaryrefslogtreecommitdiff
path: root/10_Environment.zsh
diff options
context:
space:
mode:
Diffstat (limited to '10_Environment.zsh')
-rw-r--r--10_Environment.zsh12
1 files changed, 11 insertions, 1 deletions
diff --git a/10_Environment.zsh b/10_Environment.zsh
index 66774ce..6dfbe78 100644
--- a/10_Environment.zsh
+++ b/10_Environment.zsh
@@ -27,7 +27,17 @@ C_="%{$c_"
_C="$_c%}"
unset has_termcaps
-[ $TERM = "rxvt-unicode" -o $TERM = "screen" ] && has_termcaps="true"
+case "$( _process_tree )" in
+ *":: screen ::"*)
+ # Discards termcaps even if screen is launched from an urxvt..
+ ;;
+ *":: urxvt ::"*|\
+ *":: tmux ::"*)
+ has_termcaps="true"
+ ;;
+ *)
+ ;;
+esac
T_=${has_termcaps:+$termcap[as]}
_T=${has_termcaps:+$termcap[ae]}
_tq_=${${has_termcaps:+"q"}:-"-"}