#!/bin/bash # clear screen echo -ne '\033[2J' # continuously redraw while echo -ne '\033[2H'; do "$@" done