Index: main-gcu.c
===================================================================
RCS file: /home/angband/angband/angband/src/main-gcu.c,v
retrieving revision 1.3
diff -u -r1.3 main-gcu.c
--- main-gcu.c	2000/08/22 19:04:41	1.3
+++ main-gcu.c	2001/01/22 19:00:50
@@ -928,6 +928,13 @@
 }
 
 
+static void hook_quit(cptr str)
+{
+	/* Exit curses */
+	endwin();
+}
+
+
 /*
  * Prepare "curses" for use by the file "z-term.c"
  *
@@ -953,6 +960,10 @@
 	/* Initialize for other systems */
 	if (initscr() == (WINDOW*)ERR) return (-1);
 #endif
+
+	/* Activate hooks */
+	quit_aux = hook_quit;
+	core_aux = hook_quit;
 
 	/* Require standard size screen */
 	if ((LINES < 24) || (COLS < 80))

