0

[Solved] Why would stdscr.addstr(y, x, "text", curses.A_ATTRIBUTE) ignore the attribute but output the text as specified?

So the text is whereever the coordinates tell it to be on the terminal but none of the attributes work. Python version is 3.9.6 win 8.1 curse module in some project folder with venv. I'd done nothing before with virtual environment, let alone curses. If this is something I can handle without going crazy deep inside more rabbit holes, I will follow it through, and if not, I'm just gonna ditch it for now. I cannot tell. From what the few results on google tell, it could be anything from OS version to pip update to python version, to ASCII. Seen someone with Win 11 recounting a similar situation in a comment for a YT vid on "Tech with Tim" channel, if that’s enough to eliminate OS incompatibility. You think I should continue the tutorial regardless? Thank you all.

29th May 2022, 1:03 AM
Korkunç el Gato
Korkunç el Gato - avatar
2 ответов
+ 2
Apparently curses is not intended for use with windows. Try using UniCurses instead. https://pypi.org/project/UniCurses/
29th May 2022, 1:26 AM
Simon Sauter
Simon Sauter - avatar
0
Simon Sauter Wow. Just like that. Thank you. I saw that on another channel where the channel owner downloaded it from sourceforge, but he uploaded the vid in 2013 and python version was 2.7. So this is even more helpful to me than one might think.
29th May 2022, 2:01 AM
Korkunç el Gato
Korkunç el Gato - avatar