2

Is there a way to get the size of a command prompt in Java? I want to draw characters on the outside of the prompt like this (please see photo)

I've tried using java.util.Scanner and it didn't work out too well, to say the least. Does anybody have an idea on how one would come about getting the command prompt's width, height, and font details?

1 Answers1

0

It seems you need a way to get a console information (its width, height). You can find more information in this question: Can I find the console width with Java?.

If you are not looking for a cross-platform solution, that works with all kinds of terminals, you may find JLine 2 useful.