对于终端应用程序来说,什么是好的 Java 类诅咒库?

发布于 2024-07-11 21:56:23 字数 1542 浏览 7 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

热风软妹 2024-07-18 21:56:23

Lanterna

我最近发现了 Lanterna 库。 还没有机会使用它,但它看起来是比其他产品更新的替代品。

输入图像描述这里

Lanterna

I found the Lanterna library recently. Haven't had the opportunity to use it yet but it looks like a more up-to-date alternative to the others.

enter image description here

携君以终年 2024-07-18 21:56:23

Charva,它链接到本机代码,但具有基于 Swing 的 api。
屏幕截图显示了大量文本窗口,因此看起来很有用。

There is Charva, which links to native code but has an api based on Swing.
The screenshots show lots of text windows, so that looks useful.

错爱 2024-07-18 21:56:23

我自己没有使用过它,但是 Java Curses Library 听起来像你想要的。

Haven't used it myself, but Java Curses Library sounds like what you want.

别念他 2024-07-18 21:56:23

这里是调用 ncurses 库的方法使用 JNI。 我测试了这个并且它有效。

Here is a way to call the ncurses lib using JNI. I tested this and it works.

迷鸟归林 2024-07-18 21:56:23

截至 2013 年,我能找到的最接近的是 Blacken

Blacken 本身并不是一个诅咒库。 它远离终端,而是呈现它自己的“控制台窗口”。 这样做的缺点是看起来不像“控制台”。 相反,您可以获得完整(任意)颜色支持,以及类似诅咒的 API(除了它们的主要 API 之外)。

您还可以将固定宽度字符的字体设置为 Mono

As of 2013, the closest I can find is Blacken.

Blacken is not a curses library per-se. It moves away from the terminal, and instead, renders it's own "console window." This has the disadvantage of not looking "console-like." Instead, you get full (arbitrary) colour support, and a curses-like API (in addition to their main API).

You can also set the font to Mono for fixed-width characters.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文