Connect to a tmux session (optionally specifying the window). On exit cycle through other tmux windows.
Requirements:
ksh93, but probably any other bourne based shell could be used as well.
List availablet tmux windows, and connect to one. Optionally may use tmxcycle.
Requirements:
tmux> 1.6