win32tty hangs if you ^C at "Who are you?"
From Newsgroups: rec.games.roguelike.nethack : > <email deleted> > Subject: question for windows tty users > > I am trying to hunt down a bug, and want to know if I have > encountered another one of those bizarre "features" that only > occur on my computer (I seem to get a lot of them). > > I can reproduce this bug, or whatever it is, in the official > Windows binary like this: Start the tty version of NetHack by > double clicking on the program. You won't see the bug if you > start it from the command line. When the game asks, "Who are > you?" press ^C. NetHack will respond with "^C abort. Hit > <Enter> to end," and then it hangs. Pressing Enter does > nothing, and the program does not end. > > Can anybody else reproduce this behaviour? Thanks in advance. > > -- <Someone>
This commit is contained in:
+7
-1
@@ -52,6 +52,10 @@ extern void FDECL(nethack_exit,(int));
|
||||
#define nethack_exit exit
|
||||
#endif
|
||||
|
||||
#ifdef WIN32
|
||||
extern boolean getreturn_enabled; /* from sys/share/pcsys.c */
|
||||
#endif
|
||||
|
||||
#if defined(MSWIN_GRAPHICS)
|
||||
extern void NDECL(mswin_destroy_reg);
|
||||
#endif
|
||||
@@ -433,7 +437,9 @@ not_recovered:
|
||||
#ifdef OS2
|
||||
gettty(); /* somehow ctrl-P gets turned back on during startup ... */
|
||||
#endif
|
||||
|
||||
#ifdef WIN32
|
||||
getreturn_enabled = TRUE;
|
||||
#endif
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user