Wenn man ein Terminal benutzt, dass von der curses-Bibliothek nicht unterstuetzt wird, bekommt man beim Ausfuehren eines curses-Skripts die Fehlermeldung
Code: Alles auswählen
Error opening terminal: some_term.
Code: Alles auswählen
#! /usr/bin/env python
import curses
try:
stdscr = curses.initscr()
curses.endwin()
except:
print "Error!"
print "Bye!"
Mmh...
... wie genau habe ich mir 'cause the interpreter to exit' vorzustellen?Python Doku hat geschrieben:initscr()
[...] Note: If there is an error opening the terminal, the underlying curses library may cause the interpreter to exit.