It looks like I accidentally recorded the wrong version of Curses.py --
originally this code was there, but I moved it over to UIBase so it would
cover the TTY UI also.
def terminate(s, exitstatus = 0, errortitle = None, errormsg = None):
s.c.stop()
- if errormsg <> None:
- if errortitle <> None:
- sys.stderr.write('%s: %s\n'%(errortitle, errormsg))
- else:
- sys.stderr.write('%s\n' % errormsg)
UIBase.terminate(s, exitstatus = exitstatus, errortitle = errortitle, errormsg = errormsg)
def threadException(s, thread):