diff options
Diffstat (limited to 'usr.sbin/pcvt/scon')
-rw-r--r-- | usr.sbin/pcvt/scon/scon.c | 76 |
1 files changed, 38 insertions, 38 deletions
diff --git a/usr.sbin/pcvt/scon/scon.c b/usr.sbin/pcvt/scon/scon.c index 5237d07..0cb053b 100644 --- a/usr.sbin/pcvt/scon/scon.c +++ b/usr.sbin/pcvt/scon/scon.c @@ -192,10 +192,10 @@ char *argv[]; extern int optind; extern int opterr; extern char *optarg; - + int c; int fd; - + while( (c = getopt(argc, argv, "ac:d:f:HVlms:t:vp:18")) != EOF) { switch(c) @@ -203,7 +203,7 @@ char *argv[]; case 'a': aflag = 1; break; - + case 'l': lflag = 1; break; @@ -215,17 +215,17 @@ char *argv[]; case 'c': current = atoi(optarg); break; - + case 'd': device = optarg; dflag = 1; break; - + case 'f': onoff = optarg; fflag = 1; break; - + case 'V': pflag = 1; break; @@ -309,7 +309,7 @@ char *argv[]; case '1': colms = 132; break; - + case '8': colms = 80; break; @@ -348,7 +348,7 @@ char *argv[]; exit(1); } if(vflag) - printf("using device %s\n",device); + printf("using device %s\n",device); } if(aflag == 1) /* return adaptor type */ @@ -404,7 +404,7 @@ char *argv[]; } goto success; } - + if(Pflag == 3) { /* listing VGA palette */ @@ -445,14 +445,14 @@ char *argv[]; screeninfo.screen_no = -1; /* We are using fd */ screeninfo.current_screen = current; screeninfo.pure_vt_mode = -1; - screeninfo.screen_size = res; + screeninfo.screen_size = res; screeninfo.force_24lines = -1; - + if(current != -1) /* set current screen */ { if(vflag) printf("processing option -c, setting current screen to %d\n",current); - + if(ioctl(1, VGASETSCREEN, &screeninfo) == -1) { perror("ioctl VGASETSCREEN failed"); @@ -523,8 +523,8 @@ char *argv[]; success: if(vflag) printf("successful execution of ioctl VGASETSCREEN!\n"); - exit(0); -} + exit(0); +} usage() { @@ -566,19 +566,19 @@ int fd; case UNKNOWN_ADAPTOR: printf("UNKNOWN\n"); break; - + case MDA_ADAPTOR: printf("MDA\n"); break; - + case CGA_ADAPTOR: printf("CGA\n"); break; - + case EGA_ADAPTOR: printf("EGA\n"); break; - + case VGA_ADAPTOR: printf("VGA\n"); break; @@ -598,11 +598,11 @@ int fd; default: printf("UNKNOWN\n"); break; - + case MONITOR_MONO: printf("MONO\n"); break; - + case MONITOR_COLOR: printf("COLOR\n"); break; @@ -675,26 +675,26 @@ int fd; } printf( "\nVideo Adaptor Type = "); - + switch(screeninfo.adaptor_type) { default: case UNKNOWN_ADAPTOR: printf("UNKNOWN Video Adaptor\n"); break; - + case MDA_ADAPTOR: printf("MDA - Monochrome Display Adaptor\n"); break; - + case CGA_ADAPTOR: printf("CGA - Color Graphics Adaptor\n"); break; - + case EGA_ADAPTOR: printf("EGA - Enhanced Graphics Adaptor\n"); break; - + case VGA_ADAPTOR: printf("VGA - Video Graphics Adaptor/Array\n"); printf(" VGA Chipset Manufacturer = %s\n", @@ -706,61 +706,61 @@ int fd; break; } - printf( "Display Monitor Type = "); + printf( "Display Monitor Type = "); switch(screeninfo.monitor_type) { default: printf("UNKNOWN Monitor Type\n"); break; - + case MONITOR_MONO: printf("Monochrome Monitor\n"); break; - + case MONITOR_COLOR: printf("Color Monitor\n"); break; } - + printf( "Number of Downloadable Fonts = %d\n",screeninfo.totalfonts); printf( "Number of Virtual Screens = %d\n",screeninfo.totalscreens); printf( "Info Request Screen Number = %d\n",screeninfo.screen_no); printf( "Current Displayed Screen = %d\n",screeninfo.current_screen); - - if(screeninfo.pure_vt_mode == M_PUREVT) + + if(screeninfo.pure_vt_mode == M_PUREVT) printf( "Terminal Emulation Mode = VT220\n"); else printf( "Terminal Emulation Mode = VT220 with HP Features\n"); - printf( "Lines = "); + printf( "Lines = "); switch(screeninfo.screen_size) { case SIZ_25ROWS: printf( "25\n"); break; - + case SIZ_28ROWS: printf( "28\n"); break; - + case SIZ_35ROWS: printf( "35\n"); break; - + case SIZ_40ROWS: printf( "40\n"); break; - + case SIZ_43ROWS: printf( "43\n"); break; - + case SIZ_50ROWS: printf( "50\n"); break; - + default: printf( "UNKNOWN\n"); break; |