prompt info func for screen

This commit is contained in:
Michael Wolf 2014-04-04 11:51:00 -06:00 committed by Michael Wolf
parent c79e5a97a9
commit abcf09cb91

View File

@ -51,4 +51,21 @@ if [[ "$TERM" == screen* ]]; then
eval "tab_hardstatus=$TAB_HARDSTATUS_PREFIX:$TAB_HARDSTATUS_PROMPT" eval "tab_hardstatus=$TAB_HARDSTATUS_PREFIX:$TAB_HARDSTATUS_PROMPT"
screen_set $tab_title $tab_hardstatus screen_set $tab_title $tab_hardstatus
} }
fi fi
function screen_prompt_info() {
r=""
# I'm not thrilled about this method of testing
if [ x"$TERM" = x"screen" ] ;then
if [ x"$STY" != x"" ] ; then
r="$STY"
fi
fi
if [ x"$r" = x"" ] ; then
echo ""
else
pre=$1
post=$2
echo "$pre$r$post"
fi
}