[Top][All Lists]

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

readline escaping problems

From: dog
Subject: readline escaping problems
Date: 23 Jan 2008 09:53:49 GMT
User-agent: slrn/ (Darwin)

i have an install of a recent version of readline (5.2.007) / bash (3.2.25)
which is causing problems with horizontal scrolling positioning because of
escape sequences in my PS1 prompt.

i have read the faq, but the fix suggested does not work for me.

here is my PS1 prompt:

  PS1="\n\e[39m\u\e[00m \e[00;34m[\w]\e[00m "

according to the faq this should be encoded as:

  PS1="address@hidden \[\e[00;34m\][\w]\[\e[00m\] "

however this does not work either, with horizontal-scroll-mode on or off -
positioning is still screwed up.

also note that the first prompt works perfectly well with readline 4.2a /
bash 2.05a, but *the second one does not*.

any suggestions?

reply via email to

[Prev in Thread] Current Thread [Next in Thread]