PyTermGUI gains the ability to gracefully degrade from RGB to xterm-16color palettes!

This page summarizes the projects mentioned and recommended in the original post on

Our great sponsors
  • Scout APM - Less time debugging, more time building
  • SonarQube - Static code analysis for 29 languages.
  • SaaSHub - Software Alternatives and Reviews
  • pytermgui

    Python TUI framework with mouse support, modular widget system, customizable and rapid terminal markup language and more!

    My Python-based TUI library, PyTermGUI now has the ability to gracefully degrade any color to the current terminal emulator's capabilities, completely automatically! AFAIK it is one of the first libraries of its kind to gain this feature, as I couldn't really find any implementations of it to base mine from. (That, or I'm just not that great at Google-ing.)

  • no_color

    Website data for

    One last cool addition that came as a fruit of this work is the really fancy implementation. Instead of just completely omitting colors from the output, we calculate their perceived brightness and assign them an ```xterm-256 greyscale value accordingly. This means that most contrast is retained, and user interfaces are actually readable with the option set.

  • Scout APM

    Less time debugging, more time building. Scout APM allows you to find and fix performance issues with no hassle. Now with error monitoring and external services monitoring, Scout is a developer's best friend when it comes to application development.

  • rich

    Rich is a Python library for rich text and beautiful formatting in the terminal.

    Importantly, this comes at the cost of practically 0 performance, and PTG remains magnitudes (simple testing shows 70ms per simple markup parse against 2-9ms) faster than the closest "competing" product and its markup language, even with it having to translate colors between colorspaces, which Rich does not do.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts