Utility to diagnose terminal problems