[IPython-user] Tab complete problem under Cygwin
travis_caldwell2000 at yahoo.com
Fri Jun 25 16:55:41 CDT 2004
I installed the cygwin rxvt package and it also displays the same
Here is the output of 'echo $TERM' for all three shells:
In my Prompts.py file, the line you mentioned is at line 47 and it
InputColors = ultraTB.InputTermColors # just a shorthand
I changed it as you suggested and now the problem has gone away.
I've only scratched the surface of what IPython has to offer, but so
far everything else has worked for me under cygwin.
--- Fernando Perez <Fernando.Perez at colorado.edu> wrote:
> Travis Caldwell wrote:
> > I'm running the shell via the desktop shortcut which points to
> > cygwin.bat.
> > cygwin.bat chdirs to \cygwin\bin and then runs:
> > "bash --login -i"
> Could you please 'echo $TERM' here so I know what it says?
> > The fact that the problem only occurs with color tunred on makes
> > think that someone is doing math based on the number of bytes in
> > current input line. With colors off, the number of bytes equals the
> > number of printable characters. With color on, the input line can
> > contain non-printing escape sequences which throws off the math.
> > Since this problem occurs in both bash.exe and xterm, it seems
> like an
> > interaction between ipython and the readline dll which comes with
> > cygwin python.
> That's true, as is your guess on the line length. There are indeed
> characters inside the strings. It might be possible to trick
> cygwin's shell
> into working correctly.
> But I'd really like to know what terminal emulator cygwin gives you
> default, and also if you get the same problem under rxvt. I have a
> memory that _old_ xterms had this problem even under Linux ages ago,
> and it's
> possible that cygwin ships with the same.
> > I looked at Gary Bishop's pacakge and it seems like it was meant
> for a
> > pure windows python rather then under cygwin.
> That is correct.
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
More information about the IPython-user