Java-9 JShell コンソールをクリアするコマンドが見つかりませんでした。また、このプログラムを使用して JShell コンソールをクリアしようとしましたが、どちらも機能しません。
import java.io.IOException;
class CLS {
public static void main(String... arg) throws IOException, InterruptedException {
new ProcessBuilder("cmd", "/c", "cls").inheritIO().start().waitFor();
}
}
早期アクセスではまだその機能を利用できないと思います。誰でもアイデアを得ましたか?