For Unix builds, shut down curses in case the crash reporter can't open up a file and has to dump the crash directly to stderr.
Include all saved messages in the crash report.
Use EOL instead of \n or \r\n.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8535 c06c8d41-db1a-0410-9941-cceddc491573
NXYLHBIFJ236BL4EPOGKBHEBHZI4ZTLFFTXKQHFYTOSK2FJCBLIQC
KOMZPTDEZP3P6EWBUECWDY7OWELOUTMAUKNEOJ7PWX5LJBTMRVQAC
JM7UAK777RAVDAVLQLEOBRTGNW2B47S5G55XITJXO243IUNZHVYQC
SDLKLUNFGVKDS55DDJZCBAVIB7NL3RRYPTACAY65SCUQKV6APFSAC
XX62GOJVDP352L4BH7MELNYXHMZNA6VAGF7B6RWWOSULX7VJR5YAC
K2CS6TCX2NDVL2ASEHGP4J4K4IJ6FP3ANNKTSIWVG43HPYSBX6ZQC
3DQXSE4YGFBBDUWK4YEOFWW4UPWILWELFSLP37SL6BERGAZJC5YAC
fprintf(file, "\nCrashed while generating level.\r\n");
fprintf(file, "your_level = %d, level_type = %d, type_name = %s\r\n",
fprintf(file, EOL "Crashed while generating level." EOL);
fprintf(file, "your_level = %d, level_type = %d, type_name = %s" EOL,
fprintf(file, "dgn_Build_Method = %s\r\n", dgn_Build_Method.c_str());
fprintf(file, "dgn_Layout_Type = %s\r\n", dgn_Layout_Type.c_str());
fprintf(file, "dgn_Build_Method = %s" EOL, dgn_Build_Method.c_str());
fprintf(file, "dgn_Layout_Type = %s" EOL, dgn_Layout_Type.c_str());