This is all in reference to the 'rep' program posted. The shell CANNOT duplicate its function! Rep doesn't clear the screen. It does a 'soft clear' and repaint with curses-stuff. Only what changed in the command output needs to be repainted. That is very different than the shell script with clear if you are running at less than 9600 baud.