Terminal control/Clear the screen: Difference between revisions

Content added Content deleted
m (→‎Shell command: Don't think any shell is involved.)
(Added Java)
Line 192: Line 192:
Note: this is specific the java+gdi based J ide.
Note: this is specific the java+gdi based J ide.
<lang j>smwrite_jijs_ ''</lang>
<lang j>smwrite_jijs_ ''</lang>

=={{Header|Java}}==
Using the ANSI escape sequence:
<lang java>public class Clear
{
public static void main (String[] args)
{
System.out.print("\033[2J");
}
}
</lang>