[英]How to move java print lines to the top of the console window?
我正在制作Java应用程序。 在控制台上运行。 我目前正在实现与Linux中clear类似的命令。
clear
我找到了一种通过此问题清除控制台的方法
我正在使用这个答案
但是,问题在于当前行不会向上移动以成为第一行。 发生的情况是清除了当前行上方的每一行,但当前行保持在原位置。
我如何将当前行移动到第一行---位于顶部?
System.out.print(“ \\ f”); 打印换页,从而清除屏幕并将光标移到顶部。
[英]How to move Java runtime console to different terminal window?
[英]How do you read a text file and print it to the console window? Java
[英]Print console window to a text file, java
[英]How to display a window on top with Java?
[英]how to clear console window in java
[英]How to keep something on top of the eclipse console in Java
[英]How to print multiple variable lines in Java
[英]How to print multiple integers on new lines in Java
[英]How to print things laterally in the console in java?
[英]How to print underlined string in console output in java
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.