Lines 197-203
Link Here
|
197 |
{ |
197 |
{ |
198 |
if (vt4_mode) |
198 |
if (vt4_mode) |
199 |
fprintf(stderr, "%s\n%s\n%s\n%s\n%s\n", |
199 |
fprintf(stderr, "%s\n%s\n%s\n%s\n%s\n", |
200 |
"usage: vidcontrol [-CHPpx] [-b color] [-c appearance] [-f [size] file]", |
200 |
"usage: vidcontrol [-CHPpx] [-b color] [-c appearance] [-f [[size] file]]", |
201 |
" [-g geometry] [-h size] [-i adapter | mode]", |
201 |
" [-g geometry] [-h size] [-i adapter | mode]", |
202 |
" [-M char] [-m on | off] [-r foreground background]", |
202 |
" [-M char] [-m on | off] [-r foreground background]", |
203 |
" [-S on | off] [-s number] [-T xterm | cons25] [-t N | off]", |
203 |
" [-S on | off] [-s number] [-T xterm | cons25] [-t N | off]", |
Lines 409-414
Link Here
|
409 |
return (t); |
409 |
return (t); |
410 |
} |
410 |
} |
411 |
|
411 |
|
|
|
412 |
/* |
413 |
* Set the default vt font. |
414 |
*/ |
415 |
|
416 |
static void |
417 |
load_default_vt4font(void) |
418 |
{ |
419 |
if (ioctl(0, PIO_VDFTFONT) == -1) { |
420 |
revert(); |
421 |
errc(1, errno, "loading default vt font"); |
422 |
} |
423 |
} |
424 |
|
412 |
static int |
425 |
static int |
413 |
load_vt4font(FILE *f) |
426 |
load_vt4font(FILE *f) |
414 |
{ |
427 |
{ |
Lines 1328-1334
Link Here
|
1328 |
dumpopt = DUMP_FBF; |
1341 |
dumpopt = DUMP_FBF; |
1329 |
termmode = NULL; |
1342 |
termmode = NULL; |
1330 |
if (vt4_mode) |
1343 |
if (vt4_mode) |
1331 |
opts = "b:Cc:f:g:h:Hi:M:m:pPr:S:s:T:t:x"; |
1344 |
opts = "b:Cc:fg:h:Hi:M:m:pPr:S:s:T:t:x"; |
1332 |
else |
1345 |
else |
1333 |
opts = "b:Cc:df:g:h:Hi:l:LM:m:pPr:S:s:T:t:x"; |
1346 |
opts = "b:Cc:df:g:h:Hi:l:LM:m:pPr:S:s:T:t:x"; |
1334 |
|
1347 |
|
Lines 1349-1363
Link Here
|
1349 |
print_scrnmap(); |
1362 |
print_scrnmap(); |
1350 |
break; |
1363 |
break; |
1351 |
case 'f': |
1364 |
case 'f': |
1352 |
type = optarg; |
1365 |
optarg = nextarg(argc, argv, &optind, 'f', 0); |
1353 |
font = nextarg(argc, argv, &optind, 'f', 0); |
1366 |
if (optarg != NULL) { |
|
|
1367 |
font = nextarg(argc, argv, &optind, 'f', 0); |
1354 |
|
1368 |
|
1355 |
if (font == NULL) { |
1369 |
if (font == NULL) { |
1356 |
type = NULL; |
1370 |
type = NULL; |
1357 |
font = optarg; |
1371 |
font = optarg; |
|
|
1372 |
} else |
1373 |
type = optarg; |
1374 |
|
1375 |
load_font(type, font); |
1376 |
} else { |
1377 |
if (!vt4_mode) |
1378 |
usage(); /* Switch syscons to ROM? */ |
1379 |
|
1380 |
load_default_vt4font(); |
1358 |
} |
1381 |
} |
1359 |
|
|
|
1360 |
load_font(type, font); |
1361 |
break; |
1382 |
break; |
1362 |
case 'g': |
1383 |
case 'g': |
1363 |
if (sscanf(optarg, "%dx%d", |
1384 |
if (sscanf(optarg, "%dx%d", |