This sequence moves the cursor up by a line. The column position of the cursor remains unchanged. This function is used to clear the remaining screen starting at and including the current cursor position. The cursor stays at the same position. This ESC sequence deletes the rest of the line in which the cursor is located.
Deletion takes place starting at and including the current cursor position.
The cursor position itself is not changed. This makes it possible to insert a blank line at the current cursor position. The cursor is at the beginning of the new line after the insertion has taken place. This function deletes the line in which the cursor is located and moves the rest of the screen toward the top. Consequently, the lowest line on the screen becomes clear.