deleteln()
deletes the line and moves the rest of the text up. clrtoeol()
clears to the end of the current line.
You need to use int move(int y, int x)
to position the cursor at the start of each of the 2 top lines and then call clrtoeol()
.
clear()
clears the whole window