git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1590
d4fa192b-c00b-0410-8231-
f00ffab90ce4
#include <curses.h>
#include <errno.h>
#include <limits.h>
+#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
case KEY_RESIZE:
erase();
break;
- case '\014':
+ case '\014': /* Ctrl-L */
+ case '\024': /* Ctrl-T */
redrawwin(stdscr);
refresh();
break;
case '\003': /* Ctrl-C */
+ raise(SIGINT);
+ break;
+ case '\032': /* Ctrl-Z */
+ raise(SIGTSTP);
+ break;
case '\021': /* Ctrl-Q */
case 'Q':
case 'q':
endwin();
- return;
+ exit(0);
default:
+ beep();
break;
}
}