我没有找到任何清除 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();
}
}
我认为我们在抢先体验阶段还没有提供该功能。有人有主意吗?
Use the Control Key+L or l (lower case L) to clear the JShell console.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)