Intellij-idea中的清除控制台 [英] Clearing console in Intellij-idea

查看:563
本文介绍了Intellij-idea中的清除控制台的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

谁能告诉我是否有可能在intellij-idea中清除控制台以及如何清除?

Could anyone tell me if it's possible to clear console in intellij-idea and how?

到目前为止,我已经尝试过:

So far I have tried:

System.out.print("\033[H\033[2J");
System.out.flush();

和:

Runtime.getRuntime().exec("clear");

但其中任何一个都能奏效.

but any of those did work.

我正在使用Intellij-idea Ultimate 2017 2.4和Linux Mint.

I'm using Intellij-idea ultimate 2017 2.4 and Linux Mint.

推荐答案

使用 Grep控制台插件,当它与某些输出匹配时将其清除.

Use Grep Console plugin for clearing it when it matches some output.

这篇关于Intellij-idea中的清除控制台的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆