Add 'loop': repeat a command, waiting on input between iterations, until terminated