Clear the history and write a marker line.