5

I'm trying to set up realgud using ipdb with emacs. The problem is that the following is displayed at the command prompt (running realgud:ipdb): [6n[Jipdb> [6D[6C[6D[J[6n[Jipdb> [6D[6C

From googling around, I came across various links that I think explain what the problem is, but the solutions therein didn't fix my problem:

https://stackoverflow.com/questions/25094855/visible-ansi-escape-sequences-when-running-emacs-shell-these-are-not-ansi-color

Why does *compilation* buffer show control characters?

Any help would be greatly appreciated!

2

Just as an update, I managed to fix the problem by adding the following into an executable file in my PATH:

#!/bin/bash
ipython --simple-prompt -i -c "%run -d $@"

Then in emacs when running realgud:ipdb, when asked what command to use, just switch out ipdb with whatever you name the executable file.

On OS X you will need the following package though: https://github.com/purcell/exec-path-from-shell

  • --simple-promt avoids the garbage but doesn't allow multiline-input :( – Andreas Röhler Aug 15 '17 at 9:34
  • Yeah it's not really a fix I guess, just a workaround. – Andrew Winterbotham Aug 15 '17 at 9:35
  • I will file a bug report when I get a chance. – Andrew Winterbotham Aug 15 '17 at 9:35
  • #!/bin/bash ipython --simple-prompt -i -c "%run -d $@" -->thanks it works for me. emacs25.2+ spacemacs settting+ipython 6.2.1+ ipdb 0.10 – Minwook Han Feb 19 '18 at 17:43
0

in spacemacs, add the shell layer, will solve this problem: enter image description here

0

Commit b8b587b of Nov 26, 2018 may fix this.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.