简体   繁体   中英

How to do clear screen on Apache Felix Gogo shell?

I'm using Liferay DXP. When using the Apache Felix gogo shell, I cannot find how to do a clear-screen? Just like cls in windows and clear on Mac / Linux. Screen grows very long and I have to do close the terminal manually and then open it up again. Hitting CTRL / CMD + C on Windows / Linux will stop the OSGI server and I had to restart my server again, which is never my option.

If you are using the Gogo JLine shell ( org.apache.felix.gogo.jline ) then the clear command works.

However if you are using the plain shell ( org.apache.felix.gogo.shell ) there is no way to do this... except hitting Return lots of times I suppose.

I'm posting my own answer :-) On command line there is no way. But if you're starting the server in Eclipse, you can see the gogo shell by right-clicking the server and Open GOGO shell . In eclipse terminal you can clear it BY clicking Clear terminal icon located on the top right of terminal window.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM