简体   繁体   中英

Java Live Command line

Is there a library or way to have a live command line that instead of printing out each line works like a graphics library where you can just update one element if it has changed?

Example of usage would be to display current time. Instead of refreshing the cmd and appending more things to it, you just update the current time object and reprint or something.

Yes, there is, although it is not 100% pure Java (despite of what the web page says):

http://code.google.com/p/lanterna/

It works very well and it is easy to use. Development is a bit slow but the developer does answer questions. I recommend checking the Terminal Layer, which is perhaps what you need.

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