Terminal Guide

Erase Display [Dispatch] (ED)

ESC1B[5B cmd J4a
urxvt
xterm
vte
konsole
linuxvc
cmd = 0

See these sub commands:

urxvt xterm vte konsole linuxvc other
ESC [ 0 J
  Erase Display Below
ESC [ 1 J
  Erase Display Above
ESC [ 2 J
  Erase Display Complete
ESC [ 3 J
  Erase Display Scroll-back

xterm ( ✔ )

xterm has an option to scroll one screen full before clearing the screen