Messing with Python's curses library honestly makes me want to kill myself.
I am not suicidal but jesus christ, ncurses is great at making people lose their minds. I cannot imagine programming with ncurses on C instead of Python.
Show thread

@oklomsy I programmed a lot with curses back to n the early 90's. It was all in C. I thought it was worked really well.

Perhaps it's rose coloured glasses, but I can't really think of anything very bad about it.

@loke My issues with it were more about Python's specific wrapper, I read that on C at least, getch() does not return a number but the actual character, meanwhile on Python you need to run curses.ascii.unctrl() on the output of getch() before you do any actual handling

@oklomsy
You can make a wrapper over a wrapper! I think in Python it's even possible to replace the func with original name with your implementation that uses the original function 🤪
@loke

@m0xee @loke It was hard, I tried. I just had to make peace with Python's wrapper.
Follow

@oklomsy
Well, this works if you only have to do it once! Otherwise it might be better to make your own wrapper. And put it on GitHub. And waste your time on maintaining it because someone actually started using it 🤣
@loke

Sign in to participate in the conversation
Librem Social

Librem Social is an opt-in public network. Messages are shared under Creative Commons BY-SA 4.0 license terms. Policy.

Stay safe. Please abide by our code of conduct.

(Source code)

image/svg+xml Librem Chat image/svg+xml