Terminal control/Clear the screen: Difference between revisions
Content added Content deleted
Line 200: | Line 200: | ||
{ |
{ |
||
System.out.print("\033[2J"); |
System.out.print("\033[2J"); |
||
} |
|||
}</lang> |
|||
An alternative sequence: |
|||
<lang java>public class Clear |
|||
{ |
|||
public static void main (String[] args) |
|||
{ |
|||
System.out.print("\033\143"); |
|||
} |
} |
||
}</lang> |
}</lang> |