Giter Site home page Giter Site logo

Comments (6)

taizilongxu avatar taizilongxu commented on June 17, 2024

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

from douban.fm.

skyline75489 avatar skyline75489 commented on June 17, 2024

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

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

from douban.fm.

taizilongxu avatar taizilongxu commented on June 17, 2024

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

from douban.fm.

skyline75489 avatar skyline75489 commented on June 17, 2024

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

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

from douban.fm.

taizilongxu avatar taizilongxu commented on June 17, 2024

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

from douban.fm.

skyline75489 avatar skyline75489 commented on June 17, 2024

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

from douban.fm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.