The TerminalExt interface is implemented by Terminals and provides access to the Terminal's internals.
TerminalExt
Terminal