[prev in list] [next in list] [prev in thread] [next in thread] 

List:       bash-bug
Subject:    bash two line prompt, after reaching the bottom of terminal color going past the end of prompt
From:       Musse Abdullahi <yeselambal () gmail ! com>
Date:       2018-03-22 17:34:51
Message-ID: CACoz8m=ZhqMczpreoxGvX8q7hM1OrQoFPHH2w78wmjD9eXNjLQ () mail ! gmail ! com
[Download RAW message or body]

How to reproduce bug:

calculate_prompt1(){
    host="my-linux"
    git_branch="a very very very very very very very very very very
very very very very long prompt"
    prompt="@$host \\w : \[$(tput bold)$(tput setab 1)$(tput setaf
7)\]${git_branch}\[$(tput sgr0)\]\$ "
    export PS1="$prompt"}

PROMPT_COMMAND="calculate_prompt1;"

If you have to, resize your terminal so the prompt goes on two lines.

Then keep pressing enter until the bottom of the terminal.

keep pressing enter past the bottom of the terminal and you will see
that the background color doesn't

clear after the end of prompt

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic