The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #6 (permalink)  
Old 06-23-2009
CRGreathouse CRGreathouse is offline
Registered User
  
 

Join Date: Mar 2009
Posts: 104
Thumbs up

Quote:
Originally Posted by fpmurphy View Post
Are you using escape sequences to create your prompt? If so they will interfer with readline unless you use the \[ escape to begin a sequence of non-printing characters,
and the \] escape to signal the end of such a sequence.
That's it!

I wasn't able to fix the escape sequences by adding \]: the program actually displays a ] and readline fails all the same. But if I remove the escape sequences entirely (giving up on bolding text and such) the editing works!

Thanks a lot -- this is really going to make using this program much easier.