title: Java framework for reading / writing ANSI escape-sequenced character streams
body: <p>Reading ANSI escape sequences is nitty gritty and very easy to get wrong. I am after a library that includes an abstraction for reading escaped sequences preferrably as instances of some nice type. It would be nice if the library offered strongly types rather than everything is a strong and good luck do the stuff yourself.</p>
  
  <p>Any pointers to a foss library would be appreciated.</p>
  
  <p>A similar question <a href="https://stackoverflow.com/questions/245121/a-library-to-convert-ansi-escapes-terminal-formatting-color-codes-to-html">A library to convert ANSI escapes (terminal formatting/color codes) to HTML</a> which seems to have a similar motivation also remains unanswered.</p>