mfussenegger / nvim-dap

Debug Adapter Protocol client implementation for Neovim
GNU General Public License v3.0
5.38k stars 190 forks source link

[feature] Purge ansi color escape codes in repl terminal #1291

Open a73s opened 1 month ago

a73s commented 1 month ago

Problem Statement

would fix this. particularly gdb cannot use the integrated terminal (or at least I cannot figure it out).

Possible Solutions

No response

Considered Alternatives

not sure if this is possible but color support would be even better

mfussenegger commented 1 month ago

I had considered this but it would also break colorization as described in https://github.com/mfussenegger/nvim-dap/issues/1114#issuecomment-2013233290 and there might be cases where you actually want to see the raw output.

You could now also customize the output handler (:h dap.defaults see on_output) to add the logic that removes the ansi color escape codes.

Keeping this open to get some more feedback if people want this - I'm particularly interested if anyone has strong feelings against doing this.