Ich habe ein Programm in C gemacht, das gut funktioniert, aber obwohl am Ende aller Threads

Code:
  nocbreak ();                  // curses call to set waiting for Enter key
  echo ();                      // curses call to set echoing
  (void) curs_set (1);          // visible cursor
  endwin ();                    // end curses
  pthread_kill (thread, 15);    // terminate thread with signal 15
  pthread_exit (NULL);
steht, ist meistens der Cursor danach unsichtbar.
Auch ein "system ("reset");" half nicht.
Woran liegt das und wie beseitige ich das?