CONS_GET
if (ioctl(0, CONS_GET, &VGLOldMode) || ioctl(0, CONS_CURRENT, &adptype))
case CONS_GET: /* get current video mode */
if (ioctl(0, CONS_GET, &cur_info.video_mode_number) == -1)