Mobaterm seems to like to play with putty configuration - so I found that by right-clicking on the window → change terminal settings
-> features → enable everything.
-> window → disable push erased text into scrollback
regular clear control commands
function clear() { printf '\033[2J' # clear printf '\033[H' # home }
now clear the screen and clear the scroll
source share