Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

早知道有这个项目我就不用自己写了啊 #7

Closed
skyline75489 opened this issue Oct 20, 2014 · 6 comments
Closed

早知道有这个项目我就不用自己写了啊 #7

skyline75489 opened this issue Oct 20, 2014 · 6 comments

Comments

@skyline75489
Copy link

项目主给力,比我做的精致多了

@taizilongxu
Copy link
Owner

哈,我也参考了你的,发现调用一些外部库做界面,有点麻烦,最重要的是颜色还不支持,有点受不了

@skyline75489
Copy link
Author

我当时怕用curses或者ncurses自己写太费劲,就用的框架。后来发现框架也确实有坑爹的地方,比方说不够灵活,参考资料少之类的。

颜色不支持具体指的是什么?是终端的颜色还是字体的颜色?

@taizilongxu
Copy link
Owner

一行可以用多种颜色,貌似curses没有这种方法

@skyline75489
Copy link
Author

我没用过curses,不过感觉应该不难吧,毕竟显示颜色无非就是输出个 \033[0;1;5;31m 这类的转义字符串而已

https://github.com/bluetomlee/NetEase-MusicBox 这个就是用curses写的,看起来也不错

@taizilongxu
Copy link
Owner

额,试过了,转义字符在curses里原样输出,所以就自己造个轮子~~
https://github.com/bluetomlee/NetEase-MusicBox 这个真挺不错

@skyline75489
Copy link
Author

那看来只能自己写了,urwid框架在颜色的显示上也不是特别好用

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants