prompt info func for screen
This commit is contained in:
parent
c79e5a97a9
commit
abcf09cb91
@ -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
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user