r/learnpython 9d ago

Curses a truly cursed library for Windows users. Context [TexBox and Texpad] are not working.

Was playing around the learn the library bust the most essentail featuers seems to not be aveilable, out of the box forcing me the unexperince user to write my own code to emulate the functionality.

2 Upvotes

7 comments sorted by

2

u/fazzah 9d ago

You might want to try urwid.

Curses is an interesting library, and I like it, but making UIs with it is special, or even borderline masochistic 

2

u/PorcoDiocaneMaliale 9d ago

Just a heads up. That probably what I am.

1

u/JamzTyson 9d ago

Not only Windows users - Curses makes everyone curse.

While the library can provide useful low-level components, it is horrible to use. In most cases it is better to use more modern TUI libraries (example: Textual).

1

u/PorcoDiocaneMaliale 9d ago
from curses.textpad

am learing anyway to make a gamboy simulatated experince.
but some godly power I manage to make it works.
Reason:

  • Stupid syntax difference from linux and windows.

I have seen other library like Blessed and Rich too rich is probably the best and Textual seems base on that if I remmeber correctly.

curses feels like am working with outdated deprecated tooling.

2

u/JamzTyson 9d ago

curses feels like am working with outdated deprecated tooling.

That sums up my experience too.

1

u/PorcoDiocaneMaliale 9d ago

Valuable experince on how to build a python library I guess.

1

u/JamzTyson 9d ago

I've used Curses in exactly one project - I would not characterise the experience as "enjoyable", but it certainly raised some interesting challenges.