comparison src/redisplay-tty.c @ 50:ee648375d8d6 r19-16b91

Import from CVS: tag r19-16b91
author cvs
date Mon, 13 Aug 2007 08:56:41 +0200
parents 56c54cf7c5b6
children 131b0175ea99
comparison
equal deleted inserted replaced
49:b46643e427ac 50:ee648375d8d6
1267 1267
1268 #### we should support the other (non-ANSI) ways of specifying 1268 #### we should support the other (non-ANSI) ways of specifying
1269 color, too. */ 1269 color, too. */
1270 char foobuf[500]; 1270 char foobuf[500];
1271 char *fooptr = foobuf; 1271 char *fooptr = foobuf;
1272 if (tgetstr ("AB", &fooptr) && tgetstr ("AF", &fooptr)) 1272 if ((tgetstr ("AB", &fooptr) && tgetstr ("AF", &fooptr)) ||
1273 (tgetstr ("Sf", &fooptr) && tgetstr ("Sb", &fooptr)) ||
1274 ((tgetnum ("Co") > 0) && (tgetnum ("pa") > 0)))
1273 DEVICE_CLASS (d) = Qcolor; 1275 DEVICE_CLASS (d) = Qcolor;
1274 else 1276 else
1275 DEVICE_CLASS (d) = Qmono; 1277 DEVICE_CLASS (d) = Qmono;
1276 } 1278 }
1277 1279