comparison src/os_unix.c @ 161:6df0106fc595

updated for version 7.0049
author vimboss
date Mon, 07 Feb 2005 22:01:03 +0000
parents 78423945b251
children 8b0ee9d57d7f
comparison
equal deleted inserted replaced
160:7c0820eed232 161:6df0106fc595
3220 # endif /* TIOCGSIZE */ 3220 # endif /* TIOCGSIZE */
3221 # endif /* TIOCGWINSZ */ 3221 # endif /* TIOCGWINSZ */
3222 3222
3223 /* 3223 /*
3224 * 2. get size from environment 3224 * 2. get size from environment
3225 * When being POSIX compliant this overrules the ioctl() values!
3225 */ 3226 */
3226 if (columns == 0 || rows == 0) 3227 if (columns == 0 || rows == 0 || getenv("VIM_POSIX") != NULL)
3227 { 3228 {
3228 if ((p = (char_u *)getenv("LINES"))) 3229 if ((p = (char_u *)getenv("LINES")))
3229 rows = atoi((char *)p); 3230 rows = atoi((char *)p);
3230 if ((p = (char_u *)getenv("COLUMNS"))) 3231 if ((p = (char_u *)getenv("COLUMNS")))
3231 columns = atoi((char *)p); 3232 columns = atoi((char *)p);