onStateChanged

Receives TerminalState changes for this terminal instance.