Can we support using moor in a psuedo terminal.
Seems this package currently relies on a real terminal for functionality. It would be highly beneficial to support custom io.writer implementations and functions like onWindowChange. This would enable:
- The use of pseudo-terminals, expanding the package's applicability to environments without direct terminal access.
- Potential browser embedding, allowing for interactive terminal-like experiences within web applications.
Let's pretend moor already did support pseudo terminals.
Can you give a concrete command line example for how you would like to use it?
Or if this is for the embed API, can you give a code example of how you would like to call moor?
What moor does is basically print lots of ANSI escape codes to stdout, given that stdout is a terminal.
Here's how moor determines whether or not stdout is a terminal:
https://github.com/walles/moor/blob/3b9f440aec93731fe07fc2f4e6152cc18ae68c55/cmd/moor/moor.go#L681