joekepley/osx-terminal-theme-ssh — pull request #2 by Mactory (2014-09-11 22:03:43+00:00)
Title: Identification of tab by the start script to allow reset of the correct tab even in the background

The applescript now returns the window id and the tabs tty for the start script. These are passed into the stop script as parameters. This allows the stop script to identify the original tab and reset its theme even if it is not in the foreground. This could happen if, i.e. the connection to the server is lost or the ssh session is terminated.