In repil how do you clear the screen when using java?
screwlosse (1)

I know that you can use System.out.print("\f"); to clear a screen when using other java writing applications but it doesn't work on repil

You are viewing a single comment. View All
XavierDD (97)

One way is to use this code.

Please Upvote my comment if this is helpful

theangryepicbanana (1710)

@XavierDD actually do \033[0;0H not \033[H

mat1 (4406)

@theangryepicbanana 0;0 are the default arguments and do not need to be specified.


This works with Java code in a REPL.

XavierDD (97)

@PAULHANNA , thanks. Wasn't expecting for people to look at older stuff on here.