Curses module for Python 2.0 for Windows NT

Ruediger ruediger.maehl at web.de
Fri Jan 19 08:42:10 EST 2001


Fredrik Lundh schrieb in Nachricht ...
>if you can live with a simpler API, here's an alternative
>console driver for windows:
>
>    http://effbot.org/efflib/console
>
>Cheers /F
>


I downloaded your Console module and found it
very helpful, thank you. But when using it, there is always
a 0 (zero) return value from the python program although
sys.exit(2) is used.

Can one set the return value?
I didn't find anything in your docs.

# Excerpt from example:
myConsole = Console.getconsole()
myConsole.title("My Application")

# app continues here...

# Used until now
# sys.exit(2)

# Perhaps like this?
myConsole.exit(2)

/Ruediger





More information about the Python-list mailing list