This behavior is present in e.g. xterm and linux console.
Currently when using CSI 2J escape sequence, screen contents are
appended to scrollback (including bottom empty lines). This is breaking
clear command, which replaces scrollback with current screen contents.
BUG: 384218