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.