You just need to output formating instructions, not code.
Read that imagining "formating instructions" as data that will be consumed by a default visualizer that the shell automatically pipes at the end of your command in interactive sessions.
I'm sure there's a general architecture for such thing. If no better choice is available, it can be done with plugins.
Read that imagining "formating instructions" as data that will be consumed by a default visualizer that the shell automatically pipes at the end of your command in interactive sessions.
I'm sure there's a general architecture for such thing. If no better choice is available, it can be done with plugins.