Actually blank the line after emitting our title in prompt command, instead of trying...
authorIain Patterson <me@iain.cx>
Wed, 10 Dec 2008 18:00:07 +0000 (18:00 +0000)
committerIain Patterson <me@iain.cx>
Wed, 10 Dec 2008 18:00:07 +0000 (18:00 +0000)
git-svn-id: https://svn.cambridge.iain.cx/profile/trunk@165 6be0d1a5-5cfe-0310-89b6-964be062b18b

.profile.d/prompt.bashrc

index cf133c7..6ee910e 100644 (file)
@@ -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