]> granicus.if.org Git - php/commitdiff
change the default terminal width from 100 to 80, as that is the most common value
authorkovacs.ferenc <kovacs.ferenc@ustream.tv>
Thu, 12 Jun 2014 21:13:50 +0000 (23:13 +0200)
committerkovacs.ferenc <kovacs.ferenc@ustream.tv>
Sat, 14 Jun 2014 21:48:24 +0000 (23:48 +0200)
phpdbg_utils.c

index c9b22a20397172b152ce74d834e3fb74fceaedac..c77ecba564df419fccf40b202e37b096b6ec5fe4 100644 (file)
@@ -440,9 +440,9 @@ PHPDBG_API int phpdbg_get_terminal_width(TSRMLS_D) /* {{{ */
 #elif defined(HAVE_SYS_IOCTL_H) 
        struct winsize w;
 
-       columns = ioctl(fileno(stdout), TIOCGWINSZ, &w) == 0 ? w.ws_col : 100;
+       columns = ioctl(fileno(stdout), TIOCGWINSZ, &w) == 0 ? w.ws_col : 80;
 #else
-       columns = 100;
+       columns = 80;
 #endif
        return columns;
 } /* }}} */