jquast / blessed

Blessed is an easy, practical library for making python terminal apps
http://pypi.python.org/pypi/blessed
MIT License
1.18k stars 71 forks source link

Examples of segregating terminal output #241

Closed ajgringo619 closed 2 years ago

ajgringo619 commented 2 years ago

I am trying to completely remove any curses modules/code from my programs, and hope I've come to the right place. The main questions are:

1) Is blessed a complete rapper for curses? 2) If so, are there examples of how to create sub-windows, like curses.newwin?

I'm trying to create a database monitor that prints out pandas dataframes in separate areas of the screen. For now, I'm converting the dataframes to multi-line strings, then printing each line with _term.movexy commands.

avylove commented 2 years ago

Blessed is not a complete wrapper for curses. It does not have any abstraction for Curses windows. Blessed is primarily for colors, formating, keyboard input, cursor location, and other functionality provided through terminal escape codes. Some people do use Blessed along with Curses windows. You may want to look at the examples in the Readme and explore those projects if you see something similar to what you're trying to do.

ajgringo619 commented 2 years ago

OK, thanks for the detailed info.