]> err.no Git - varnish/commitdiff
Not all curses have KEY_RESIZE
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Thu, 10 Jan 2008 23:16:01 +0000 (23:16 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Thu, 10 Jan 2008 23:16:01 +0000 (23:16 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2339 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishhist/varnishhist.c
varnish-cache/bin/varnishstat/varnishstat.c
varnish-cache/bin/varnishtop/varnishtop.c

index 1457b7cd408fb501ea7e2ae226dd69cb3fc0755b..2b389c54c410b87d5b7beea2b2a9188b036d7d60 100644 (file)
@@ -259,9 +259,11 @@ do_curses(struct VSL_data *vd)
                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);
index 674f2ff45775df58d581476d53adcb48314b178f..d68540c02538e8a1fd360484ae430c7f8a2826ab 100644 (file)
@@ -129,9 +129,11 @@ do_curses(struct varnish_stats *VSL_stats, int delay)
                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);
index 84242c03ca4a7fd44fe88904129378744ee8c261..0da0133cf464d55589ffff6a832b965c334dfe4c 100644 (file)
@@ -216,9 +216,11 @@ do_curses(struct VSL_data *vd)
                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);