I tried to implement a script for this but it became pretty hard with all the various windows I had open and different programs doing different things to the buffer. I.e. what happens when you open text editor in bash? how do you tell if user is inactive or process is running like tailing logs? Mite have to leave it in to hard basket until I come up with better idea.
Служба підтримки клієнтів працює на UserEcho