用于读/写ANSI转义序列字符流的Java框架 [英] Java framework for reading / writing ANSI escape-sequenced character streams

查看:157
本文介绍了用于读/写ANSI转义序列字符流的Java框架的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

读取ANSI转义序列是非常粗略的,很容易出错。我追求的是一个包含抽象的库,用于读取转义序列,最好是作为一些好类型的实例。如果图书馆提供强烈的类型,而不是一切都是强大的,并且运气好,那就好了。

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.

任何指向矿石图书馆的指针都将受到赞赏。

Any pointers to a foss library would be appreciated.

一个类似的问题将ANSI转义(终端格式/颜色代码)转换为HTML的库似乎也有类似的动机,但仍然没有答案。

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.

推荐答案

你可能想看看Jansi。

这是主页 github repo

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

我希望有所帮助。

这篇关于用于读/写ANSI转义序列字符流的Java框架的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆