Trying to emulate the "clear" command (bash) in java