From d5880063af930084c3ac1cc8f756a9db0e2cbb71 Mon Sep 17 00:00:00 2001 From: Iain Patterson Date: Wed, 10 Dec 2008 18:00:07 +0000 Subject: [PATCH] Actually blank the line after emitting our title in prompt command, instead of trying to hackily overwrite what we'd already printed. git-svn-id: https://svn.cambridge.iain.cx/profile/trunk@165 6be0d1a5-5cfe-0310-89b6-964be062b18b --- .profile.d/prompt.bashrc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.profile.d/prompt.bashrc b/.profile.d/prompt.bashrc index cf133c7..6ee910e 100644 --- a/.profile.d/prompt.bashrc +++ b/.profile.d/prompt.bashrc @@ -27,9 +27,8 @@ if ps -o comm= -p $PPID 2>/dev/null | grep '^vim*$' &>/dev/null; then trap "echo -ne '\\033]0;$info\\007'" exit info="$info$vimchild" fi -blank=$(echo "$info" | sed 's/./ /g') if [ "${TERM##screen}" = "$TERM" ]; then - export PROMPT_COMMAND="echo -ne '\033]0;$info\007\r$blank \r'" + export PROMPT_COMMAND="echo -ne '\033]0;$info\007\r\033[K'" else export PROMPT_COMMAND='echo -ne "\033k\033\\"' fi -- 2.20.1