Launching a curses script with screen -dm

R

Rob Thomas

Hey guys,

Having a problem with a script using the curses module... It works fine
if I start it like so:

screen python script.py

However, if I want to start it in detached mode (i restart it every day
through cron, so I need to be able to do this), like so:

screen -dm python script.py

I get this error:

_curses.error: start_color() returned ERR

Is it because a TERM variable isn't set properly? I'm running screen
with -T xterm, which should take care of that...

Any insight would be appreciated :)

-Rob Thomas
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top