Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OSX - going into console and typing causes draw issues (console is losing focus?) #191

Closed
mlubimow opened this issue Jun 28, 2016 · 4 comments

Comments

@mlubimow
Copy link
Contributor

When debugger window is opened, after I go to console and I try to type something, I'm getting issues like this:

http://i.imgur.com/zPjyAMP.png

After it gets corrupted, it looks like Pudb is not getting any events. If I press for example CTRL-X, it just prints ^X in console. If I press Enter then, it goes to code window but still I cant see it because of drawing issues (but I know it does go to code because I'm able to press Q and Enter to exit from debugger).

After some investigations I found that importing readline module at the top of debugger.py file fixes the issue (I found it because going to ipython console was fixing the issue, so step by step I found that this is somehow fixing the issue).

So, easy fix is to add import readline, but its indirect solution.

@inducer
Copy link
Owner

inducer commented Jun 28, 2016

Pudb relies on something called the alternate screen to be supported in your
terminal. From your screenshot, it does not look like that's the case. What
terminal emulator are you using?

@mlubimow
Copy link
Contributor Author

ITerm2 3.0+, with
GNU bash, version 4.3.42(1)-release (x86_64-apple-darwin15.4.0), with
environment variable TERM=xterm-color

@inducer
Copy link
Owner

inducer commented Jun 28, 2016

@asmeurer, any ideas?

@asmeurer
Copy link
Collaborator

This is the same issue as #166.

That's interesting that importing readline makes a difference. It's already imported here.

Let's continue the discussion at #166.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants