Just use tmux no?
How about running this inside tmux?
How would you know if a tab that isn't frontmost is waiting for input or complete or whatever?
How about running this inside tmux?