[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: customizing PS1 environment var with colour escape codes breaks readline



Jacobo221 wrote:

>I like customizing my PC. In my console I use the following PS1 var:
>
>PS1='\n\033[34;1m[\w]\033[0;34m\$ '
>PS1=$PS1'\033[s\033[1;1f\033[37;47;1m\033[K Terminal: \033[2m\l\033[1m\033[;19fJobs: \033[2m\j\033[1m\033[;29fUser: \033[2m\u\033[1m\033[;45fHost: \033[2m\h\033[1m\033[;61f\d  \033[2m(\A)
>\033[u'
>PS1=$PS1'\033[0m'
>
>It works fine, but the thing is that suing colour escape codes seems to break readline! I mean, if I use that PS1 variable, readline behaves strange.
>  
>
I use bash, and also have a colour-coded prompt. I see similar problems
to what you're describing. I've just learned to live with it. I only
mention this so you'll know you're not alone. Sorry I don't have a
solution for you.

-- 
Kent




Reply to: