Have static lines in console

I am wondering how to in Java set up the console so the first couple lines in the console will always be there and contain info about the program. So for example I would want the progam to display the first line in the console as: JavaProgram Version: 0.5b

and even if the console spams new lines that line will stay at the top. Another good example would be how cgminer shows the most relevant data at the top.

My initial approach for tackling this issue would be to create a loop that every tick send enough lines to exactly fill the console size; however, I do not know if it is possible to get the console height.

Any help would be awesome! Thank you, Kyle

Answers


That is what the Curses family of libraries is all about; so I'd use Java Curses Library,


Need Your Help

Overloading the "Set to equal to" operator

c# .net struct operator-overloading

I was reading a Business Primitives by CodeBetter.com and was toying around with the idea.