Skip to content
Sign upLog in
← Back to Community
Is it possible to run a curses program?
Profile icon
drkvogel

I tried to run a Python curses program which works fine on my machine, on repl.it I got:
Traceback (most recent call last):
File "python", line 208, in
_curses.error: setupterm: could not find terminal

Voters
Profile icon
olafh10
Profile icon
drkvogel
Comments
hotnewtop
Profile icon
olafh10

Can you add a link to your repl please?

Profile icon
drkvogel
Profile icon
olafh10

@drkvogel
thank you

Profile icon
olafh10

@drkvogel
looking at your code and the documentation, the only thing I can think of is the way that repl.it displays terminals. The problem is that there is no terminal present on repl.it’s computers. Because all repl.it does is redirect input and output from and to your browser and program.

I guess repl.it can’t handle such advanced terminal interaction as your program requires.. :(

The best thing you can do is ask @timmy_i_chen or

@amasad
about this

EDIT: I realized that I didn’t really answer your question, so, you can change your code and just leave out everything involving curses and just print visual stuff with print(). The graphics will be less good, but your program will at least work.

Profile icon
timmy_i_chen

@olafh10
Ah yes, we're in the middle of implementing a new terminal that will support this. This will work soon. :) Sorry for any trouble!

Profile icon
drkvogel

@timmy_i_chen Great to hear, thanks! I didn't expect it to work, really, I was just wondering if it was possible to share what I was doing with someone who is not so technical. But if you can do it in the future, that's great!

Profile icon
doctorindustrie

@timmy_i_chen

is it done