+20170902
+ + amend change for endwin-state for better consistency with the older
+ logic (report/patch by Jeb Rosen, cf: 20170722).
+ + modify check in fmt_entry() to handle a cancelled reset string
+ (Debian #873746). Make similar fixes in other parts of dump_entry.c
+ and tput.c
+