To use this library in your code:
import io.stdiohost package provides closeable, terminal-aware versions of the same streams. Both packages access the same underlying platform streams.host.stderr when closing the stream or querying whether it is a terminal is required.host.stdin when closing the stream or querying whether it is a terminal is required.host.stdout when closing the stream or querying whether it is a terminal is required.