nghung270192 / colorama

Automatically exported from code.google.com/p/colorama
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

init(autoreset=True) interfers with cmd autocomplatation #17

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Put this in a file.py

--------------------------------
from colorama import init
init(autoreset=True)
import cmd

class C(cmd.Cmd):
    def do_hello(self, line):
        pass

C().cmdloop()
--------------------------------

and run it:

python file.py

Try to hit TAB to cmd autocomplete. Don't work. If I use init instead of 
init(autoscape=True) then cmd autocomplete mode works fine.

Original issue reported on code.google.com by jjconti@gmail.com on 1 Sep 2010 at 2:49

GoogleCodeExporter commented 9 years ago
Thank you for the bug report.

I can't reproduce this right now, because I'm on WindowsXP today, and I don't 
see tab completion working *at all*, but I might be doing it wrong. Let me try 
it out on Ubuntu when I get home, see if I can reproduce there.

Original comment by tart...@gmail.com on 1 Sep 2010 at 3:39

GoogleCodeExporter commented 9 years ago
This is still a problem on Windows 7. Workaround: setting wrap=False bypasses 
the problem, but you can't use autoreset

Original comment by eric.vig...@gmail.com on 6 Nov 2013 at 1:15

GoogleCodeExporter commented 9 years ago
4 years huh? About time I took a look.

I can't reproduce this. Recently fixed issues corrected an incompatibility 
between Colorama and PyReadline - it's possible cmd was catching and silently 
ignoring the resulting exception, with the only visible symptom being that 
completion did nothing.

I'm marking this as 'can't reproduce' for the moment, but will happily re-open 
it again if need be.

Original comment by tart...@gmail.com on 19 Apr 2014 at 11:03