Lines Matching refs:mode

139 		errc(1, errno, "getting video mode number");
144 errc(1, errno, "getting video mode parameters");
203 " [-g geometry] [-h size] [-i active | adapter | mode]",
206 " [mode] [foreground [background]] [show]");
210 " [-g geometry] [-h size] [-i adapter | mode] [-l screen_map]",
213 " [mode] [foreground [background]] [show]");
487 unsigned long io = 0; /* silence stupid gcc(1) in the Wall mode */
511 warn("failed to obtain current video mode parameters");
659 * Set the video mode.
667 unsigned long mode;
704 unsigned long mode = 0;
711 err(1, "cannot get the current video mode");
714 * Parse the video mode argument...
720 errx(1, "invalid video mode number");
726 mode = modes[i].mode;
734 if (ioctl(0, mode, NULL) < 0) {
741 * Collect enough information about the new video mode...
748 errc(1, errno, "obtaining new video mode parameters");
751 if (mode == 0) {
753 mode = _IO('V', new_mode_num - M_VESA_BASE);
755 mode = _IO('S', new_mode_num);
759 * Try setting the new mode.
762 if (ioctl(0, mode, NULL) == -1) {
764 errc(1, errno, "setting video mode");
768 * For raster modes it's not enough to just set the mode.
769 * We also need to explicitly set the raster mode.
799 /* set raster mode */
1078 printf(" initial mode:%d, current mode:%d, BIOS mode:%d\n",
1091 * Show video mode information.
1101 int mode;
1103 printf(" mode# flags type size "
1109 for (mode = 0; mode <= M_VESA_MODE_MAX; ++mode) {
1110 _info.vi_mode = mode;
1113 if (_info.vi_mode != mode)
1119 printf("%3d (0x%03x)", mode, mode);
1181 } else if (!strcmp(arg, "mode")) {
1185 errx(1, "argument to -i must be active, adapter, or mode");
1229 dump_screen(int mode, int opt)
1238 errc(1, errno, "obtaining current video mode parameters");
1259 if (mode == DUMP_FMT_RAW) {