Update cells of a table output in terminal in Java
I am writing a java program that will run tasks in parallel, which I want to report the status of each task in a table in terminal as it is running. so i would I have something like:
TaskName|StartTime|EndTim开发者_JAVA技巧e
Task1 |12:20 |23:56
Task2 |12:23 |--:--
Task3 |--:-- |--:--
And as each task is kicked off and finished, the table would update in place... Is there any easy way to do this in Java? I saw some answers about using \r instead of \n (probably hard for multiline purposes), or using Java Curses library (which i cannot find any documentation on).
Any pointer is appreciated!
You can try CHARVA, but it's a little old (latest release: 09/11/2006). It should do the job though.
精彩评论