test script for conio
corrected terminate signal handling