This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Issue, most possibly with new Readline


> After installing the latest readline updates (that fixed the earlier
> prompt issue) I'm finding an issue with the vi command line interface.
> 
> Basically, when I hit [ESC] then fwd slash (/) to search through the
> history, it throws my cursor back to get beginning of the line (on top
> of the prompt) and acts weird.  This is in mrxvt, now if I do the same
> in the basic cygwin bash shell i get this:
> 
> v468929@TRD-CAX40JXD ~> / 
> �������������������������

I could not reproduce this with a quick check (I normally
use set -o emacs, so I am practically clueless about
vi mode).  Also, I normally use a multiline prompt, which
may be impacting things.  I tried:

$ echo $PS1
\[\e]0;\w\a\e[0m\]\n\[\e[32m\]\u@\h \ \[\e[35m\](${PIPESTATUS[*]}) \[\e[33m\]~\[\e[0m\]\n\$
eblake@eblake (0) ~
$ echo hi
hi
eblake@eblake (0) ~
$ [ESC]/e[ENTER]       # those four keystrokes rewrite this line as:
$ echo hi         # with the cursor on the e


What is your PS1?  What settings do you have in your ~/.inputrc?

One other thing to be aware of - readline 5.1 official patch 2
was released this weekend, so I need to make a 5.1-3 cygwin
release soon to incorporate it (it dealt with initialization issues
with line-wrapping).  I don't know if your bug would have been
fixed by official patch 2, or whether I should spend more time
investigating this first.

--
Eric Blake
volunteer cygwin readline maintainer

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]