title: Java: Getting command-line size in characters
body: <p>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 
  <a href="http://i.stack.imgur.com/WZ1Xu.png" rel="nofollow">like this</a> (please see photo)</p>
  
  <p>I've tried using <code>java.util.Scanner</code> 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?</p>