Incompatibility with Python Curses Library

Maybe it’s impossible to use asciinema to record a program that uses the Python Curses library, I suspect it is simply incompatible. Has anyone else tried this? I didn’t find any other topics about using Curses here.

What terminal display libraries are compatible with asciinema?

Here is a link to the recording I made where you can see the issues:

Not sure if I see the issue. Can you describe the problem?

Hi, thanks for responding.

Did you watch the video? The lower half of the screen flickers constantly. This isn’t something the program does when I run it without asciinema.

I ended up writing some code to output frames without recording the terminal.

I’ve not had any problems with curses in Python and Asciinema.

Looking at the cast file I can see that it clears the entire screen and redraws every frame from scratch.
This is likely to cause flicker.

You should use stdscr.refresh() instead of stdscr.redrawwin()

Thanks for the reply.

The app runs smoothly with just curses. The “blank” isn’t noticeable normally, I thought it wouldn’t turn out like that because I assumed Asciinema would record the terminal as it is without applying any effects. I ended up just outputting each frame a different way which was easier.