comparison src/os_unix.c @ 22:cc049b00ee70

updated for version 7.0014
author vimboss
date Thu, 02 Sep 2004 19:12:26 +0000
parents 946da5994c01
children 41f9fd58cf13
comparison
equal deleted inserted replaced
21:db5102f7e29f 22:cc049b00ee70
1952 vim_is_vt300(name) 1952 vim_is_vt300(name)
1953 char_u *name; 1953 char_u *name;
1954 { 1954 {
1955 if (name == NULL) 1955 if (name == NULL)
1956 return FALSE; /* actually all ANSI comp. terminals should be here */ 1956 return FALSE; /* actually all ANSI comp. terminals should be here */
1957 return (STRNICMP(name, "vt3", 3) == 0 /* it will cover all from VT100-VT300 */ 1957 /* catch VT100 - VT5xx */
1958 || STRNICMP(name, "vt2", 3) == 0 /* TODO: from VT340 can hanle colors */ 1958 return ((STRNICMP(name, "vt", 2) == 0
1959 || STRNICMP(name, "vt1", 3) == 0 1959 && vim_strchr((char_u *)"12345", name[2]) != NULL)
1960 || STRCMP(name, "builtin_vt320") == 0); 1960 || STRCMP(name, "builtin_vt320") == 0);
1961 } 1961 }
1962 1962
1963 /* 1963 /*
1964 * Return TRUE if "name" is a terminal for which 'ttyfast' should be set. 1964 * Return TRUE if "name" is a terminal for which 'ttyfast' should be set.