[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bash two line prompt, after reaching the bottom of terminal color going
From: |
Musse Abdullahi |
Subject: |
bash two line prompt, after reaching the bottom of terminal color going past the end of prompt |
Date: |
Thu, 22 Mar 2018 13:34:51 -0400 |
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 Thread] |
Current Thread |
[Next in Thread] |
- bash two line prompt, after reaching the bottom of terminal color going past the end of prompt,
Musse Abdullahi <=