I know 'clear' command clears current screen, but the cleared contents just scrolled up. Is there a way to clear all cleared buffer contents? I'm figuring this to prevent scrolling up on Terminal.
---(edit)---
I'm finding a way which can be used in shell script. Or program.