r2339 - in trunk/varnish-cache/bin: varnishhist varnishstat varnishtop

phk at projects.linpro.no phk at projects.linpro.no
Fri Jan 11 00:16:01 CET 2008


Author: phk
Date: 2008-01-11 00:16:01 +0100 (Fri, 11 Jan 2008)
New Revision: 2339

Modified:
   trunk/varnish-cache/bin/varnishhist/varnishhist.c
   trunk/varnish-cache/bin/varnishstat/varnishstat.c
   trunk/varnish-cache/bin/varnishtop/varnishtop.c
Log:
Not all curses have KEY_RESIZE


Modified: trunk/varnish-cache/bin/varnishhist/varnishhist.c
===================================================================
--- trunk/varnish-cache/bin/varnishhist/varnishhist.c	2008-01-10 23:15:39 UTC (rev 2338)
+++ trunk/varnish-cache/bin/varnishhist/varnishhist.c	2008-01-10 23:16:01 UTC (rev 2339)
@@ -259,9 +259,11 @@
 		switch ((ch = getch())) {
 		case ERR:
 			break;
+#ifdef KEY_RESIZE
 		case KEY_RESIZE:
 			erase();
 			break;
+#endif
 		case '\014': /* Ctrl-L */
 		case '\024': /* Ctrl-T */
 			redrawwin(stdscr);

Modified: trunk/varnish-cache/bin/varnishstat/varnishstat.c
===================================================================
--- trunk/varnish-cache/bin/varnishstat/varnishstat.c	2008-01-10 23:15:39 UTC (rev 2338)
+++ trunk/varnish-cache/bin/varnishstat/varnishstat.c	2008-01-10 23:16:01 UTC (rev 2339)
@@ -129,9 +129,11 @@
 		switch ((ch = getch())) {
 		case ERR:
 			break;
+#ifdef KEY_RESIZE
 		case KEY_RESIZE:
 			erase();
 			break;
+#endif
 		case '\014': /* Ctrl-L */
 		case '\024': /* Ctrl-T */
 			redrawwin(stdscr);

Modified: trunk/varnish-cache/bin/varnishtop/varnishtop.c
===================================================================
--- trunk/varnish-cache/bin/varnishtop/varnishtop.c	2008-01-10 23:15:39 UTC (rev 2338)
+++ trunk/varnish-cache/bin/varnishtop/varnishtop.c	2008-01-10 23:16:01 UTC (rev 2339)
@@ -216,9 +216,11 @@
 		switch ((ch = getch())) {
 		case ERR:
 			break;
+#ifdef KEY_RESIZE
 		case KEY_RESIZE:
 			erase();
 			break;
+#endif
 		case '\014': /* Ctrl-L */
 		case '\024': /* Ctrl-T */
 			redrawwin(stdscr);




More information about the varnish-commit mailing list