From: John Marino Date: Tue, 14 May 2013 10:21:30 +0000 (+0200) Subject: top(1): Support wider terminals (Bug 2448) X-Git-Tag: v3.7.0~1115 X-Git-Url: https://gitweb.dragonflybsd.org/dragonfly.git/commitdiff_plain/fa9c57c07e9cea3f4dccea29b2f176e4657f9cb3?ds=sidebyside top(1): Support wider terminals (Bug 2448) Bump MAX_COLS from value of 255 to 512 to support wider terminals. A similar change was also done on FreeBSD 5 months ago (r244180) Reported-by: Charles Rapenne https://bugs.dragonflybsd.org/issues/2448 --- diff --git a/contrib/top/top.h b/contrib/top/top.h index c50046af4f..876024269e 100644 --- a/contrib/top/top.h +++ b/contrib/top/top.h @@ -42,7 +42,7 @@ #include /* Maximum number of columns allowed for display */ -#define MAX_COLS 255 +#define MAX_COLS 512 /* Log base 2 of 1024 is 10 (2^10 == 1024) */ #define LOG1024 10