Fixed: clear screen only when the standard output is used