winprint
blessed
winprint | blessed | |
---|---|---|
1 | 13 | |
69 | 1,051 | |
- | - | |
0.0 | 5.6 | |
10 months ago | 22 days ago | |
C# | Python | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
winprint
-
Everything you ever wanted to know about terminals(but were afraid to ask)
I built a cross platform app to print 'pretty formatted' source code [1]. I didn't want to re-invent the wheel on formatting source code, so looked at all the existing libraries. Originally I figured formatting to HTML, and then building a print-friendly HTML render would work. But this proved super challenging. I tried a dozen HTML engines (including Chromium) but none gave me enough control to render just a single page of the original source file.
Then I noticed Pygments, a Python-based library for pretty formatting source code, has an option to output an ANSI formatted file. I quickly found a bunch of libraries that could render ANSI formatted text to a print canvas.
In the end, I put the original source code file through 'pygmentize -16m -o tempfile.an` (`16m` is the 16M color terminal ANSI formatter) and pipe the `tempfile.an` through a print-optimized renderer to actually print the source code.
ANSI escapes FTW!
[1] WinPrint - https://github.com/tig/winprint
blessed
-
Advice for creating my first game?
separate logic and presentation - so, for example, you can start off with a very simple console based solution, move to a more advanced text/console user interface (using e.g. blessed), then onto a simple GUI or webapp
-
CLI interfaces with choice highlighting
blessed is a good example.
-
Need guidance on creating a terminal app like HTOP UI
blessed
-
Everything you ever wanted to know about terminals(but were afraid to ask)
If this piques your interest and you use Python, check out the blessed library: https://github.com/jquast/blessed
-
How to clear console/terminal, using Mu on raspberry pi 400?
e.g. https://github.com/jquast/blessed
- Continuously checking for keypresses
-
A good python library to replace libtcod for terminal play?
Well, my current plan is to use one of the more modern curses-replacements (I'm thinking of blessed, a blessings fork), since they seem a lot easier to use than curses. If I hit a speed bottleneck with blessed, the plan is to switch over to curses...
-
Objexplore: A terminal UI to inspect and explore Python objects
I created a terminal app called Objexplore to interactively inspect and explore Python objects. It was a fun project and uses the rich and blessed packages. Take a look at the github readme for a quick demo.
-
Fancy console
blessed - This module is a wrapper around curses, and aims to make doing things with it simpler.
-
Any Python/Curses resources?
You might also consider more modern approach like blessed or maybe go low-level in the style of how urwid handles terminal input and output.
What are some alternatives?
libapps - Fork of https://chromium.googlesource.com/apps/libapps/
rich - Rich is a Python library for rich text and beautiful formatting in the terminal.
CsharpToColouredHTML - C# to HTML Converter with syntax highlighting
urwid - Console user interface library for Python (official repo)
py_cui - A python library for intuitively creating CUI/TUI interfaces with widgets, inspired by gocui.
blessings - A thin, practical wrapper around terminal capabilities in Python
textual - The lean application framework for Python. Build sophisticated user interfaces with a simple Python API. Run your apps in the terminal and a web browser.
RogueDetective - A roguelike detective game
objexplore - A terminal UI to inspect and explore Python objects
ratuil - Responsive Terminal UI
exam-terminal - A terminal/console based exam, test, or quiz tool for educators and learners
python-prompt-toolkit - Library for building powerful interactive command line applications in Python