开发者

Java framework for reading / writing ANSI escape-sequenced character streams

开发者 https://www.devze.com 2023-03-16 08:13 出处:网络
Reading ANSI es开发者_开发知识库cape 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 s

Reading ANSI es开发者_开发知识库cape 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.

Any pointers to a foss library would be appreciated.

A similar question A library to convert ANSI escapes (terminal formatting/color codes) to HTML which seems to have a similar motivation also remains unanswered.


You may want to take a look at Jansi.
Here is the homepage and github repo

I hope that helps.


ANSI4J is a Java library that parses text with escape codes. It supports all ISO 6429 functions both with parameters and without parameters.

0

精彩评论

暂无评论...
验证码 换一张
取 消