Just so you know, when you activate a Curses "screen", most
normal screen I/O won't work right, something that will create
problems if, say, your application calls die() or uses any
other functions that do screen I/O that don't understand
Curses. When writing curses applications, it's usefil to
put calls to endwin() right before all your die()s (and of
course, before your application exits).