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!

  • AFAIK this is a known bug in Emacs since IPython 5.1.0. Please file another bug report, so raising its weight. – Andreas Röhler Aug 13 '17 at 07:33
  • Yes that's correct. I applied the fix at this link: https://emacs.stackexchange.com/questions/24453/weird-shell-output-when-using-ipython-5 but it only fixes the ipython interpreter shell, not the ipdb shell. – Andrew Winterbotham Aug 13 '17 at 11:02

3 Answers3

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

0

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

carton.swing
  • 101
  • 2
0

Commit b8b587b of Nov 26, 2018 may fix this.

rocky
  • 888
  • 7
  • 26