This idea was explored a long time ago! https://acko.net/blog/on-termkit/
I personally think something like Jupyter where the "rich display" is actually a separate channel makes more sense than pipes for rich content.
I personally think something like Jupyter where the "rich display" is actually a separate channel makes more sense than pipes for rich content.
The problem largely still is the effort of rewriting all/enough userspace tools to actually use the type system to make it worthwhile, or the even less appealing approach of maintaining parsers/shims/wrappers for things that allow it to work.