modified terminal to redirect output of top