Questions tagged [ansi]

8 questions
7
votes
1 answer

ANSI escape sequences in compilation-mode

When you run various "modern" compilation or test tools you get ANSI codes in the output. I'd like to either render them correctly (ideally) or otherwise strip them. I've tried applying either term-mode-hook to the compilation-minor-mode as…
Mark
  • 1,409
  • 1
  • 15
  • 20
6
votes
2 answers

ANSI / xterm font-locking

I have a buffer with terminal escape codes in it and I want them to be colored: I was able to do this with (ansi-color-apply-on-region (point-min) (point-max)): However, my file is really big and that command is really slow. Is there any mode…
Jackson
  • 1,218
  • 9
  • 19
5
votes
3 answers

ipdb displaying ansi color escape sequences

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…
3
votes
1 answer

How to change visual appearance of ANSI colors for *shell* buffers running on "GUI Emacs"?

OS: Linux 4.19.0-16-amd64 #1 SMP Debian 4.19.181-1 (2021-03-19) x86_64 GNU/Linux Emacs: GNU Emacs 28.0.50, with a solarized theme from here Terminal emulator: terminator 1.91, with a solarized (dark) palette The displays below were done by running…
kjo
  • 3,145
  • 14
  • 42
2
votes
1 answer

Escape sequences like [<8;38;34m being inserted into my document when I middle click

I recently updated to emacs 25.1, and I'm noticing that sometimes escape sequences like [<8;38;34m or [<8;20;27m are being inserted into my document. I use emacs in the terminal (emacs -nw). I use iTerm2 on macOS. I haven't yet figured out what I do…
asmeurer
  • 1,552
  • 12
  • 30
1
vote
1 answer

How can I apply ansi-color to complete buffer?

I am using following code to apply colorize text in emacs, such as for ^[ characters to apply color. In order to use this code I have to select text to apply it reference: https://unix.stackexchange.com/a/19505/198423 (defun…
alper
  • 1,238
  • 11
  • 30
1
vote
1 answer

vt100 codes in man-mode

Emacs in this particular installation doesn't parse hyphens in Man-mode. I found the definition and initialization of Man-filter-list, but I don't really know what to do with it, as I cannot really see well the code being displayed incorrectly. I…
wvxvw
  • 11,222
  • 2
  • 30
  • 55
0
votes
1 answer

OSC 8 links not working in the Comint mode

According to the NEWS for Emacs 28.1 (Ctrl-f "OSC 8, for hyperlinks"), the comint-mode supports the OSC 8 styled links. But when I compile (interpret) a file "test.py" with…
scribe
  • 930
  • 4
  • 15