简体   繁体   English

linux终端中的彩色控制台盒

[英]Color console boxes in linux terminal

So I have noticed that things (for lack of a better word) like this 所以我注意到这样的事情(因为没有更好的词) 替代文字 and 替代文字 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)? 我知道如何在Windows上实现这一点,但我将如何在linux中执行此操作(如果重要的话我使用的是ubuntu)? Are there any predefined classes out there to help construct these textboxes? 是否有任何预定义的类来帮助构建这些文本框?

如果你只想创建简单的标准小部件,你可以尝试对话库 ,但如果你需要更强大的东西,那么你可以选择ncurses

I see you already accepted an answer but I think Newt is exactly what you are looking for. 我看到你已经接受了答案,但我认为Newt正是你想要的。 Follow the link to the website to download. 点击网站链接下载。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM