Basically, I want a tool to interpret the raw output of commands that output ANSI color codes, terminal reset codes, etc. in the Linux/Unix/macOS terminal. Something based on https://invisible-island.net/xterm/ctlseqs/ctlseqs.html would be ideal. Does something like this already exist? If not, it wouldn't be too hard to write a tool to read codes from standard input and translate it using this page.
Asked
Active
Viewed 33 times
0
-
2This seems to be an XY problem. What would you use this for? – waltinator Oct 29 '20 at 22:44
-
There's nothing particularly stopping you writing a terminfo definition that outputs readable text instead of colour codes and other attributes – Chris Davies Oct 29 '20 at 23:23