setTerminalListener

Sets the current implementation of TerminalListener. This will replace any previous TerminalListeners that have been registered.