CONS_CURRENT
if (ioctl(0, CONS_GET, &VGLOldMode) || ioctl(0, CONS_CURRENT, &adptype))
case CONS_CURRENT: /* get current adapter type */