[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bash long prompt, color going past the end of prompt after reaching
From: |
Greg Wooledge |
Subject: |
Re: bash long prompt, color going past the end of prompt after reaching bottom of terminal |
Date: |
Fri, 23 Mar 2018 08:26:28 -0400 |
User-agent: |
NeoMutt/20170113 (1.7.2) |
On Fri, Mar 23, 2018 at 12:36:22AM +0200, Ilkka Virta wrote:
> I get the same with '4.4.12(1)-release' too, but it doesn't seem related to
> Bash or the prompt. I can get it with just a printf, the colored part just
> needs to get wrapped by the end of line.
>
> printf "%100s $(tput setab 1)colored part$(tput sgr0) normal again\n"
>
> If the screen scrolls, the background color on the last character gets
> copied to the next line.
Ahh. In that case, it's a bug (or undesired feature) of your terminal
emulator, and you should address the bug reports in that direction.