title: How can you get the current caret position in terminal with Java?
body: <p>I've looked at JLine, Lanterna, and others, but I'm not seeing a simple way to find the current caret position in the terminal with these tools.  I've looked at a number of escape codes, tput, etc.  But, I'm looking for the easiest way to get the current column and row where the caret is located with Java.  Maybe I haven't found the right call in these libraries...</p>
  
  <p>What's the easiest way to get the row and column of the caret in the terminal?</p>
  
  <p>I'm looking for a pure textual library so that I can re-write the buffer. I'm aware of ansi escape codes and how to manipulate them to produce the effects I'm after. What I'm trying to do is make a Java prompt library in the vain of Inquirer.js for Node. It has a number of simple ways to get info from the user (lists, questions, split lists, etc). All of it text -- so all of it without a UI, and so non-swing. I don't want swing, I just want a decent terminal UI experience.</p>