question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ANSI color support in edit buffer

See original GitHub issue

Now ANSI colors are supported in the debug console, I’d like to see it in the editor, something like SublimeANSI.

  • VSCode Version: 1.19
  • OS Version: macOS

Steps to Reproduce:

  1. open a file which contains ANSI color escape sequence, or simply ls --color | code
  2. colorless raw ANSI code displayed, rather than colored text.

Reproduces without extensions: Yes

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:393
  • Comments:48

github_iconTop GitHub Comments

43reactions
TobiasFallercommented, Jul 20, 2020

I made a VS Code extension since I could not find one which provides this feature. It’s not perfect, but enough for my use-case. If someone wants to have a look, the repository is here at vt100-syntax-highlighting and the extension VT100 Syntax Highlighting is already in the VS Code Marketplace.

Preview

22reactions
bheimbaughcommented, Sep 12, 2019

I was just looking for this feature too. My terminal can log to a text file, but when I view the file in VSCODE it’s full of escape sequences. Would be nice have a way to either hide them or render them.

Read more comments on GitHub >

github_iconTop Results From Across the Web

region - How can I apply ansi-color to complete buffer?
If you want to do it interactively then C-x h followed by M-x ansi-color-apply-on-region-int . Or use this command: (defun ansi-color-on-buffer ...
Read more >
ANSI Coloring in Compilation Mode - Stack Overflow
The function was trying to colorize the whole buffer, although it should filter only the chunk that is spilled from a process. Although...
Read more >
Ansi Color - EmacsWiki
It supports the standard ANSI color protocol plus XTERM 256 colors. It implements a state machine to handle ANSI SGR sequences rather than...
Read more >
Build your own Command Line with ANSI escape codes
The most basic Ansi escape codes are those involved in rendering text. These let you add decorations like Colors, Background Colors or other ......
Read more >
ANSI escape code - Wikipedia
ANSI escape sequences are a standard for in-band signaling to control cursor location, color, font styling, and other options on video text terminals...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found