Linux 终端中的彩色控制台框

发布于 2024-09-18 07:09:19 字数 257 浏览 4 评论 0原文

所以我注意到像这样的事情(由于缺乏更好的词) alt text替代文字 只是在控制台中使用特殊字符并更改其颜色来完成。我知道如何在 Windows 上完成此操作,但我将如何在 Linux 中完成此操作(如果重要的话,我正在使用 ubuntu)?是否有任何预定义的类可以帮助构建这些文本框?

So I have noticed that things (for lack of a better word) like this alt text
and
alt text
are just done in the console using special characters and changing their color. I know how to accomplish this on windows but how would I go about doing this in linux (I am using ubuntu if that matters)? Are there any predefined classes out there to help construct these textboxes?

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

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

发布评论

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

评论(2

千鲤 2024-09-25 07:09:19

如果您只想创建简单的标准小部件,您可以尝试对话框库,但如果您需要更多东西功能强大,那么 ncurses 就是您的选择。

If you just want to create simple standard widgets you may try dialog library, but if you need something more powerful then ncurses is your choice.

铁憨憨 2024-09-25 07:09:19

我看到您已经接受了答案,但我认为 Newt 正是您的身份寻找。点击网站链接进行下载。

I see you already accepted an answer but I think Newt is exactly what you are looking for. Follow the link to the website to download.

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