tty, test: refactor exports and add coverage
This PR updates the tty
module's exports
to be more aligned with other core modules. It also adds test coverage (I believe to 100%).
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines
Affected core subsystem(s)
tty, test