Open dpc opened 7 years ago
If it's only stdout and stderr to ever be supported, I guess a simple enum
that implements Write
would do.
Hmm... yes, that's rather annoying. Unfortunately, I can't think of a backwards compatible way to fix it but I'll consider fixing it in a backwards incompatible release. In the meantime, we don't plan on adding more terminal types (in this version of term) so you could always implement that enum.
Worse, this is my fault: https://github.com/Stebalien/term/pull/29 😢.
It's not blocking me or anything, just a feature request then. :)
Our lives are full of API regrets sealed by semver restrictions. :D
Hi,
I wonder how to store and pass around
Terminal
of any type: no matter if it logs to stdout, stder, on Windows, or elsewhere.Like Box<Terminal>
, that because oftype Output
seems currently impossible. I wish I could haveBox<Terminal<Output=Write>>
or something like that.Am I missing something, and if not, could some solution for this be provided?