From: SourceForge.net <no...@so...> - 2009-12-04 09:54:27
|
Patches item #2859244, was opened at 2009-09-15 05:52 Message generated for change (Settings changed) made by idigdoug You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=310706&aid=2859244&group_id=10706 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None >Status: Closed >Resolution: Accepted Priority: 5 Private: No Submitted By: Doug Cook (idigdoug) Assigned to: Nobody/Anonymous (nobody) Summary: Fix keyboard interaction on Windows Initial Comment: In Unix, interactive IO is done by setting a mode on the input stream. In Windows, it is done by using a different function (_getch instead of getchar) to read unbuffered/uncooked input from the input stream. The interactive functions are declared in conio.h. Some implementations of signal() reset the signal handler each time it is sent. The MSVCRT does this. The solution is to reinstall the signal handler each time the signal is recieved. If the signal handler was not reset, reinstalling it does no harm. If the signal handler was reset, resinstalling it is necessary. Otherwise, the second Ctrl-C causes the program to exit immediately instead of continuing to skip songs. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=310706&aid=2859244&group_id=10706 |