clear screen when the file is truncated while using `tail -f`

You could use a perl one-liner to filter the output from tail -f

tail -f myfile.txt 2>&1 | perl -ne 'if (/file truncated/) {system 'clear'; print} else {print}'