From: phk Date: Thu, 10 Jan 2008 23:16:01 +0000 (+0000) Subject: Not all curses have KEY_RESIZE X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=706c211e7bf49f3ee55d0475898e7e3a8ac649df;p=varnish Not all curses have KEY_RESIZE git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2339 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishhist/varnishhist.c b/varnish-cache/bin/varnishhist/varnishhist.c index 1457b7cd..2b389c54 100644 --- a/varnish-cache/bin/varnishhist/varnishhist.c +++ b/varnish-cache/bin/varnishhist/varnishhist.c @@ -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); diff --git a/varnish-cache/bin/varnishstat/varnishstat.c b/varnish-cache/bin/varnishstat/varnishstat.c index 674f2ff4..d68540c0 100644 --- a/varnish-cache/bin/varnishstat/varnishstat.c +++ b/varnish-cache/bin/varnishstat/varnishstat.c @@ -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); diff --git a/varnish-cache/bin/varnishtop/varnishtop.c b/varnish-cache/bin/varnishtop/varnishtop.c index 84242c03..0da0133c 100644 --- a/varnish-cache/bin/varnishtop/varnishtop.c +++ b/varnish-cache/bin/varnishtop/varnishtop.c @@ -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);