+20170617
+ + fill in some places where TERMTYPE2 vs TERMTYPE was not used
+ (report by Allen Hewes).
+ + use ExitTerminfo() internally in error-exits for ncurses' setupterm
+ to help with leak checking.
+ + use ExitProgram() in error-exit from initscr() to help with leak
+ checking.
+ + review test-programs, adding checks for cases where the terminal
+ cannot be initialized.
+