termux-style icon indicating copy to clipboard operation
termux-style copied to clipboard

Weird colors on reverse search

Open alek3y opened this issue 4 years ago • 0 comments

To reproduce just set your PS1 on .bashrc to one with some background colors (and yes I'm using \e[0m to reset at the end), and do CTRL+R. Here's an example of one: PS1="\[\e[42m\]\u@\h\[\e[0m\]\$ " (It happens without the \[ and \] too).

I noticed that if you remove the space at the end after the \$ it won't happen. I also checked if this was a Termux problem by trying this without styling but it doesn't happen (on another phone tho, also about that maybe you should add a reset option).

Screenshot (here I'm not using powerline):

alek3y avatar Aug 12 '20 20:08 alek3y